Code execution via unfiltered JDBC state deserialization
Published Feb 20, 2024 · Updated Nov 5, 2024
Unsafe deserialization in Apache Camel SQL allows remote attackers to execute code by supplying crafted JDBC aggregation state. JdbcCamelCodec.decode passes persisted exchange bytes from JdbcAggregationRepository to ObjectInputStream.readObject without an ObjectInputFilter, allowing a gadget payload to invoke attacker-chosen behavior. Exploitation requires a route configured with the JDBC aggregation repository, attacker-controlled database state, and active processing that loads the poisoned exchange.
Summary
What happened
Unsafe deserialization in Apache Camel SQL allows remote attackers to execute code by supplying crafted JDBC aggregation state. JdbcCamelCodec.decode passes persisted exchange bytes from JdbcAggregationRepository to ObjectInputStream.readObject without an ObjectInputFilter, allowing a gadget payload to invoke attacker-chosen behavior. Exploitation requires a route configured with the JDBC aggregation repository, attacker-controlled database state, and active processing that loads the poisoned exchange.
The record
- CVE
- CVE-2024-22369
- Published
- Feb 20, 2024
- Updated
- Nov 5, 2024
- Vendor
- The Apache Software Foundation
- Product
- Apache Camel
- Classifications
- CWE-502, T1203
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Feb 20, 2024CVE publishedPublication date reported by the CVE source.
- Nov 5, 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=3.0.0 <3.21.4
- Affected versionversion=3.22.0 <3.22.1
- Affected versionversion=4.0.0 <4.0.4
- Affected versionversion=4.1.0 <4.4.0
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
- CVE-2024-22369 Reproducerproof 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