Code execution via cross-origin configuration write
Published Nov 22, 2022 · Updated Apr 29, 2025
Code injection in Red Hat Quarkus before 2.13.5.Final and 2.14.0 through 2.14.1.Final allows context-dependent attackers to execute code. The Dev UI Config Editor accepts an unauthenticated cross-origin form POST that rewrites application.properties; live reload then uses the attacker-supplied H2 JDBC URL to fetch and execute SQL that invokes an OS command. Exploitation requires Dev Mode to be running while a developer visits a crafted webpage, and successful execution runs with the developer process's privileges.
Summary
What happened
Code injection in Red Hat Quarkus before 2.13.5.Final and 2.14.0 through 2.14.1.Final allows context-dependent attackers to execute code. The Dev UI Config Editor accepts an unauthenticated cross-origin form POST that rewrites application.properties; live reload then uses the attacker-supplied H2 JDBC URL to fetch and execute SQL that invokes an OS command. Exploitation requires Dev Mode to be running while a developer visits a crafted webpage, and successful execution runs with the developer process's privileges.
The record
- CVE
- CVE-2022-4116
- Published
- Nov 22, 2022
- Updated
- Apr 29, 2025
- Vendor
- Red Hat
- Product
- Quarkus
- Classifications
- CWE-74, CWE-94, T1203
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Nov 22, 2022CVE publishedPublication date reported by the CVE source.
- Apr 29, 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=quarkus-2
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
- Drive-by localhost Quarkus 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