PostgreSQL -- PostgreSQL quoting APIs miss neutralizing quoting syntax in text that fails encoding validation
The PostgreSQL Project reports: Improper neutralization of quoting syntax in PostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() allows a database input provider to achieve SQL injection in certain usage patterns. Specifically, SQL injection requires the application to use the function result to construct input to psql, the PostgreSQL interactive terminal. …
Affected versions
- postgresql17-client < 17.3
- postgresql16-client < 16.7
- postgresql15-client < 15.11
- postgresql14-client < 14.16
- postgresql13-client < 13.19
By system
0 still vulnerable, 9 fixed. Where VuXML applies (FreeBSD, DragonFly, FreeBSD's derivatives) a port is vulnerable while its version is in a range; pkgsrc says itself whether it lists a CVE of this advisory; OpenBSD and MidnightBSD keep no list this site reads, so their row is only an estimate: FreeBSD's ranges applied to upstream's version.
| System | Port | Version | State | Fixed |
|---|---|---|---|---|
| FreeBSD | databases/postgresql17-client | 17.11 | fixed | |
| NetBSD | databases/postgresql17-client | 17.11 | not listed | |
| MidnightBSD | databases/postgresql17-client | in range, by version | ||
| DragonFly | databases/postgresql17-client | 17.5 | fixed | |
| FreeBSD | databases/postgresql16-client | 16.15 | fixed | |
| NetBSD | databases/postgresql16-client | 16.15 | not listed | |
| MidnightBSD | databases/postgresql16-client | in range, by version | ||
| DragonFly | databases/postgresql16-client | 16.9 | fixed | |
| FreeBSD | databases/postgresql15-client | 15.19 | fixed | |
| NetBSD | databases/postgresql15-client | 15.19 | not listed | |
| MidnightBSD | databases/postgresql15-client | in range, by version | ||
| DragonFly | databases/postgresql15-client | 15.13 | fixed | |
| FreeBSD | databases/postgresql14-client | 14.24 | fixed | |
| NetBSD | databases/postgresql14-client | 14.24 | not listed | |
| MidnightBSD | databases/postgresql14-client | in range, by version | ||
| DragonFly | databases/postgresql14-client | 14.18 | fixed | |
| DragonFly | databases/postgresql13-client | 13.21 | fixed |