BIT-postgresql-jdbc-driver-2024-1597

See a problem?
Import Source
https://github.com/bitnami/vulndb/tree/main/data/postgresql-jdbc-driver/BIT-postgresql-jdbc-driver-2024-1597.json
JSON Data
https://api.test.osv.dev/v1/vulns/BIT-postgresql-jdbc-driver-2024-1597
Aliases
Published
2024-03-12T08:33:54.711Z
Modified
2024-11-27T19:40:48.342Z
Summary
[none]
Details

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.

Database specific
{
    "cpes": [
        "cpe:2.3:a:postgresql:postgresql_jdbc_driver:*:*:*:*:*:*:*:*",
        "cpe:2.3:a:postgresql:postgresql_jdbc_driver:*:*:*:*:*:maven:*:*"
    ],
    "severity": "Critical"
}
References

Affected packages

Bitnami / postgresql-jdbc-driver

Package

Name
postgresql-jdbc-driver
Purl
pkg:bitnami/postgresql-jdbc-driver

Severity

  • 10.0 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H CVSS Calculator

Affected ranges

Type
SEMVER
Events
Introduced
42.7.0
Fixed
42.7.2
Introduced
42.6.0
Fixed
42.6.1
Introduced
42.5.0
Fixed
42.5.5
Introduced
42.4.0
Fixed
42.4.4
Introduced
42.3.0
Fixed
42.3.9
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
42.2.28