PostgreSQL 10.x before 10.1, 9.6.x before 9.6.6, 9.5.x before 9.5.10, 9.4.x before 9.4.15, 9.3.x before 9.3.20, and 9.2.x before 9.2.24 runs
PostgreSQL 10.x before 10.1, 9.6.x before 9.6.6, 9.5.x before 9.5.10, 9.4.x before 9.4.15, 9.3.x before 9.3.20, and 9.2.x before 9.2.24 runs under a non-root operating system account, and database superusers have effective ability to run arbitrary code under that system account. PostgreSQL provides a script for starting the database server during system boot. Packages of PostgreSQL for many operating systems provide their own, packager-authored startup implementations. Several implementations use a log file name that the database superuser can replace with a symbolic link. As root, they open(), chmod() and/or chown() this log file name. This often suffices for the database superuser to escalate to root privileges when root starts the server.
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for the hundreds of thousands of vulnerabilities in the database; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for help- Published
- Nov 22, 2017
- Updated
- Jun 16, 2026
- EPSS
- 0.6% · 46th percentile
- CWE
- CWE-59
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
26
Monitor
Low priority for now.
- CVSS
- 26 / 40 · 6.7 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.6%
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| postgresql | postgresql | cpe:2.3:a:postgresql:postgresql |
Using postgresql? Add it to your stack and be the first to know about CVEs like this one. (PostgreSQL)
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- postgresql postgresql10
- postgresql postgresql9.2
- postgresql postgresql9.2.1
- postgresql postgresql9.2.10
- postgresql postgresql9.2.11
- postgresql postgresql9.2.12
- postgresql postgresql9.2.13
- postgresql postgresql9.2.14
- postgresql postgresql9.2.15
- postgresql postgresql9.2.16
- postgresql postgresql9.2.17
- postgresql postgresql9.2.18
- postgresql postgresql9.2.19
- postgresql postgresql9.2.2
- postgresql postgresql9.2.20
- postgresql postgresql9.2.21
- postgresql postgresql9.2.22
- postgresql postgresql9.2.23
- postgresql postgresql9.2.3
- postgresql postgresql9.2.4
Versions reported by the vendor
Affected version ranges reported by the assigning authority (redhat). Independent of NVD's CPE analysis and usually ahead of it.
Red Hat, Inc. postgresql
- 10.x before 10.1, 9.6.x before 9.6.6, 9.5.x before 9.5.10, 9.4.x before 9.4.15, 9.3.x before 9.3.20, 9.2.x before 9.2.24affected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Red Hat:enterprise_linux:7::client | postgresql | before 0:9.2.23-3.el7_4 | 0:9.2.23-3.el7_4 |
| Red Hat:enterprise_linux:7::client | postgresql-contrib | before 0:9.2.23-3.el7_4 | 0:9.2.23-3.el7_4 |
| Red Hat:enterprise_linux:7::client | postgresql-debuginfo | before 0:9.2.23-3.el7_4 | 0:9.2.23-3.el7_4 |
| Red Hat:enterprise_linux:7::client | postgresql-devel | before 0:9.2.23-3.el7_4 | 0:9.2.23-3.el7_4 |
| Red Hat:enterprise_linux:7::client | postgresql-docs | before 0:9.2.23-3.el7_4 | 0:9.2.23-3.el7_4 |
| Red Hat:enterprise_linux:7::client | postgresql-libs | before 0:9.2.23-3.el7_4 | 0:9.2.23-3.el7_4 |
| Red Hat:enterprise_linux:7::client | postgresql-plperl | before 0:9.2.23-3.el7_4 | 0:9.2.23-3.el7_4 |
| Red Hat:enterprise_linux:7::client | postgresql-plpython | before 0:9.2.23-3.el7_4 | 0:9.2.23-3.el7_4 |
| Red Hat:enterprise_linux:7::client | postgresql-pltcl | before 0:9.2.23-3.el7_4 | 0:9.2.23-3.el7_4 |
| Red Hat:enterprise_linux:7::client | postgresql-server | before 0:9.2.23-3.el7_4 | 0:9.2.23-3.el7_4 |
| Red Hat:enterprise_linux:7::client | postgresql-static | before 0:9.2.23-3.el7_4 | 0:9.2.23-3.el7_4 |
| Red Hat:enterprise_linux:7::client | postgresql-test | before 0:9.2.23-3.el7_4 | 0:9.2.23-3.el7_4 |
| Red Hat:enterprise_linux:7::client | postgresql-upgrade | before 0:9.2.23-3.el7_4 | 0:9.2.23-3.el7_4 |
| Red Hat:rhel_software_collections:3::el6 | rh-postgresql94-postgresql | before 0:9.4.14-2.el6 | 0:9.4.14-2.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-postgresql94-postgresql-contrib | before 0:9.4.14-2.el6 | 0:9.4.14-2.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-postgresql94-postgresql-debuginfo | before 0:9.4.14-2.el6 | 0:9.4.14-2.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-postgresql94-postgresql-devel | before 0:9.4.14-2.el6 | 0:9.4.14-2.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-postgresql94-postgresql-docs | before 0:9.4.14-2.el6 | 0:9.4.14-2.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-postgresql94-postgresql-libs | before 0:9.4.14-2.el6 | 0:9.4.14-2.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-postgresql94-postgresql-plperl | before 0:9.4.14-2.el6 | 0:9.4.14-2.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-postgresql94-postgresql-plpython | before 0:9.4.14-2.el6 | 0:9.4.14-2.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-postgresql94-postgresql-pltcl | before 0:9.4.14-2.el6 | 0:9.4.14-2.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-postgresql94-postgresql-server | before 0:9.4.14-2.el6 | 0:9.4.14-2.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-postgresql94-postgresql-static | before 0:9.4.14-2.el6 | 0:9.4.14-2.el6 |
+73
Same product
postgresql: all recordsOther highest-scoring records for the same primary product.
- CVE-2017-7546PostgreSQL versions before 9.2.22, 9.3.18, 9.4.13, 9.5.8 and 9.6.4 are vulnerable to incorrect authentication flaw allowing remote attackers57Plan
- CVE-2019-9193In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_server_program' group to 55Plan
- CVE-2020-25695A flaw was found in PostgreSQL versions before 13.1, before 12.5, before 11.10, before 10.15, before 9.6.20 and before 9.5.24.49Plan
- CVE-2007-3280The Database Link library (dblink) in PostgreSQL 8.1 implements functions via CREATE statements that map to arbitrary libraries based on the44Plan
- CVE-2013-1899Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9, and 9.0.x before 9.0.13 allows remote attackers to ca42Plan
- CVE-2018-16850postgresql before versions 11.1, 10.6 is vulnerable to a to SQL injection in pg_upgrade and pg_dump via CREATE TRIGGER ...41Plan
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| red hat:postgresql | 0:9.2.23-3.el7_4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:postgresql-contrib | 0:9.2.23-3.el7_4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:postgresql-debuginfo | 0:9.2.23-3.el7_4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:postgresql-devel | 0:9.2.23-3.el7_4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:postgresql-docs | 0:9.2.23-3.el7_4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:postgresql-libs | 0:9.2.23-3.el7_4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:postgresql-plperl | 0:9.2.23-3.el7_4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:postgresql-plpython | 0:9.2.23-3.el7_4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:postgresql-pltcl | 0:9.2.23-3.el7_4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:postgresql-server | 0:9.2.23-3.el7_4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:postgresql-static | 0:9.2.23-3.el7_4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:postgresql-test | 0:9.2.23-3.el7_4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| suse:postgresql94 | 9.4.15-0.23.10.1 · SUSE:Linux Enterprise Server 11 SP4 | Package registry (OSV) |
| suse:postgresql94-libs | 9.4.15-0.23.10.1 · SUSE:Linux Enterprise Software Development Kit 11 SP4 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- Administrator privileges are required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- High
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-59 · Improper Link Resolution Before File Access ('Link Following')CVSS vector
CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
- Obfuscated Files or Information: HTML SmugglingT1027.006
- Obfuscated Files or Information: Embedded PayloadsT1027.009
- Boot or Logon Autostart Execution:Shortcut ModificationT1547.009
- Hide Artifacts: Resource ForkingT1564.009
- Hijack Execution Flow: Executable Installer File Permissions WeaknessT1574.005
- Hijack Execution Flow: Services File Permissions WeaknessT1574.010
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- www.securityfocus.com/bid/101949
- www.securitytracker.com/id/1039752
- access.redhat.com/errata/RHSA-2017:3402
- access.redhat.com/errata/RHSA-2017:3403
- access.redhat.com/errata/RHSA-2017:3404
- access.redhat.com/errata/RHSA-2017:3405
- www.postgresql.org/about/news/1801/
- www.postgresql.org/support/security/
Vendor advisories and official records. Exploit/PoC links are deliberately left out.