BSD Ports

PostgreSQL -- PostgreSQL quoting APIs miss neutralizing quoting syntax in text that fails encoding validation

· CVE-2025-1094 · VuXML entry

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

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.

SystemPortVersionStateFixed
FreeBSDdatabases/postgresql17-client17.11 fixed
NetBSDdatabases/postgresql17-client17.11 not listed
MidnightBSDdatabases/postgresql17-client in range, by version
DragonFlydatabases/postgresql17-client17.5 fixed
FreeBSDdatabases/postgresql16-client16.15 fixed
NetBSDdatabases/postgresql16-client16.15 not listed
MidnightBSDdatabases/postgresql16-client in range, by version
DragonFlydatabases/postgresql16-client16.9 fixed
FreeBSDdatabases/postgresql15-client15.19 fixed
NetBSDdatabases/postgresql15-client15.19 not listed
MidnightBSDdatabases/postgresql15-client in range, by version
DragonFlydatabases/postgresql15-client15.13 fixed
FreeBSDdatabases/postgresql14-client14.24 fixed
NetBSDdatabases/postgresql14-client14.24 not listed
MidnightBSDdatabases/postgresql14-client in range, by version
DragonFlydatabases/postgresql14-client14.18 fixed
DragonFlydatabases/postgresql13-client13.21 fixed