VDB
Sign up
HIGH

GHSA-h86w-m5rm-xr33

Unescaped parameters in the PostgreSQL JDBC driver

Quick fix

GHSA-h86w-m5rm-xr33 — org.postgresql:postgresql: upgrade to the fixed version with the command below.

# pom.xml: bump <version>8.2</version> for org.postgresql:postgresql

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.postgresql:postgresql
Introduced in: 0Fixed in: 8.2
Fix# pom.xml: bump <version>8.2</version> for org.postgresql:postgresql

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:maven/org.postgresql/postgresql"]}'