Vulnerability · Published Nov 14, 2024 · Assigned by PostgreSQL

CVE-2024-10977PostgreSQL libpq retains an error message from man-in-the-middle

Low 3.1

In plain English

A low-severity security flaw in PostgreSQL. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 34% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)3.1Low
Exploit odds (30 days)0.4%top 65.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Client use of server error message in PostgreSQL allows a server not trusted under current SSL or GSS settings to furnish arbitrary non-NUL bytes to the libpq application. For example, a man-in-the-middle attacker could send a long error message that a human or screen-scraper user of psql mistakes for valid query results. This is probably not a concern for clients where the user interface unambiguously indicates the boundary between one error message and other text. Versions before PostgreSQL 17.1, 16.5, 15.9, 14.14, 13.17, and 12.21 are affected.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20postgresql1414.14-r0ALPINE-CVE-2024-10977
Alpine:v3.20postgresql1515.9-r0ALPINE-CVE-2024-10977
Alpine:v3.21postgresql1515.9-r0ALPINE-CVE-2024-10977
Alpine:v3.22postgresql1515.9-r0ALPINE-CVE-2024-10977
Alpine:v3.20postgresql1616.5-r0ALPINE-CVE-2024-10977
Alpine:v3.21postgresql1616.5-r0ALPINE-CVE-2024-10977
Alpine:v3.22postgresql1616.5-r0ALPINE-CVE-2024-10977
Alpine:v3.23postgresql1616.5-r0ALPINE-CVE-2024-10977
Alpine:v3.24postgresql1616.5-r0ALPINE-CVE-2024-10977
Alpine:v3.21postgresql1717.1-r0ALPINE-CVE-2024-10977
Alpine:v3.22postgresql1717.1-r0ALPINE-CVE-2024-10977
Alpine:v3.23postgresql1717.1-r0ALPINE-CVE-2024-10977
Alpine:v3.24postgresql1717.1-r0ALPINE-CVE-2024-10977
Debian:12postgresql-1515.9-0+deb12u1DEBIAN-CVE-2024-10977
Debian:12postgresql-1515.9-0+deb12u1DSA-5812-1
Debian:13postgresql-1717.1-1DEBIAN-CVE-2024-10977
Ubuntu:22.04:LTSpostgresql-1414.15-0ubuntu0.22.04.1USN-7132-1
Ubuntu:22.04:LTSpostgresql-1414.15-0ubuntu0.22.04.1UBUNTU-CVE-2024-10977
Ubuntu:24.04:LTSpostgresql-1616.6-0ubuntu0.24.04.1UBUNTU-CVE-2024-10977
Ubuntu:24.04:LTSpostgresql-1616.6-0ubuntu0.24.04.1USN-7132-1

Affected products (as reported)

VendorProductVersions
n/a PostgreSQL 17 – before 17.116 – before 16.515 – before 15.914 – before 14.1413 – before 13.170 – before 12.21

Weakness: CWE-348 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N

References