CVE-2026-4500 Details
Description
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.
A remote code execution vulnerability exists in the Bagofwords application, specifically in versions through 0.0.297. The issue arises in the 'generate_df' function within 'backend/app/ai/code_execution/code_execution.py'. This vulnerability allows for prompt injection attacks, where an attacker can manipulate the output of a language model (LLM) to execute arbitrary system commands on the server. The lack of input sanitization and inadequate sandboxing of the execution environment are the root causes of this vulnerability.
Users are advised to upgrade to Bagofwords version 0.0.298, which addresses this vulnerability by adding safeguards around code execution and implementing automatic code validation. The updated version is available on the Bagofwords GitHub Releases page.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Mar 20, 2026CISA-ADP
Assessed Mar 24, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/bagofwords1/bagofwords/ | [email protected] | ProductVendor |
| https://github.com/bagofwords1/bagofwords/commit/47b20bcda31264635faff7f6b1c8095abe1861c6 | [email protected] | Source CodeVendor |
| https://github.com/bagofwords1/bagofwords/issues/60 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/bagofwords1/bagofwords/pull/63 | [email protected] | Issue TrackingVendor |
| https://github.com/bagofwords1/bagofwords/releases/tag/v0.0.298 | [email protected] | Release NotesVendor |
| https://github.com/Ka7arotto/cve/blob/main/bagofwords-rce.md | [email protected] | ExploitTechnical Description |
| https://vuldb.com/?ctiid.352065 | [email protected] | Content Wall |
| https://vuldb.com/?id.352065 | [email protected] | AdvisoryExploitRemedy |
| https://vuldb.com/?submit.773890 | [email protected] | ExploitTechnical Description |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-707 | Improper Neutralization | [email protected] |
| CWE-74 | Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| bagofwords | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Mar 20, 2026 | New CVE Received | [email protected] |
Volerion