pgjdbc, the PostgreSQL JDBC Driver, allows attacker to inject SQL if using PreferQueryMode=SIMPLE. Note this is not the default. In the default mode there is no vulnerability. A placeholder for a numeric value must be immediately preceded by a minus. There must be a second placeholder for a string value after the first placeholder; both must be on the same line. By constructing a matching string payload, the attacker can inject SQL to alter the query,bypassing the protections that parameterized queries bring against SQL Injection attacks. Versions before 42.7.2, 42.6.1, 42.5.5, 42.4.4, 42.3.9, and 42.2.28 are affected.
CVSS Details
- CVSS 3.1 Base Score: 10
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alma_linux | — | Upgrade postgresql-jdbcUpgrade postgresql-jdbc-javadoc | Mar 22, 2024 | Feb 19, 2024 |
| Alpine Linux | — | Upgrade java-postgresql-jdbc | Aug 22, 2024 | Feb 19, 2024 |
| Atlassian Jira | — | Upgrade to the latest version of Atlassian JIRA | May 15, 2025 | May 21, 2024 |
| Debian | — | Upgrade libpgjava | May 13, 2024 | Feb 19, 2024 |
| Dell Powerstore Dsa2024225 | — | Upgrade Dell PowerStoreOS to the latest version | Oct 23, 2025 | May 29, 2024 |
| Dell Powerstore Dsa2024287 | — | Upgrade Dell PowerStoreOS to the latest version | Oct 23, 2025 | Jul 2, 2024 |
| Dell Powerstore Dsa2024336 | — | Upgrade Dell PowerStoreOS to the latest version | Oct 23, 2025 | Aug 1, 2024 |
| Oracle_linux | — | Upgrade postgresql-jdbc-javadocUpgrade postgresql-jdbc | Mar 21, 2024 | Feb 19, 2024 |
| Redhat_linux | — | Upgrade postgresql-jdbc-javadocUpgrade postgresql-jdbcNo solution exists | Mar 21, 2024 | Feb 19, 2024 |
| Rocky_linux | — | — | Aug 15, 2024 | Feb 19, 2024 |
| Suse | — | Upgrade postgresql-jdbcUpgrade postgresql-jdbc-javadoc | Mar 6, 2024 | Feb 19, 2024 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub