CVE-2024-10977 json
PostgreSQL libpq retains an error message from man-in-the-middle
published 2024-11-14 23 mo ago modified 2026-09-10 59 d ago also BIT-postgresql-2024-10977 , EUVD-2024-33375 , JLSEC-2026-48
- cvss
- 3.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 34%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami postgresql 12.21.0, 13.17.0, 14.14.0, 15.9.0, 16.5.0, 17.1.0
- julia LibPQ_jll 16.8.0+0
- n/a PostgreSQL 12.21, 13.17, 14.14, 15.9, 16.5, 17.1
- postgresql-15 Debian 12 15.9-0+deb12u1
- postgresql-17 Debian 13 17.1-1
debian advisories DEBIAN-CVE-2024-10977
- postgresql-12 Ubuntu 20.04 LTS 12.22-0ubuntu0.20.04.1
- postgresql-14 Ubuntu 22.04 LTS 14.15-0ubuntu0.22.04.1
- postgresql-16 Ubuntu 24.04 LTS 16.6-0ubuntu0.24.04.1
- postgresql-9.5 Ubuntu Pro 16.04 LTS 9.5.25-0ubuntu0.16.04.1+esm10
ubuntu advisories UBUNTU-CVE-2024-10977
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- postgresql14 SLES for SAP 15 SP4, SLES for SAP 15 SP3, SLES for SAP 15 SP2 +13 more 14.15-150200.5.50.1
- postgresql13 SLES for SAP 15 SP4, SLES for SAP 15 SP3, SLES for SAP 15 SP2 +10 more 13.18-150200.5.64.1
- postgresql15 SLES for SAP 15 SP4, SLES for SAP 15 SP3, SLES 15 SP4-LTSS +10 more 15.10-150200.5.33.1
- postgresql17 SLES for SAP 15 SP4, SLES for SAP 15 SP3, SLES 15 SP4-LTSS +11 more 17.2-150200.5.5.1
- postgresql SLE Module for Server Applications 15 SP5, SLE Module for Package Hub 15 SP5, SLE Module for Legacy 15 SP5 +2 more 17-150500.10.9.1
- postgresql SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 17-150300.10.27.1
- postgresql SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE High Performance Computing 15 SP4-LTSS +3 more 17-150400.4.18.1
- postgresql16 SLES for SAP 15 SP4, SLES for SAP 15 SP3, SLES 15 SP4-LTSS +11 more 16.6-150200.5.21.1
suse advisories SUSE-SU-2025:01799-1SUSE-SU-2024:4176-1SUSE-SU-2024:4175-1SUSE-SU-2024:4174-1SUSE-SU-2024:4173-1SUSE-SU-2024:4118-1
- postgresql12 openSUSE Tumbleweed 12.21-1.1
- postgresql13 openSUSE Tumbleweed 13.17-1.1
- postgresql14 openSUSE Tumbleweed 14.14-1.1
- postgresql15 openSUSE Tumbleweed 15.9-1.1
- postgresql16 openSUSE Tumbleweed 16.5-1.1
- postgresql17 openSUSE Tumbleweed 17.1-1.1
opensuse advisories openSUSE-SU-2024:14501-1openSUSE-SU-2024:14502-1openSUSE-SU-2024:14503-1openSUSE-SU-2024:14504-1openSUSE-SU-2024:14505-1openSUSE-SU-2024:14506-1
- postgresql13 Alpine 3.19, Alpine 3.18, Alpine 3.17 13.17-r0
- postgresql14 Alpine 3.20, Alpine 3.19, Alpine 3.18 +1 more 14.14-r0
- postgresql15 Alpine 3.22, Alpine 3.21, Alpine 3.20 +3 more 15.9-r0
- postgresql16 Alpine 3.24, Alpine 3.23, Alpine 3.22 +3 more 16.5-r0
- postgresql17 Alpine 3.24, Alpine 3.23, Alpine 3.22 +1 more 17.1-r0
alpine advisories ALPINE-CVE-2024-10977
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- postgresql CBL-Mariner 2.0 14.14-1
- postgresql Azure Linux 3.0 16.5-1
azure linux advisories AZL-53195AZL-53206
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-10977 updated cvss 3.1
postgresql: PostgreSQL libpq retains an error message from man-in-the-middle
-
Red Hat Enterprise Linux 7 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +3 moreaffected: workaround, no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 8 pgaudit, pg_repack, postgresql, postgresql-test, postgresql-pltcl, postgresql-plperl, +7 more Red Hat Enterprise Linux 9 postgresql, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, postgresql-contrib, +4 moreaffected: workaround, no fix available “Fix deferred”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 23 mo ago
Exploit prediction
0.40% chance of exploitation in the next 30 days, higher than 34% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N |
| NVD | 3.1 | 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | 3.1 | 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N |
| OSV | 3.1 | 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | postgresql | <12.21.0 >=13.0.0, <13.17.0 >=14.0.0, <14.14.0 >=15.0.0, <15.9.0 >=16.0.0, <16.5.0 >=17.0.0, <17.1.0 |
12.21.0 13.17.0 14.14.0 15.9.0 16.5.0 17.1.0 |
| julia | LibPQ_jll | <16.8.0+0 |
16.8.0+0 |
Affected products
- n/a PostgreSQL
Classification
- Weakness
- Technology feeds
References
-
postgresql.org
/support/security/CVE-2024-10977/
vendor-advisory, advisory, web
-
lists.debian.org
/debian-lts-announce/2024/11/msg00011.html
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-10977
web
Sources
- CVE List CVE-2024-10977
- NVD CVE-2024-10977
- OSV BIT-postgresql-2024-10977
- OSV JLSEC-2026-48
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.