CVE-2024-1881

Critical

Description

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 word of the command. This allows an attacker to bypass the intended restrictions by crafting commands that are executed despite not being on the allowlist or by including malicious commands not present in the denylist. Successful exploitation of this vulnerability could allow an attacker to execute arbitrary shell commands.

SeverityCritical
CVSS9.8
Exploit probability—
ProductAgpt Autogpt Classic
PublishedJun 6, 2024
First seenJun 6, 2024

How to fix

Update
  • agpt autogpt_classic0.5.1 or later

Affected products

ProductAffected versionsFixed in
agpt autogpt_classic0.5.0 ≤ v < 0.5.10.5.1

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.