HighGHSA-h86w-m5rm-xr33CVE-2012-1618

Unescaped parameters in the PostgreSQL JDBC driver

Published 17 May 2022 · Updated 8 Nov 2023

Is your project on an affected org.postgresql:postgresql?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<8.2
Fixed in
8.2
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.postgresql:postgresql -DdepVersion=8.2 -DforceVersion=true

Details

Interaction error in the PostgreSQL JDBC driver before 8.2, when used with a PostgreSQL server with the "standard_conforming_strings" option enabled, such as the default configuration of PostgreSQL 9.1, does not properly escape unspecified JDBC statement parameters, which allows remote attackers to perform SQL injection attacks. NOTE: as of 20120330, it was claimed that the upstream developer planned to dispute this issue, but an official dispute has not been posted as of 20121005.

Is GHSA-h86w-m5rm-xr33 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.postgresql:postgresql, and gives you the command that fixes it.

More advisories for org.postgresql:postgresql

  • HighCVE-2026-54291PostgreSQL JDBC Driver: Silent channel-binding authentication downgrade via unsupported certificate algorithms · 21 Jul 2026
  • HighCVE-2026-42198pgjdbc: Unbounded PBKDF2 iterations in SCRAM authentication allows CPU exhaustion DoS · 5 May 2026
  • HighCVE-2025-49146pgjdbc Client Allows Fallback to Insecure Authentication Despite channelBinding=require Configuration · 11 Jun 2025
  • CriticalCVE-2024-1597org.postgresql:postgresql vulnerable to SQL Injection via line comment generation · 21 Feb 2024
  • MediumCVE-2022-41946TemporaryFolder on unix-like systems does not limit access to created files · 23 Nov 2022
  • HighCVE-2022-31197PostgreSQL JDBC Driver SQL Injection in ResultSet.refreshRow() with malicious column names · 6 Aug 2022
All 11 advisories for org.postgresql:postgresql

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.