CVE-2024-1881: AutoGPT, a component of significant-gravitas/autogpt, is vulnerable to an improper neutralization of special e
CVE-2024-1881 is a critical-severity flaw (CVSS 9.8) affecting autogpt classic. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
AutoGPT, a component of significant-gravitas/autogpt, is vulnerable to an improper neutralization of special elements used in an OS command ('OS Command Injection') due to a flaw in its shell command validation function. Specifically, the vulnerability exists in versions v0.5.0 up to but not including 5.1.0. The issue arises from the application's method of validating shell commands against an allowlist or denylist, where it only checks the first
Why this priority
- Critical severity
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 1.4% (top 27%) |
| CISA exploited list | No |
| Weakness | CWE-78 |
| Published | 2024-06-06 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-1881?
autogpt classic: upgrade to 0.5.1. Exact commands for each OS are on this page.
Is CVE-2024-1881 being exploited?
CVE-2024-1881 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-1881 affect?
CVE-2024-1881 affects autogpt classic. Severity is critical (CVSS 9.8). AutoGPT, a component of significant-gravitas/autogpt, is vulnerable to an improper neutralization of special elements used in an OS command ('OS Command Injection') due to a flaw in its shell command validation function. Specifically, the v
How urgent is CVE-2024-1881?
Priority 58/100. Critical severity; Remotely exploitable, no login, no user action
Related CVEs
- CVE-2024-8156 CRITICAL 9.8 UPGRADE A command injection vulnerability exists in the workflow-checker.yml workflow of significant-gravitas/autogpt
- CVE-2024-6091 CRITICAL 9.8 DOWNGRADE A vulnerability in significant-gravitas/autogpt version 0.5.1 allows an attacker to bypass the shell commands
- CVE-2024-1880 HIGH 7.8 UPGRADE An OS command injection vulnerability exists in the MacOS Text-To-Speech class MacOSTTS of the significant-gra
- CVE-2024-1879 HIGH 8.8 DOWNGRADE A Cross-Site Request Forgery (CSRF) vulnerability in significant-gravitas/autogpt version v0.5.0 allows attack