Buffer overflow in PostgreSQL
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 21 fixed, 3 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-120 and the CVSS impact.
Summary
The to_char function in PostgreSQL before 9.0.19, 9.1.x before 9.1.15, 9.2.x before 9.2.10, 9.3.x before 9.3.6, and 9.4.x before 9.4.1 allows remote authenticated users to cause a denial of service (crash) or possibly execute arbitrary code via a (1) large number of digits when processing a numeric formatting template, which triggers a buffer over-read, or (2) crafted timestamp formatting template, which triggers a buffer overflow.
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.19; 9.1 to before 9.1.15; 9.2 to before 9.2.10; 9.3 to before 9.3.6; 9.4 to before 9.4.1 | 9.0.19, 9.1.15, 9.2.10, 9.3.6, 9.4.1 | Patch available | CNA |
- PostgreSQL VendorPostgreSQL Affected before 9.0.19; 9.1 to before 9.1.15; 9.2 to before 9.2.10; 9.3 to before 9.3.6; 9.4 to before 9.4.1 Fixed in 9.0.19, 9.1.15, 9.2.10, 9.3.6, 9.4.1 Patch available CNA
CPE configurations NVD · 3
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* | before 9.0.19; 9.1.0 to before 9.1.15; 9.2.0 to before 9.2.10; 9.3.0 to before 9.3.6; 9.4.0 to before 9.4.1 | 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:a:postgresql:postgresql:*:*:*:*:*:*:*:* Versions before 9.0.19; 9.1.0 to before 9.1.15; 9.2.0 to before 9.2.10; 9.3.0 to before 9.3.6; 9.4.0 to before 9.4.1 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
Remediation
- Fix · CNA PostgreSQL (PostgreSQL Global Development Group) Fixed in 9.0.19, 9.1.15, 9.2.10, 9.3.6, 9.4.1
Red Hat 3 advisories
- RHSA-2015:0856 Released 2015-04-20 · Red Hat rating Moderatepostgresql92-postgresql security update
- Red Hat Satellite 5.7 (RHEL v.6) postgresql92-postgresql-9.2.10-2.el6, postgresql92-postgresql-contrib-9.2.10-2.el6, postgresql92-postgresql-libs-9.2.10-2.el6 +3
- Red Hat Satellite Managed DB 5.7 (RHEL v.6) postgresql92-postgresql-9.2.10-2.el6, postgresql92-postgresql-contrib-9.2.10-2.el6, postgresql92-postgresql-libs-9.2.10-2.el6 +3
- RHSA-2015:0750 Released 2015-03-30 · Red Hat rating Moderatepostgresql security update
- Red Hat Enterprise Linux Client Optional (v. 7) postgresql-9.2.10-2.el7_1, postgresql-contrib-9.2.10-2.el7_1, postgresql-devel-9.2.10-2.el7_1 +8
- Red Hat Enterprise Linux ComputeNode (v. 7) postgresql-9.2.10-2.el7_1, postgresql-libs-9.2.10-2.el7_1
- Red Hat Enterprise Linux ComputeNode Optional (v. 7) postgresql-9.2.10-2.el7_1, postgresql-contrib-9.2.10-2.el7_1, postgresql-devel-9.2.10-2.el7_1 +7
- Red Hat Enterprise Linux Desktop (v. 6) postgresql-8.4.20-2.el6_6, postgresql-libs-8.4.20-2.el6_6
- Red Hat Enterprise Linux Desktop Optional (v. 6) postgresql-8.4.20-2.el6_6, postgresql-contrib-8.4.20-2.el6_6, postgresql-devel-8.4.20-2.el6_6 +6
- Red Hat Enterprise Linux HPC Node (v. 6) postgresql-8.4.20-2.el6_6, postgresql-libs-8.4.20-2.el6_6
- Red Hat Enterprise Linux HPC Node Optional (v. 6) postgresql-contrib-8.4.20-2.el6_6, postgresql-devel-8.4.20-2.el6_6, postgresql-docs-8.4.20-2.el6_6 +5
- Red Hat Enterprise Linux Server (v. 6) postgresql-8.4.20-2.el6_6, postgresql-8.4.20-2.el6_6.ppc, postgresql-contrib-8.4.20-2.el6_6 +10
- Red Hat Enterprise Linux Server (v. 7) postgresql-9.2.10-2.ael7b_1, postgresql-9.2.10-2.el7_1, postgresql-9.2.10-2.el7_1.ppc +20
- Red Hat Enterprise Linux Server Optional (v. 7) postgresql-upgrade-9.2.10-2.ael7b_1, postgresql-upgrade-9.2.10-2.el7_1
- Red Hat Enterprise Linux Workstation (v. 6) postgresql-8.4.20-2.el6_6, postgresql-contrib-8.4.20-2.el6_6, postgresql-devel-8.4.20-2.el6_6 +7
- Red Hat Enterprise Linux Workstation (v. 7) postgresql-9.2.10-2.el7_1, postgresql-contrib-9.2.10-2.el7_1, postgresql-devel-9.2.10-2.el7_1 +7
- Red Hat Enterprise Linux Workstation Optional (v. 7) postgresql-upgrade-9.2.10-2.el7_1
- RHSA-2015:0699 Released 2015-03-18 · Red Hat rating Moderatepostgresql92-postgresql security update
- Red Hat Software Collections 1 for Red Hat Enterprise Linux Server (v. 6) postgresql92-postgresql-9.2.10-2.el6, postgresql92-postgresql-contrib-9.2.10-2.el6, postgresql92-postgresql-devel-9.2.10-2.el6 +8
- Red Hat Software Collections 1 for Red Hat Enterprise Linux Server (v. 7) postgresql92-postgresql-9.2.10-1.el7, postgresql92-postgresql-contrib-9.2.10-1.el7, postgresql92-postgresql-devel-9.2.10-1.el7 +8
- Red Hat Software Collections 1 for Red Hat Enterprise Linux Server EUS (v. 6.5) postgresql92-postgresql-9.2.10-2.el6, postgresql92-postgresql-contrib-9.2.10-2.el6, postgresql92-postgresql-devel-9.2.10-2.el6 +8
- Red Hat Software Collections 1 for Red Hat Enterprise Linux Server EUS (v. 6.6) postgresql92-postgresql-9.2.10-2.el6, postgresql92-postgresql-contrib-9.2.10-2.el6, postgresql92-postgresql-devel-9.2.10-2.el6 +8
- Red Hat Software Collections 1 for Red Hat Enterprise Linux Workstation (v. 6) postgresql92-postgresql-9.2.10-2.el6, postgresql92-postgresql-contrib-9.2.10-2.el6, postgresql92-postgresql-devel-9.2.10-2.el6 +8
- Red Hat Software Collections 1 for Red Hat Enterprise Linux Workstation (v. 7) postgresql92-postgresql-9.2.10-1.el7, postgresql92-postgresql-contrib-9.2.10-1.el7, postgresql92-postgresql-devel-9.2.10-1.el7 +8
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| CloudForms Management Engine 5 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 5 | Affected | No fix planned: Will not fix |
| Red Hat Software Collections | Affected | No fix yet |
| Red Hat Enterprise Linux Client Optional (v. 7) | Fixed | RHSA-2015:0750 |
| Red Hat Enterprise Linux ComputeNode (v. 7) | Fixed | RHSA-2015:0750 |
| Red Hat Enterprise Linux ComputeNode Optional (v. 7) | Fixed | RHSA-2015:0750 |
| Red Hat Enterprise Linux Desktop (v. 6) | Fixed | RHSA-2015:0750 |
| Red Hat Enterprise Linux Desktop Optional (v. 6) | Fixed | RHSA-2015:0750 |
| Red Hat Enterprise Linux HPC Node (v. 6) | Fixed | RHSA-2015:0750 |
| Red Hat Enterprise Linux HPC Node Optional (v. 6) | Fixed | RHSA-2015:0750 |
| Red Hat Enterprise Linux Server (v. 6) | Fixed | RHSA-2015:0750 |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2015:0750 |
| Red Hat Enterprise Linux Server Optional (v. 7) | Fixed | RHSA-2015:0750 |
| Red Hat Enterprise Linux Workstation (v. 6) | Fixed | RHSA-2015:0750 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2015:0750 |
| Red Hat Enterprise Linux Workstation Optional (v. 7) | Fixed | RHSA-2015:0750 |
| Red Hat Satellite 5.7 (RHEL v.6) | Fixed | RHSA-2015:0856 |
| Red Hat Satellite Managed DB 5.7 (RHEL v.6) | Fixed | RHSA-2015:0856 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux Server (v. 6) | Fixed | RHSA-2015:0699 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2015:0699 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux Server EUS (v. 6.5) | Fixed | RHSA-2015:0699 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux Server EUS (v. 6.6) | Fixed | RHSA-2015:0699 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux Workstation (v. 6) | Fixed | RHSA-2015:0699 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2015:0699 |
Timeline
- 2026-10-02 Threatist record created from CVE-2015-0241
- 2026-10-03 Alias added: GHSA-h47p-j4vf-9qhf
References
Advisory 7
- http://www.postgresql.org/docs/9.4/static/release-9-4-1.html
- http://www.postgresql.org/docs/current/static/release-9-0-19.html
- http://www.postgresql.org/docs/current/static/release-9-1-15.html
- http://www.postgresql.org/docs/current/static/release-9-2-10.html
- http://www.postgresql.org/docs/current/static/release-9-3-6.html
- http://www.postgresql.org/about/news/1569/
- http://www.debian.org/security/2015/dsa-3155
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-0241 · CVE Program
- CVE-2015-0241 · NVD
- FIRST EPSS
- GHSA-h47p-j4vf-9qhf · GitHub Advisory Database · CC BY 4.0
- CVE-2015-0241 · 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