Code execution via inherited method evaluation
Published Oct 12, 2023 · Updated Feb 13, 2025
Code injection in Babel @babel/traverse before 7.23.2 allows attackers to execute JavaScript by compiling crafted source. The same flaw affects 8.0.0-alpha.0 through 8.0.0-alpha.3; _evaluate accepts inherited Number, String, or Math methods and invokes attacker-created functions during object coercion. Exploitation requires untrusted source to reach path.evaluate() or path.evaluateTruthy() through an affected plugin, and code runs with the compiler process's privileges.
Summary
What happened
Code injection in Babel @babel/traverse before 7.23.2 allows attackers to execute JavaScript by compiling crafted source. The same flaw affects 8.0.0-alpha.0 through 8.0.0-alpha.3; _evaluate accepts inherited Number, String, or Math methods and invokes attacker-created functions during object coercion. Exploitation requires untrusted source to reach path.evaluate() or path.evaluateTruthy() through an affected plugin, and code runs with the compiler process's privileges.
The record
- CVE
- CVE-2023-45133
- Published
- Oct 12, 2023
- Updated
- Feb 13, 2025
- Vendor
- Babel
- Product
- Babel
- Classifications
- CWE-697, CWE-184, T1203
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- Oct 12, 2023CVE publishedPublication date reported by the CVE source.
- Feb 13, 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=< 7.23.2
- Affected versionversion=>= 8.0.0-alpha.0, < 8.0.0-alpha.4
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
- Babel path.evaluate 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