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

- Severity: Low 3.1 (CVSS:3.1, scored by PostgreSQL) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Published: 2024-11-14T13:00:05.715Z
- Modified: 2026-09-10T16:01:45.942Z
- Also known as: BIT-POSTGRESQL-2024-10977
- Weaknesses: CWE-345, CWE-348
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: PostgreSQL

## 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.

(As written by CVE List.)

## Affected

- PostgreSQL: from 17 before 17.1; from 16 before 16.5; from 15 before 15.9; from 14 before 14.14; from 13 before 13.17; before 12.21
- postgresql postgresql: from 12.0 before 12.21; from 13.0 before 13.17; from 14.0 before 14.14; from 15.0 before 15.9; from 16.0 before 16.5; 17.0
- postgresql (Bitnami): before 12.21.0; from 13.0.0 before 13.17.0; from 14.0.0 before 14.14.0; from 15.0.0 before 15.9.0; from 16.0.0 before 16.5.0; from 17.0.0 before 17.1.0

## Every score

- PostgreSQL: CVSS:3.1 3.1 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Bitnami Vulnerability Database: rating Low

## References

- <https://www.postgresql.org/support/security/CVE-2024-10977/> (advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2024/11/msg00011.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-10977> (web)

## Sources

- CVE List: [CVE-2024-10977](https://www.cve.org/CVERecord?id=CVE-2024-10977), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2024-10977](https://nvd.nist.gov/vuln/detail/CVE-2024-10977), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-POSTGRESQL-2024-10977](https://osv.dev/vulnerability/BIT-POSTGRESQL-2024-10977), Apache-2.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2024-10977 · Whole record: https://cve.day/CVE-2024-10977.json · Rebuilt by cve.day 2026-11-25T22:58:48.251Z
