SecurityContext

CVE-2018-10915: libpq - SQL Injection

  • Cve: CVE-2018-10915
  • Name: libpq - SQL Injection
  • 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.
  • Impact: Attackers can bypass connection security features or cause impact through SQL injection, potentially leading to unauthorized access or data manipulation.
  • Remediation: Update to PostgreSQL versions 10.5, 9.6.10, 9.5.14, 9.4.19, or 9.3.24 or later.
  • Vulnerability type: sql_injection
  • Vulnerability impact: information_disclosure, data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.05066
  • Epss percentile: 0.92528
  • Assignee: [email protected]
  • Published at: 2018-08-09T20:29:00Z
  • Age in days: 3029
  • Modified at: 2026-06-17T01:34:54Z
  • Patch available: yes
  • References total: 17
  • Products total: 9
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2018-10915
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-89Improper Neutralization of Special Elements used in an SQL Command

References

Same in every row:

  • Source: nvd
UrlTags
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-10915Issue Tracking, Patch, Third Party Advisory
https://www.postgresql.org/about/news/1878/Vendor Advisory
http://www.securityfocus.com/bid/105054Third Party Advisory, VDB Entry
http://www.securitytracker.com/id/1041446Third Party Advisory, VDB Entry
https://access.redhat.com/errata/RHSA-2018:2511Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:2557Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:2565Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:2566Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:2643Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:2721Third Party Advisory

Products

Same in every row:

  • Platform bound: no
  • Sources: nvd
ProductAffectedUrl
postgresql:postgresql>= 10.0, < 10.5; >= 9.6.0, < 9.6.10; >= 9.5.0, < 9.5.14; >= 9.4.0, < 9.4.19; >= 9.3.0, < 9.3.24/v1/products/postgresql/postgresql
debian:debian_linux= 9.0, = 8.0/v1/products/debian/debian_linux
canonical:ubuntu_linux= 18.04, = 16.04, = 14.04/v1/products/canonical/ubuntu_linux
redhat:enterprise_linux_desktop= 7.0/v1/products/redhat/enterprise_linux_desktop
redhat:enterprise_linux_server= 7.0/v1/products/redhat/enterprise_linux_server
redhat:enterprise_linux_workstation= 7.0/v1/products/redhat/enterprise_linux_workstation
redhat:enterprise_linux_server_eus= 7.5/v1/products/redhat/enterprise_linux_server_eus
redhat:openstack= 13, = 12/v1/products/redhat/openstack
redhat:virtualization= 4.0/v1/products/redhat/virtualization

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 21216412
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports