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 | alma-upgrade-postgresql-jdbcalma-upgrade-postgresql-jdbc-javadoc | Mar 22, 2024 | Feb 19, 2024 | |
| Alpine Linux | alpine-linux-upgrade-java-postgresql-jdbc | Aug 22, 2024 | Feb 19, 2024 | |
| Atlassian Jira | atlassian-jira-upgrade-latest | May 15, 2025 | May 21, 2024 | |
| Debian | debian-upgrade-libpgjava | May 13, 2024 | Feb 19, 2024 | |
| Dell Powerstore Dsa2024225 | dell-powerstoreos-upgrade-latest | Oct 23, 2025 | May 29, 2024 | |
| Dell Powerstore Dsa2024287 | dell-powerstoreos-upgrade-latest | Oct 23, 2025 | Jul 2, 2024 | |
| Dell Powerstore Dsa2024336 | dell-powerstoreos-upgrade-latest | Oct 23, 2025 | Aug 1, 2024 | |
| Oracle_linux | — | oracle-linux-upgrade-postgresql-jdbcoracle-linux-upgrade-postgresql-jdbc-javadoc | Mar 21, 2024 | Feb 19, 2024 |
| Redhat_linux | redhat-upgrade-postgresql-jdbcredhat-upgrade-postgresql-jdbc-javadoc | Mar 21, 2024 | Feb 19, 2024 | |
| Suse | — | suse-upgrade-postgresql-jdbcsuse-upgrade-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