CVE-2024-8156: Command Injection in significant-gravitas/autogpt

Published Mar 20, 2025
·
Updated

A command injection vulnerability exists in the workflow-checker.yml workflow of significant-gravitas/autogpt. The untrusted user input github.head.ref is used insecurely, allowing an attacker to inject arbitrary commands. This vulnerability affects versions up to and including the latest version. An attacker can exploit this by creating a branch name with a malicious payload and opening a pull request, potentially leading to reverse shell access or theft of sensitive tokens and keys.

Affected Software

2 affected components
significant-gravitas AutoGPT<=latest
Agpt Autogpt Classic<0.5.1

Event History

Mar 20, 2025
CVE Published
via MITRE·10:09 AM
Data Sourced
via MITRE·10:09 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-8156?

CVE-2024-8156 is classified as a high severity command injection vulnerability.

2

How do I fix CVE-2024-8156?

To fix CVE-2024-8156, validate and sanitize the input from `github.head.ref` before processing it.

3

Who is affected by CVE-2024-8156?

CVE-2024-8156 affects all versions of Significant Gravitas Autogpt up to and including the latest.

4

What type of vulnerability is CVE-2024-8156?

CVE-2024-8156 is a command injection vulnerability that allows for arbitrary command execution.

5

What is the impact of exploiting CVE-2024-8156?

Exploiting CVE-2024-8156 can allow an attacker to execute arbitrary commands in the context of the application.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203