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

- Priority: **Routine**
- Reason: Not severe (CVSS 3.1, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-11-14 · Modified: 2025-11-03
- Aliases: ALPINE-CVE-2024-10977, UBUNTU-CVE-2024-10977, DEBIAN-CVE-2024-10977, CGA-33vf-v8rv-xwwm, CGA-3x95-qcv3-cwgm, CGA-4h78-69q5-hw97, CGA-6733-wc87-2q43, CGA-7grc-4vvr-xm62, CGA-8687-gv8w-gp2g, CGA-f57f-2mrc-47mr, CGA-jw8f-9rmx-2jjf, CGA-m4xq-wjq2-9x5x, CGA-mprp-3j53-8wm6, CGA-prcx-q3r7-rfgm, CGA-qf8c-hvm8-4xgm, CGA-r4w9-87p4-2xhc, CGA-vwwv-97jc-c64g, CGA-wwqh-q8q9-qp45
- Record: https://cvemate.com/vulnerability/CVE-2024-10977 · JSON: https://cvemate.com/vulnerability/CVE-2024-10977/json

## Description

```text
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.
```

## Signals

- CVSS: 3.7 low (v3.1, NVD) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
- EPSS: 0.398%, percentile 36.142%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 30)

- alpine postgresql13 (Alpine Linux): \< 13.17-r0
- alpine postgresql14 (Alpine Linux): \< 14.14-r0
- alpine postgresql15 (Alpine Linux): \< 15.9-r0
- alpine postgresql16 (Alpine Linux): \< 16.5-r0
- alpine postgresql17 (Alpine Linux): \< 17.1-r0
- chainguard postgresql-12 (Chainguard): \< 12.21-r0
- chainguard postgresql-13 (Chainguard): \< 13.17-r0
- chainguard postgresql-14 (Chainguard): \< 14.14-r0
- chainguard postgresql-14-client (Chainguard): \< 14.24-r2
- chainguard postgresql-15 (Chainguard): \< 15.9-r0
- chainguard postgresql-15-client (Chainguard): \< 15.19-r2
- chainguard postgresql-16 (Chainguard): \< 16.5-r0
- chainguard postgresql-17 (Chainguard): \< 17.1-r0
- wolfi postgresql-12 (Wolfi): \< 12.21-r0
- wolfi postgresql-13 (Wolfi): \< 13.17-r0
- wolfi postgresql-14 (Wolfi): \< 14.14-r0
- wolfi postgresql-14-client (Wolfi): \< 14.24-r2
- wolfi postgresql-15 (Wolfi): \< 15.9-r0
- wolfi postgresql-15-client (Wolfi): \< 15.19-r2
- wolfi postgresql-16 (Wolfi): \< 16.5-r0

## References

- <https://www.postgresql.org/support/security/CVE-2024-10977/>
- <https://lists.debian.org/debian-lts-announce/2024/11/msg00011.html>
- <https://security.alpinelinux.org/vuln/CVE-2024-10977>
- <https://ubuntu.com/security/CVE-2024-10977>
- <https://www.cve.org/CVERecord?id=CVE-2024-10977>
- <https://ubuntu.com/security/notices/USN-7132-1>
- <https://ubuntu.com/security/notices/USN-7358-1>
- <https://security-tracker.debian.org/tracker/CVE-2024-10977>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-10977>

---

Data as of 2026-12-05T04:39:34.277Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
