# CVE-2024-1880: OS Command Injection in MacOS Text-To-Speech Class in significant-gravitas/autogpt

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.0, CNA) `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 2.31% (percentile 84, 2026-11-26)
- **CWE:** CWE-78
- **Published:** 2024-06-06T18:39:43.516Z
- **Modified:** 2026-06-17T07:05:12.477Z

## Who should check

- Anyone running significant-gravitas/autogpt \>= unspecified, \< 5.1.0

## Description

An OS command injection vulnerability exists in the MacOS Text-To-Speech class MacOSTTS of the significant-gravitas/autogpt project, affecting versions up to v0.5.0. The vulnerability arises from the improper neutralization of special elements used in an OS command within the \`\_speech\` method of the MacOSTTS class. Specifically, the use of \`os.system\` to execute the \`say\` command with user-supplied text allows for arbitrary code execution if an attacker can inject shell commands. This issue is triggered when the AutoGPT instance is run with the \`--speak\` option enabled and configured with \`TEXT\_TO\_SPEECH\_PROVIDER=macos\`, reflecting back a shell injection snippet. The impact of this vulnerability is the potential execution of arbitrary code on the instance running AutoGPT. The issue was addressed in version 5.1.0.

## Affected and fixed versions

- significant-gravitas/autogpt: \>= unspecified, \< 5.1.0 (cvelist)

## Mitigation

- Upgrade significant-gravitas/autogpt to 5.1.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-1880. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-1880.md
Affected: significant-gravitas/autogpt >= unspecified, < 5.1.0
Fixed in: significant-gravitas/autogpt 5.1.0

Steps:
1. Search this machine and project for significant-gravitas/autogpt: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-1880 being exploited?

There is no confirmed exploitation: CVE-2024-1880 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 2.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-1880?

High: CVSS 7.8 (v3.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-1880?

significant-gravitas/autogpt \>= unspecified, \< 5.1.0.

### Is there a fix for CVE-2024-1880?

Yes. Fixed in significant-gravitas/autogpt 5.1.0. Upgrade significant-gravitas/autogpt to 5.1.0 or later.

### How do I check if I'm affected by CVE-2024-1880?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://github.com/significant-gravitas/autogpt/commit/26324f29849967fa72c207da929af612f1740669>
- exploit: <https://huntr.com/bounties/4e742624-8771-4f3c-9634-3eaf33d6d58e>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-1880>

HTML: <https://flawdb.com/CVE-2024-1880> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-1880>
