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 package | Versions | Reported by |
|---|---|---|
| PostgreSQL | from 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.21 | CVE List |
| postgresql postgresql | from 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.0 | NVD |
| 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.0 | Bitnami Vulnerability Database |
All scores
| PostgreSQL | 3.1low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N |
| NVD | 3.7low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N |
| Bitnami Vulnerability Database | low rating |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-10977 changed 2025-11-03 | CVE Terms of Use |
| NVD | CVE-2024-10977 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-POSTGRESQL-2024-10977 changed 2026-09-10 | Apache-2.0 |