CVE-2024-10977PostgreSQL libpq retains an error message from man-in-the-middle
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.
What to do
Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | postgresql-17 | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | postgresql-16 | Fixed | 16.6-0ubuntu0.24.04.1 | UBUNTU-CVE-2024-10977 |
| Ubuntu 22.04 | postgresql-14 | Fixed | 14.15-0ubuntu0.22.04.1 | UBUNTU-CVE-2024-10977 |
| Ubuntu 20.04 | postgresql-12 | Fixed | 12.22-0ubuntu0.20.04.1 | UBUNTU-CVE-2024-10977 |
| Ubuntu 18.04 | postgresql-10 | Fix pending | UBUNTU-CVE-2024-10977 | |
| Ubuntu 16.04 | postgresql-9.5 | Fix pending | 9.5.25-0ubuntu0.16.04.1+esm10 (Ubuntu Pro) | UBUNTU-CVE-2024-10977 |
| Ubuntu 14.04 | postgresql-9.3 | Fix pending | UBUNTU-CVE-2024-10977 | |
| Debian 13 | postgresql-17 | Fixed | 17.1-1 | DEBIAN-CVE-2024-10977 |
| Debian 12 | postgresql-15 | Fixed | 15.9-0+deb12u1 | DEBIAN-CVE-2024-10977 |
| Red Hat Enterprise Linux 9 | postgresql | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | postgresql-contrib | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | postgresql-docs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | postgresql-plperl | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | postgresql-plpython3 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | postgresql-pltcl | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | postgresql-private-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | postgresql-private-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | postgresql-server | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | postgresql-server-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | postgresql-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | postgresql-test | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | postgresql-test-rpm-macros | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | postgresql-upgrade | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | postgresql-upgrade-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | pg_repack | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | pgaudit | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgres-decoderbufs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgresql | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgresql-contrib | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgresql-docs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgresql-plperl | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgresql-plpython3 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgresql-pltcl | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgresql-private-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgresql-private-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgresql-server | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgresql-server-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgresql-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgresql-test | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgresql-test-rpm-macros | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgresql-upgrade | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgresql-upgrade-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | postgresql-contrib | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | postgresql-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | postgresql-docs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | postgresql-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | postgresql-plperl | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | postgresql-plpython | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | postgresql-pltcl | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | postgresql-server | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | postgresql-static | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | postgresql-test | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | postgresql-upgrade | Will not fix Out of support scope | ||
| Alpine Linux 3.24 | postgresql16 | Fixed | 16.5-r0 | ALPINE-CVE-2024-10977 |
| Alpine Linux 3.24 | postgresql17 | Fixed | 17.1-r0 | ALPINE-CVE-2024-10977 |
| Alpine Linux 3.23 | postgresql16 | Fixed | 16.5-r0 | ALPINE-CVE-2024-10977 |
| Alpine Linux 3.23 | postgresql17 | Fixed | 17.1-r0 | ALPINE-CVE-2024-10977 |
| Alpine Linux 3.22 | postgresql15 | Fixed | 15.9-r0 | ALPINE-CVE-2024-10977 |
| Alpine Linux 3.22 | postgresql16 | Fixed | 16.5-r0 | ALPINE-CVE-2024-10977 |
| Alpine Linux 3.22 | postgresql17 | Fixed | 17.1-r0 | ALPINE-CVE-2024-10977 |
| Alpine Linux 3.21 | postgresql15 | Fixed | 15.9-r0 | ALPINE-CVE-2024-10977 |
| Alpine Linux 3.21 | postgresql16 | Fixed | 16.5-r0 | ALPINE-CVE-2024-10977 |
| Alpine Linux 3.21 | postgresql17 | Fixed | 17.1-r0 | ALPINE-CVE-2024-10977 |
| Alpine Linux 3.20 | postgresql14 | Fixed | 14.14-r0 | ALPINE-CVE-2024-10977 |
| Alpine Linux 3.20 | postgresql15 | Fixed | 15.9-r0 | ALPINE-CVE-2024-10977 |
| Alpine Linux 3.20 | postgresql16 | Fixed | 16.5-r0 | ALPINE-CVE-2024-10977 |
| Alpine Linux 3.19 | postgresql13 | Fixed | 13.17-r0 | ALPINE-CVE-2024-10977 |
| Alpine Linux 3.19 | postgresql14 | Fixed | 14.14-r0 | ALPINE-CVE-2024-10977 |
| Alpine Linux 3.19 | postgresql15 | Fixed | 15.9-r0 | ALPINE-CVE-2024-10977 |
| Alpine Linux 3.19 | postgresql16 | Fixed | 16.5-r0 | ALPINE-CVE-2024-10977 |
| Alpine Linux 3.18 | postgresql13 | Fixed | 13.17-r0 | ALPINE-CVE-2024-10977 |
| Alpine Linux 3.18 | postgresql14 | Fixed | 14.14-r0 | ALPINE-CVE-2024-10977 |
| Alpine Linux 3.18 | postgresql15 | Fixed | 15.9-r0 | ALPINE-CVE-2024-10977 |
| Alpine Linux 3.17 | postgresql13 | Fixed | 13.17-r0 | ALPINE-CVE-2024-10977 |
| Alpine Linux 3.17 | postgresql14 | Fixed | 14.14-r0 | ALPINE-CVE-2024-10977 |
| Alpine Linux 3.17 | postgresql15 | Fixed | 15.9-r0 | ALPINE-CVE-2024-10977 |
What the vendor says
As published in the CVE record by PostgreSQL, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- PostgreSQL: affected: 17 to before 17.1, 16 to before 16.5, 15 to before 15.9, 14 to before 14.14, 13 to before 13.17, before 12.21; fixed in
17.1,16.5,15.9,14.14,13.17,12.21
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.