Read the docs
TI-2015-02798 Aliases CVE-2015-3166GHSA-65w5-rcgr-gxgj

Memory corruption in PostgreSQL

Priority MEDIUM 50CWE-119Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Partial Red Hat: 20 fixed, 3 without a fix

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-119 and the CVSS impact.

Summary

The snprintf implementation in PostgreSQL before 9.0.20, 9.1.x before 9.1.16, 9.2.x before 9.2.11, 9.3.x before 9.3.7, and 9.4.x before 9.4.2 does not properly handle system-call errors, which allows attackers to obtain sensitive information or have other unspecified impact via unknown vectors, as demonstrated by an out-of-memory error.

Why it matters now

EPSS 0.04611 91st percentileScored 2026-11-07
Fix Partial PostgreSQL (PostgreSQL Global Development Group): 9.0.20, 9.1.16, 9.2.11 +1Red Hat: 3 advisoriesRed Hat: 20 fixed, 3 without a fix

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
PostgreSQLPostgreSQLbefore 9.0.20; 9.1 to before 9.1.16; 9.2 to before 9.2.11; 9.3 to before 9.3.7; and 9.4.x before 9.4.29.0.20, 9.1.16, 9.2.11, 9.3.7Patch availableCNA
  • PostgreSQL VendorPostgreSQL Affected before 9.0.20; 9.1 to before 9.1.16; 9.2 to before 9.2.11; 9.3 to before 9.3.7; and 9.4.x before 9.4.2 Fixed in 9.0.20, 9.1.16, 9.2.11, 9.3.7 Patch available CNA

CPE configurations NVD · 8

CPEVersionsRoleVendor
cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*before 9.0.20; 9.1 to before 9.1.16; 9.2 to before 9.2.11; 9.3 to before 9.3.7; 9.4 to before 9.4.2VulnerablePostgreSQL
cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*7.0VulnerableDebian
cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*8.0VulnerableDebian
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*9.0VulnerableDebian
cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:lts:*:*:*12.04VulnerableCanonical
cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*14.04VulnerableCanonical
cpe:2.3:o:canonical:ubuntu_linux:14.10:*:*:*:*:*:*:*14.10VulnerableCanonical
cpe:2.3:o:canonical:ubuntu_linux:15.04:*:*:*:*:*:*:*15.04VulnerableCanonical
  • cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* Versions before 9.0.20; 9.1 to before 9.1.16; 9.2 to before 9.2.11; 9.3 to before 9.3.7; 9.4 to before 9.4.2 Vulnerable ·PostgreSQL
  • cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Debian
  • cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Debian
  • cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian
  • cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:lts:*:*:* Versions 12.04 Vulnerable ·Canonical
  • cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* Versions 14.04 Vulnerable ·Canonical
  • cpe:2.3:o:canonical:ubuntu_linux:14.10:*:*:*:*:*:*:* Versions 14.10 Vulnerable ·Canonical
  • cpe:2.3:o:canonical:ubuntu_linux:15.04:*:*:*:*:*:*:* Versions 15.04 Vulnerable ·Canonical

Remediation

  • Fix · CNA PostgreSQL (PostgreSQL Global Development Group) Fixed in 9.0.20, 9.1.16, 9.2.11, 9.3.7

Red Hat 3 advisories

  • RHSA-2015:1194 Released 2015-06-29 · Red Hat rating Moderate
    postgresql security update
    • Red Hat Enterprise Linux Client Optional (v. 7) postgresql-9.2.13-1.el7_1, postgresql-contrib-9.2.13-1.el7_1, postgresql-devel-9.2.13-1.el7_1 +8
    • Red Hat Enterprise Linux ComputeNode (v. 7) postgresql-9.2.13-1.el7_1, postgresql-libs-9.2.13-1.el7_1
    • Red Hat Enterprise Linux ComputeNode Optional (v. 7) postgresql-9.2.13-1.el7_1, postgresql-contrib-9.2.13-1.el7_1, postgresql-devel-9.2.13-1.el7_1 +7
    • Red Hat Enterprise Linux Desktop (v. 6) postgresql-8.4.20-3.el6_6, postgresql-libs-8.4.20-3.el6_6
    • Red Hat Enterprise Linux Desktop Optional (v. 6) postgresql-8.4.20-3.el6_6, postgresql-contrib-8.4.20-3.el6_6, postgresql-devel-8.4.20-3.el6_6 +6
    • Red Hat Enterprise Linux HPC Node (v. 6) postgresql-8.4.20-3.el6_6, postgresql-libs-8.4.20-3.el6_6
    • Red Hat Enterprise Linux HPC Node Optional (v. 6) postgresql-contrib-8.4.20-3.el6_6, postgresql-devel-8.4.20-3.el6_6, postgresql-docs-8.4.20-3.el6_6 +5
    • Red Hat Enterprise Linux Server (v. 6) postgresql-8.4.20-3.el6_6, postgresql-8.4.20-3.el6_6.ppc, postgresql-contrib-8.4.20-3.el6_6 +10
    • Red Hat Enterprise Linux Server (v. 7) postgresql-9.2.13-1.ael7b_1, postgresql-9.2.13-1.el7_1, postgresql-9.2.13-1.el7_1.ppc +20
    • Red Hat Enterprise Linux Server Optional (v. 7) postgresql-upgrade-9.2.13-1.ael7b_1, postgresql-upgrade-9.2.13-1.el7_1
    • Red Hat Enterprise Linux Workstation (v. 6) postgresql-8.4.20-3.el6_6, postgresql-contrib-8.4.20-3.el6_6, postgresql-devel-8.4.20-3.el6_6 +7
    • Red Hat Enterprise Linux Workstation (v. 7) postgresql-9.2.13-1.el7_1, postgresql-contrib-9.2.13-1.el7_1, postgresql-devel-9.2.13-1.el7_1 +7
    • Red Hat Enterprise Linux Workstation Optional (v. 7) postgresql-upgrade-9.2.13-1.el7_1
  • RHSA-2015:1195 Released 2015-06-29 · Red Hat rating Moderate
    postgresql92-postgresql security update
    • Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) postgresql92-postgresql-9.2.13-1.el6, postgresql92-postgresql-contrib-9.2.13-1.el6, postgresql92-postgresql-devel-9.2.13-1.el6 +8
    • Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) postgresql92-postgresql-9.2.13-1.el7, postgresql92-postgresql-contrib-9.2.13-1.el7, postgresql92-postgresql-devel-9.2.13-1.el7 +8
    • Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.5) postgresql92-postgresql-9.2.13-1.el6, postgresql92-postgresql-contrib-9.2.13-1.el6, postgresql92-postgresql-devel-9.2.13-1.el6 +8
    • Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6) postgresql92-postgresql-9.2.13-1.el6, postgresql92-postgresql-contrib-9.2.13-1.el6, postgresql92-postgresql-devel-9.2.13-1.el6 +8
    • Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.1) postgresql92-postgresql-9.2.13-1.el7, postgresql92-postgresql-contrib-9.2.13-1.el7, postgresql92-postgresql-devel-9.2.13-1.el7 +8
    • Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) postgresql92-postgresql-9.2.13-1.el6, postgresql92-postgresql-contrib-9.2.13-1.el6, postgresql92-postgresql-devel-9.2.13-1.el6 +8
    • Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) postgresql92-postgresql-9.2.13-1.el7, postgresql92-postgresql-contrib-9.2.13-1.el7, postgresql92-postgresql-devel-9.2.13-1.el7 +8
  • RHSA-2015:1196 Released 2015-06-29 · Red Hat rating Moderate
    rh-postgresql94-postgresql security update
    • Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-postgresql94-postgresql-9.4.4-1.el6, rh-postgresql94-postgresql-contrib-9.4.4-1.el6, rh-postgresql94-postgresql-devel-9.4.4-1.el6 +8
    • Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-postgresql94-postgresql-9.4.4-1.el7, rh-postgresql94-postgresql-contrib-9.4.4-1.el7, rh-postgresql94-postgresql-devel-9.4.4-1.el7 +8
    • Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.5) rh-postgresql94-postgresql-9.4.4-1.el6, rh-postgresql94-postgresql-contrib-9.4.4-1.el6, rh-postgresql94-postgresql-devel-9.4.4-1.el6 +8
    • Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6) rh-postgresql94-postgresql-9.4.4-1.el6, rh-postgresql94-postgresql-contrib-9.4.4-1.el6, rh-postgresql94-postgresql-devel-9.4.4-1.el6 +8
    • Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.1) rh-postgresql94-postgresql-9.4.4-1.el7, rh-postgresql94-postgresql-contrib-9.4.4-1.el7, rh-postgresql94-postgresql-devel-9.4.4-1.el7 +8
    • Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-postgresql94-postgresql-9.4.4-1.el6, rh-postgresql94-postgresql-contrib-9.4.4-1.el6, rh-postgresql94-postgresql-devel-9.4.4-1.el6 +8
    • Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-postgresql94-postgresql-9.4.4-1.el7, rh-postgresql94-postgresql-contrib-9.4.4-1.el7, rh-postgresql94-postgresql-devel-9.4.4-1.el7 +8

Vendor assessments

Red Hat

Red Hat rating: Low. Red Hat's page for this CVE →

ProductStatusPlan or fix
CloudForms Management Engine 5AffectedNo fix yet
Red Hat Enterprise Linux 5AffectedNo fix yet
Red Hat Satellite 5AffectedNo fix yet
Red Hat Enterprise Linux Client Optional (v. 7)Fixed RHSA-2015:1194
Red Hat Enterprise Linux ComputeNode (v. 7)Fixed RHSA-2015:1194
Red Hat Enterprise Linux ComputeNode Optional (v. 7)Fixed RHSA-2015:1194
Red Hat Enterprise Linux Desktop (v. 6)Fixed RHSA-2015:1194
Red Hat Enterprise Linux Desktop Optional (v. 6)Fixed RHSA-2015:1194
Red Hat Enterprise Linux HPC Node (v. 6)Fixed RHSA-2015:1194
Red Hat Enterprise Linux HPC Node Optional (v. 6)Fixed RHSA-2015:1194
Red Hat Enterprise Linux Server (v. 6)Fixed RHSA-2015:1194
Red Hat Enterprise Linux Server (v. 7)Fixed RHSA-2015:1194
Red Hat Enterprise Linux Server Optional (v. 7)Fixed RHSA-2015:1194
Red Hat Enterprise Linux Workstation (v. 6)Fixed RHSA-2015:1194
Red Hat Enterprise Linux Workstation (v. 7)Fixed RHSA-2015:1194
Red Hat Enterprise Linux Workstation Optional (v. 7)Fixed RHSA-2015:1194
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6)Fixed RHSA-2015:1195, RHSA-2015:1196
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)Fixed RHSA-2015:1195, RHSA-2015:1196
Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.5)Fixed RHSA-2015:1195, RHSA-2015:1196
Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6)Fixed RHSA-2015:1195, RHSA-2015:1196
Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.1)Fixed RHSA-2015:1195, RHSA-2015:1196
Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6)Fixed RHSA-2015:1195, RHSA-2015:1196
Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7)Fixed RHSA-2015:1195, RHSA-2015:1196

Timeline

  1. 2026-10-02 Threatist record created from CVE-2015-3166
  2. 2026-10-03 Alias added: GHSA-65w5-rcgr-gxgj

References

  • TI-2019-06651 In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and… CVSS 3.0HIGH 7.2
  • TI-2017-05187 Improper authentication in postgresql CVSS 3.0CRITICAL 9.8
  • TI-2020-15711 SQL injection in postgresql CVSS 3.1HIGH 8.8
  • TI-2013-01675 Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9… CVSS 2.0MEDIUM 6.5
  • TI-2007-03176 The Database Link library (dblink) in PostgreSQL 8.1 implements functions via CREATE… CVSS 2.0HIGH 9.0
  • TI-2022-01423 SQL injection in postgresql CVSS 3.1HIGH 8.8
See all 202 →

Sources