Skip to main content

Bagofwords EUVDEUVD-2026-13802

| CVE-2026-4500 LOW
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (CWE-74)
2026-03-20 VulDB
2.1
CVSS 4.0 · NVD
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
Impact

While the CVSS v3.1 score of 6.3 suggests medium severity, multiple high-risk signals elevate the practical threat level significantly. The attack vector is network-accessible (AV:N) with low complexity (AC:L), requiring only low privileges (PR:L) and no user interaction (UI:N), making this highly exploitable. The public availability of a proof-of-concept exploit (referenced at https://github.com/Ka7arotto/cve/blob/main/bagofwords-rce.md) combined with a confirmed patch in version 0.0.298 indicates this is an actively known and weaponizable vulnerability. From an SSVC perspective, this demonstrates high exploitability (public POC exists), likely automatable attack delivery (code injection via simple HTTP requests), and significant technical impact (confidentiality, integrity, and availability all affected per the CVSS scope). Organizations should treat this as a priority remediation target despite the medium CVSS score, as the confluence of network accessibility, authentication bypass potential, public exploits, and code execution capabilities creates substantial real-world risk.

Exploit ScenarioDerived

An authenticated attacker with low-level system access sends a crafted HTTP request to the generate_df endpoint containing injected Python code within a parameter expected to define a dataframe operation. Due to the lack of input sanitization, the injected code is executed server-side with application privileges, allowing the attacker to read sensitive files, modify data, or establish a reverse shell for further system compromise. Because a public proof-of-concept (available at https://github.com/Ka7arotto/cve/blob/main/bagofwords-rce.md) exists and exploitation requires only network access plus basic authentication with no user interaction, this attack can be automated and deployed against any exposed bagofwords instance running versions prior to 0.0.298.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 20, 2026

A code injection vulnerability exists in bagofwords (versions up to 0.0.297) within the generate_df function of backend/app/ai/code_execution/code_execution.py, allowing remote attackers with low privileges to inject and execute arbitrary code. The vulnerability (CWE-74: Improper Neutralization of Special Elements in Output) has a CVSS score of 6.3 (Medium) with network-based attack vector and low attack complexity, meaning exploitation requires only basic authentication and no user interaction. A public proof-of-concept exploit is already available, making this a practical threat requiring prompt remediation.

RemediationAI

Immediately upgrade bagofwords to version 0.0.298 or later, which contains the definitive security patch (commit 47b20bcda31264635faff7f6b1c8095abe1861c6). The patched version is available at https://github.com/bagofwords1/bagofwords/releases/tag/v0.0.298 and via the official GitHub repository at https://github.com/bagofwords1/bagofwords. Until patching is completed, implement compensating controls by restricting network access to the affected code execution endpoints to trusted internal networks only, enforce strict authentication and session management to limit PR:L access, and monitor logs for suspicious patterns in requests to backend/app/ai/code_execution endpoints. If immediate patching is not possible, consider disabling the generate_df function or the entire code execution module until the upgrade can be performed.

Affected VersionsENISA

bagofwords 0.0.297

Affected Packages

euvd bagofwords no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in bagofwords (affected CPE: cpe:2.3:a:bagofwords1:bagofwords:*:*:*:*:*:*:*:*), specifically in the code execution module at backend/app/ai/code_execution/code_execution.py. The root cause is classified under CWE-74 (Improper Neutralization of Special Elements in Output), which occurs when user-supplied input is passed unsanitized to dynamic code execution contexts. The generate_df function appears to construct and execute code without proper input validation or parameterization, creating a direct pathway for code injection attacks. This is particularly critical because the vulnerable function operates within a code execution pipeline, meaning injected payloads are processed with the privileges of the application runtime.

Know when Bagofwords gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 2.1 LOW
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

6
Severity Changed
Apr 29, 2026 - 01:11 NVD
MEDIUM LOW
CVSS changed
Apr 29, 2026 - 01:11 NVD
5.3 (MEDIUM) 2.1 (LOW)
CVSS changed
Apr 22, 2026 - 21:37 NVD
6.3 (MEDIUM) 5.3 (MEDIUM)
PoC Detected
Mar 23, 2026 - 14:32 vuln.today
Public exploit code
Patch released
Mar 20, 2026 - 19:46 nvd
Patch available
CVE Published
Mar 20, 2026 - 19:32 nvd
MEDIUM 6.3

DescriptionCVE.org

A vulnerability was identified in bagofwords1 bagofwords up to 0.0.297. This impacts the function generate_df of the file backend/app/ai/code_execution/code_execution.py. Such manipulation leads to injection. The attack may be launched remotely. The exploit is publicly available and might be used. Upgrading to version 0.0.298 will fix this issue. The name of the patch is 47b20bcda31264635faff7f6b1c8095abe1861c6. It is recommended to upgrade the affected component.

Executive ViewAI

Why It Matters

Organizations using bagofwords1 bagofwords should be aware of moderate risk from CVE-2026-4500, a injection vulnerability rated CVSS 6.3. Exploitation could allow attackers to execute code or inject malicious input. Proof-of-concept code is publicly available. A patch is available and should be applied during regular vulnerability management.

Business Impact: Low
Compensating Controls

Apply vendor patch. If patching is delayed: deploy WAF rules, restrict network access, enable logging.

Threat Intelligence Overview

EPSS Score
0.1%
Top 82% exploitable
Exploit
POC
Public exploit code exists
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
Low
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy