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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
Lifecycle Timeline
6DescriptionCVE.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
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.
Apply vendor patch. If patching is delayed: deploy WAF rules, restrict network access, enable logging.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
EUVD-2026-13802
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB