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

Low 3.1 Published Updated

A man-in-the-middle attacker can inject arbitrary error messages into PostgreSQL clients, potentially misleading users or screen scrapers into treating them as valid data.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-10977?

CVE-2024-10977 is a low-severity vulnerability in Postgresql Postgresql, published on 14 Nov 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

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.

Weakness: CWE-345, CWE-348

Which versions are affected by CVE-2024-10977?

1 open source package ship an affected version, including postgresql. It affects 1 product.

PackageAffectedFixed in
postgresql BitnamiAll versions12.21.0, 13.17.0, 14.14.0, 15.9.0, 16.5.0, 17.1.0

Products include Postgresql Postgresql.

How do I fix CVE-2024-10977?

Upgrade postgresql to a fixed version for your release line: 12.21.0, 13.17.0, 14.14.0 or 15.9.0.

Is CVE-2024-10977 being exploited?

There is no known exploitation of CVE-2024-10977 in the wild and no public exploit code.

All Postgresql Postgresql vulnerabilities

Sources

Also known as ALPINE-CVE-2024-10977, AZL-53195, AZL-53206, BELL-CVE-2024-10977, BIT-postgresql-2024-10977, CLEANSTART-2026-AH36441 and 9 more.

Is CVE-2024-10977 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free