CVE-2024-10977
PostgreSQL vulnerability analysis and mitigation

Overview

CVE-2024-10977 is a security vulnerability in PostgreSQL that affects the client's handling of server error messages. The vulnerability was discovered and reported by Jacob Champion, with the fix being published on November 14, 2024. It affects PostgreSQL versions before 17.1, 16.5, 15.9, 14.14, 13.17, and 12.21 (PostgreSQL Advisory).

Technical details

The vulnerability allows a server not trusted under current SSL or GSS settings to furnish arbitrary non-NUL bytes to the libpq application. This issue has been assigned a CVSS 3.1 base score of 3.7 (Low) with the vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N according to NVD assessment, while PostgreSQL's own assessment rates it at 3.1 (Low) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N (NVD, PostgreSQL Advisory).

Impact

The primary impact of this vulnerability is that a man-in-the-middle attacker could send a long error message that a human or screen-scraper user of psql might mistake for valid query results. However, this is noted to be less concerning for clients where the user interface clearly indicates the boundary between error messages and other text (PostgreSQL Advisory).

Mitigation and workarounds

The vulnerability has been fixed in PostgreSQL versions 17.1, 16.5, 15.9, 14.14, 13.17, and 12.21. Users are advised to upgrade to these or later versions to mitigate the vulnerability (PostgreSQL Advisory).

Additional resources


SourceThis report was generated using AI

Related PostgreSQL vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-8715HIGH8.8
  • PostgreSQLPostgreSQL
  • postgresql:12::pg_repack
NoYesAug 14, 2025
CVE-2025-8714HIGH8.8
  • PostgreSQLPostgreSQL
  • postgresql15-upgrade
NoYesAug 14, 2025
CVE-2025-12818MEDIUM5.9
  • PostgreSQLPostgreSQL
  • postgresql15-server-debuginfo
NoYesNov 13, 2025
CVE-2025-12817LOW3.1
  • PostgreSQLPostgreSQL
  • postgresql:16::postgresql-contrib
NoYesNov 13, 2025
CVE-2025-8713LOW3.1
  • PostgreSQLPostgreSQL
  • postgresql16-plpython
NoYesAug 14, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management