Code execution via default script interpolation
Published Jul 6, 2022 · Updated Aug 3, 2024
Expression injection in Apache Commons Configuration 2.4 through 2.7 allows attackers to execute commands via untrusted properties. ConfigurationInterpolator enables the default script lookup to pass attacker-controlled expressions to the JVM scripting engine when a property is read. An application must place untrusted data in a configuration file or property and later retrieve it; DNS and URL lookups can also trigger outbound contact.
Summary
What happened
Expression injection in Apache Commons Configuration 2.4 through 2.7 allows attackers to execute commands via untrusted properties. ConfigurationInterpolator enables the default script lookup to pass attacker-controlled expressions to the JVM scripting engine when a property is read. An application must place untrusted data in a configuration file or property and later retrieve it; DNS and URL lookups can also trigger outbound contact.
The record
- CVE
- CVE-2022-33980
- Published
- Jul 6, 2022
- Updated
- Aug 3, 2024
- Vendor
- The Apache Software Foundation
- Product
- Apache Commons Configuration
- Classifications
- T1059
- Attack vector
- Unavailable
- Privileges
- Unavailable
Timeline
How it unfolded
- Jul 6, 2022CVE publishedPublication date reported by the CVE source.
- Aug 3, 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=Apache Commons Configuration <2.8.0 changes=[{"at":"2.4","status":"affected"}]
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
- GHSL unsafe script evaluation 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