CVE-2022-45136 Apache Jena SDB allows arbitrary deserialisation via JDBC
Attackers can achieve remote code execution in applications using Apache Jena SDB by controlling JDBC connections or database responses.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-45136?
CVE-2022-45136 is a critical unsafe deserialization vulnerability in Apache Jena SDB, published on 14 Nov 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Apache Jena SDB 3.17.0 and earlier is vulnerable to a JDBC Deserialisation attack if the attacker is able to control the JDBC URL used or cause the underlying database server to return malicious data. The mySQL JDBC driver in particular is known to be vulnerable to this class of attack. As a result an application using Apache Jena SDB can be subject to RCE when connected to a malicious database server. Apache Jena SDB has been EOL since December 2020 and users should migrate to alternative options e.g. Apache Jena TDB 2.
Weakness: CWE-502
Which versions are affected by CVE-2022-45136?
2 open source packages ship an affected version, including org.apache.jena:jena-sdb. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.jena:jena-sdb Maven | All versions to 3.17.0 | None |
org.apache.jena:jena-sdb Maven | All versions to 3.17.0 | None |
Products include Apache Jena Sdb.
How do I fix CVE-2022-45136?
Product is end of life, replace it.
Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.
Is CVE-2022-45136 being exploited?
There is no known exploitation of CVE-2022-45136 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2022-45136, GHSA-g2qw-6vrr-v6pq, UBUNTU-CVE-2022-45136.