CVE-2023-32697 Sqlite-jdbc vulnerable to remote code execution when JDBC url is attacker controlled
Attackers can execute arbitrary code if they control the JDBC URL used by applications relying on the SQLite JDBC library.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-32697?
CVE-2023-32697 is a high-severity code injection vulnerability in xerial sqlite-jdbc, published on 23 May 2023. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
SQLite JDBC is a library for accessing and creating SQLite database files in Java. Sqlite-jdbc addresses a remote code execution vulnerability via JDBC URL. This issue impacting versions 3.6.14.1 through 3.41.2.1 and has been fixed in version 3.41.2.2.
Weakness: CWE-94
Which versions are affected by CVE-2023-32697?
2 open source packages ship an affected version, including org.xerial:sqlite-jdbc. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.xerial:sqlite-jdbc Maven | From 3.6.14.1 | 3.41.2.2 |
org.xerial:sqlite-jdbc Maven | From 3.6.14.1 | 3.41.2.2 |
Products include Sqlite Jdbc Project Sqlite Jdbc.
How do I fix CVE-2023-32697?
Upgrade org.xerial:sqlite-jdbc to 3.41.2.2 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2023-32697 being exploited?
There is no known exploitation of CVE-2023-32697 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Sources
Also known as DEBIAN-CVE-2023-32697, GHSA-6phf-6h5g-97j2, OESA-2023-1792, UBUNTU-CVE-2023-32697.