cve.bz

CVE-2024-10977 postgresql postgresql: Use of Less Trusted Source

3.7 lowEPSS 0.4%

Low (3.7) in postgresql postgresql. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 35th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-11-14. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-345 Insufficient Verification of Data Authenticity
CWE-348 Use of Less Trusted Source
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-10977 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-10977?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-10977?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-10977 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
postgresql:postgresqlfrom 12.0 before 12.21
postgresql:postgresqlfrom 13.0 before 13.17
postgresql:postgresqlfrom 14.0 before 14.14
postgresql:postgresqlfrom 15.0 before 15.9
postgresql:postgresqlfrom 16.0 before 16.5
postgresql:postgresql17.0
postgresql:postgresql17.0:beta1
postgresql:postgresql17.0:beta2
postgresql:postgresql17.0:beta3
postgresql:postgresql17.0:rc1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11postgresql-1313.17-0+deb11u1DLA-3954-1
Debian12postgresql-1515.9-0+deb12u1DEBIAN-CVE-2024-10977 DSA-5812-1
Debian13postgresql-1717.1-1DEBIAN-CVE-2024-10977
Ubuntu20.04:LTSpostgresql-1212.22-0ubuntu0.20.04.1UBUNTU-CVE-2024-10977 USN-7132-1
Ubuntu22.04:LTSpostgresql-1414.15-0ubuntu0.22.04.1UBUNTU-CVE-2024-10977 USN-7132-1
Ubuntu24.04:LTSpostgresql-1616.6-0ubuntu0.24.04.1UBUNTU-CVE-2024-10977 USN-7132-1
UbuntuPro:14.04:LTSpostgresql-9.3no fix listedUBUNTU-CVE-2024-10977
UbuntuPro:16.04:LTSpostgresql-9.59.5.25-0ubuntu0.16.04.1+esm10UBUNTU-CVE-2024-10977 USN-7358-1
UbuntuPro:18.04:LTSpostgresql-10no fix listedUBUNTU-CVE-2024-10977
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 12 morepostgresql1414.15-150200.5.50.1SUSE-SU-2024:4176-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 8 morepostgresql1313.18-150200.5.64.1SUSE-SU-2024:4175-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 4 morepostgresql1212.22-150200.8.66.1SUSE-SU-2024:4099-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 10 morepostgresql1616.6-150200.5.21.1SUSE-SU-2024:4173-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 10 morepostgresql1717.2-150200.5.5.1SUSE-SU-2024:4173-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 9 morepostgresql1515.10-150200.5.33.1SUSE-SU-2024:4174-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Server 15 SP3-LTSS and 1 morepostgresql17-150300.10.27.1SUSE-SU-2024:4173-1
SUSELinux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise Server 15 SP2-LTSS, Linux Enterprise Server for SAP Applications 15 SP2postgresql17-150200.4.30.1SUSE-SU-2024:4173-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 3 morepostgresql17-150400.4.18.1SUSE-SU-2024:4173-1
SUSELinux Enterprise Module for Basesystem 15 SP5, Linux Enterprise Module for Legacy 15 SP5, Linux Enterprise Module for Package Hub 15 SP5 and 1 morepostgresql17-150500.10.9.1SUSE-SU-2024:4173-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Package Hub 15 SP6, Linux Enterprise Module for Server Applications 15 SP6postgresql17-150600.17.6.1SUSE-SU-2024:4063-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Package Hub 15 SP6, Linux Enterprise Module for Server Applications 15 SP6postgresql1616.6-150600.16.10.1SUSE-SU-2024:4063-1
10 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.5postgresql17-150500.10.9.1SUSE-SU-2024:4173-1
openSUSELeap 15.5postgresql1414.15-150200.5.50.1SUSE-SU-2024:4176-1
openSUSELeap 15.5postgresql1515.10-150200.5.33.1SUSE-SU-2024:4174-1
openSUSELeap 15.5postgresql1616.6-150200.5.21.1SUSE-SU-2024:4173-1
openSUSELeap 15.5postgresql1717.2-150200.5.5.1SUSE-SU-2024:4173-1
openSUSELeap 15.5, Leap 15.6postgresql1212.22-150200.8.66.1SUSE-SU-2024:4099-1
openSUSELeap 15.5, Leap 15.6postgresql1313.18-150200.5.64.1SUSE-SU-2024:4175-1
openSUSELeap 15.6postgresql17-150600.17.6.1SUSE-SU-2024:4063-1
openSUSELeap 15.6postgresql1414.15-150600.16.9.1SUSE-SU-2024:4118-1
openSUSELeap 15.6postgresql1515.10-150600.16.9.1SUSE-SU-2024:4098-1
openSUSELeap 15.6postgresql1616.6-150600.16.10.1SUSE-SU-2024:4063-1
openSUSELeap 15.6postgresql1717.2-150600.13.5.1SUSE-SU-2024:4063-1
6 more for openSUSE in the JSON and on openSUSE's page.
Alpinev3.17, v3.18, v3.19postgresql1313.17-r0ALPINE-CVE-2024-10977
Alpinev3.17, v3.18, v3.19 and 1 morepostgresql1414.14-r0ALPINE-CVE-2024-10977
Alpinev3.17, v3.18, v3.19 and 3 morepostgresql1515.9-r0ALPINE-CVE-2024-10977
Alpinev3.19, v3.20, v3.21 and 3 morepostgresql1616.5-r0ALPINE-CVE-2024-10977
Alpinev3.21, v3.22, v3.23 and 1 morepostgresql1717.1-r0ALPINE-CVE-2024-10977
Azure Linux2postgresql14.14-1AZL-53195
Azure Linux3postgresql16.5-1AZL-53206
Alpaquita23postgresql1515.9-r0BELL-CVE-2024-10977
Alpaquitastreampostgresql1717.1-r0BELL-CVE-2024-10977

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Low.

Red Hat's statement

This vulnerability affects PostgreSQL clients that handle error messages from untrusted servers, which may cause error messages to be misinterpreted as valid query results.

Red Hat's mitigation

Make sure PostgreSQL is configured to use trusted SSL or GSS settings to prevent untrusted servers from sending error messages.

Additionally, when interpreting output from the psql command line interface, make sure to distinguish between error messages and valid data.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7postgresqlOut of support scope
Red Hat Enterprise Linux 8postgresql:12/postgresqlFix deferred
Red Hat Enterprise Linux 8postgresql:13/postgresqlFix deferred
Red Hat Enterprise Linux 8postgresql:15/postgresqlFix deferred
Red Hat Enterprise Linux 8postgresql:16/postgresqlFix deferred
Red Hat Enterprise Linux 9postgresqlFix deferred
Red Hat Enterprise Linux 9postgresql:15/postgresqlFix deferred
Red Hat Enterprise Linux 9postgresql:16/postgresqlFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-10977.

Attack patterns (CAPEC)

  • CAPEC-73 User-Controlled Filename Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-141 Cache Poisoning Likelihood: High · Severity: High
  • CAPEC-142 DNS Cache Poisoning Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-345 (12).

References

Check your stackJSON