Memory corruption in PostgreSQL
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
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| 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; and 9.4.x before 9.4.2 | 9.0.20, 9.1.16, 9.2.11, 9.3.7 | Patch available | CNA |
- 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
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| 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.2 | Vulnerable | PostgreSQL |
| cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* | 9.0 | Vulnerable | Debian |
| cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:lts:*:*:* | 12.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* | 14.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:14.10:*:*:*:*:*:*:* | 14.10 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:15.04:*:*:*:*:*:*:* | 15.04 | Vulnerable | Canonical |
- 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 Moderatepostgresql 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 Moderatepostgresql92-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 Moderaterh-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 →
| Product | Status | Plan or fix |
|---|---|---|
| CloudForms Management Engine 5 | Affected | No fix yet |
| Red Hat Enterprise Linux 5 | Affected | No fix yet |
| Red Hat Satellite 5 | Affected | No 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
- 2026-10-02 Threatist record created from CVE-2015-3166
- 2026-10-03 Alias added: GHSA-65w5-rcgr-gxgj
References
Advisory 9
- http://www.postgresql.org/about/news/1587/
- http://www.postgresql.org/docs/9.0/static/release-9-0-20.html
- http://www.postgresql.org/docs/9.1/static/release-9-1-16.html
- http://www.postgresql.org/docs/9.2/static/release-9-2-11.html
- http://www.postgresql.org/docs/9.3/static/release-9-3-7.html
- http://www.postgresql.org/docs/9.4/static/release-9-4-2.html
- http://www.debian.org/security/2015/dsa-3269
- http://www.debian.org/security/2015/dsa-3270
- http://ubuntu.com/usn/usn-2621-1
More Postgresql vulnerabilities
- 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
Sources
- CVE-2015-3166 · CVE Program
- CVE-2015-3166 · NVD
- FIRST EPSS
- GHSA-65w5-rcgr-gxgj · GitHub Advisory Database · CC BY 4.0
- CVE-2015-3166 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences