Command execution via untrusted branch-name interpolation
Published Mar 20, 2025 · Updated Oct 15, 2025
Command injection in AutoGPT before 0.5.1 allows remote attackers to execute arbitrary commands on a GitHub Actions runner. The workflow-checker.yml workflow embeds github.head.ref directly in a shell run block, causing shell metacharacters in a pull-request branch name to execute as commands. Exploitation requires an attacker-controlled branch and a pull-request workflow run, with resulting access bounded to runner execution and available secrets.
Summary
What happened
Command injection in AutoGPT before 0.5.1 allows remote attackers to execute arbitrary commands on a GitHub Actions runner. The workflow-checker.yml workflow embeds github.head.ref directly in a shell run block, causing shell metacharacters in a pull-request branch name to execute as commands. Exploitation requires an attacker-controlled branch and a pull-request workflow run, with resulting access bounded to runner execution and available secrets.
The record
- CVE
- CVE-2024-8156
- Published
- Mar 20, 2025
- Updated
- Oct 15, 2025
- Vendor
- Significant Gravitas
- Product
- AutoGPT
- Classifications
- CWE-77, T1059
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Mar 20, 2025CVE publishedPublication date reported by the CVE source.
- Oct 15, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=unspecified <0.5.1
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Huntr pull-request branch-name proof of conceptproof of concept · unverified
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo