Red Hat VEX
RHVEX-CVE-2024-1597
pgjdbc: PostgreSQL JDBC Driver allows attacker to inject SQL if using PreferQueryMode=SIMPLE
Details
A flaw was found in the PostgreSQL JDBC Driver. A SQL injection is possible when using the non-default connection property preferQueryMode=simple in combination with application code that has a vulnerable SQL that negates a parameter value.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:8 | postgresql-jdbc | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | postgresql-jdbc-javadoc | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | postgresql-jdbc | All versions, will not be fixed |
References
- https://access.redhat.com/security/cve/CVE-2024-1597
- https://bugzilla.redhat.com/show_bug.cgi?id=2266523
- https://www.cve.org/CVERecord?id=CVE-2024-1597
- https://nvd.nist.gov/vuln/detail/CVE-2024-1597
- https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-24rp-q3w6-vc56
- https://www.enterprisedb.com/docs/jdbc_connector/latest/01_jdbc_rel_notes/
- https://www.enterprisedb.com/docs/security/assessments/cve-2024-1597/