CVE-2024-10977
JSON

3.1low

PostgreSQL libpq retains an error message from man-in-the-middle

Severity
3.1low CVSS:3.1 by PostgreSQL
Exploit likelihood
0.40% (higher than 36% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
PostgreSQL
Also known as
BIT-POSTGRESQL-2024-10977

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.

Affected

Product or packageVersionsReported by
PostgreSQLfrom 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.21CVE List
postgresql postgresqlfrom 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.0NVD
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.0Bitnami Vulnerability Database

All scores

PostgreSQL3.1low CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N
NVD3.7low CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Bitnami Vulnerability Databaselow rating

Classification

CWE-345CWE-348

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

El uso del mensaje de error del servidor por parte del cliente en PostgreSQL permite que un servidor que no es de confianza según la configuración actual de SSL o GSS proporcione bytes arbitrarios que no sean NUL a la aplicación libpq. Por ejemplo, un atacante intermediario podría enviar un mensaje de error largo que un usuario humano o un usuario de psql que rastree la pantalla confunda con resultados de consulta válidos. Probablemente esto no sea un problema para los clientes en los que la interfaz de usuario indica de forma inequívoca el límite entre un mensaje de error y otro texto. Las versiones anteriores a PostgreSQL 17.1, 16.5, 15.9, 14.14, 13.17 y 12.21 se ven afectadas.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-10977 changed 2025-11-03CVE Terms of Use
NVDCVE-2024-10977 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-POSTGRESQL-2024-10977 changed 2026-09-10Apache-2.0