Repository takeover via poisoned workflow artifacts
Published Sep 17, 2024 · Updated Sep 18, 2024
Code and environment-variable injection in Espressif Systems Arduino-ESP32 CI allows remote authenticated users to take over its repository. The tests_results.yml workflow trusts files from a pull-request-triggered artifact, writes unsanitized multiline values to GITHUB_ENV, and interpolates original_ref directly into privileged JavaScript. A GitHub user able to open a pull request can execute code with write-capable GITHUB_TOKEN permissions, altering repository contents and build artifacts.
Summary
What happened
Code and environment-variable injection in Espressif Systems Arduino-ESP32 CI allows remote authenticated users to take over its repository. The tests_results.yml workflow trusts files from a pull-request-triggered artifact, writes unsanitized multiline values to GITHUB_ENV, and interpolates original_ref directly into privileged JavaScript. A GitHub user able to open a pull request can execute code with write-capable GITHUB_TOKEN permissions, altering repository contents and build artifacts.
The record
- CVE
- CVE-2024-45798
- Published
- Sep 17, 2024
- Updated
- Sep 18, 2024
- Vendor
- Espressif Systems
- Product
- Arduino-ESP32
- Classifications
- CWE-20, CWE-78, CWE-94, T1059.007, T1059.004
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Sep 17, 2024CVE publishedPublication date reported by the CVE source.
- Sep 18, 2024Record 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=Commits prior to a7cec020df8f1a815bd8dfd2559f51a2216bcf1c
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
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
- Poisoned workflow artifact proof of conceptproof of concept · demonstrated
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