CVE-2017-12172: 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…
Noroxi assessment
Priority: Monitor (action score 26/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.58% (FIRST EPSS).
- 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.
- Fixed version: postgresql (Red Hat:enterprise_linux:7::client) 0:9.2.23-3.el7_4; postgresql-contrib (Red Hat:enterprise_linux:7::client) 0:9.2.23-3.el7_4; postgresql-debuginfo (Red Hat:enterprise_linux:7::client) 0:9.2.23-3.el7_4.
- Mentioned 1 time in Turkish national cyber security advisories (siberguvenlik.gov.tr).
Low priority for now. Upgrade to postgresql (Red Hat:enterprise_linux:7::client) 0:9.2.23-3.el7_4; postgresql-contrib (Red Hat:enterprise_linux:7::client) 0:9.2.23-3.el7_4; postgresql-debuginfo (Red Hat:enterprise_linux:7::client) 0:9.2.23-3.el7_4 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Nov 22, 2017
- Updated
- Oct 15, 2026
- EPSS
- 0.5% · 48th percentile
- CWE
- CWE-59
Report tools
Action score
26
Low priority for now.
- CVSS
- 26 / 40 · 6.7 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.5%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
Vulnrichment: CISA's decision-tree inputs.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is PostgreSQL on your server exposed to the internet?Run a port scan
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| 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)
Is PostgreSQL on your server exposed to the internet?
The free port scanner finds the open ports on your server and matches the service versions it can read against known vulnerabilities. No account needed.
Run a port scanVersions 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
Affected versions · NVD (20)
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
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…57Plan
- 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
Published before and after this one in the same product
- ← EarlierCVE-2017-15098Nov 22, 2017 · Invalid json_populate_recordset or jsonb_populate_recordset function calls in PostgreSQL 10.x before 10.1, 9.6.x before 9.6.6, 9.5.x before…33Monitor
- ← EarlierCVE-2017-15099Nov 22, 2017 · INSERT ...28Monitor
- Later →CVE-2018-1052Feb 9, 2018 · Memory disclosure vulnerability in table partitioning was found in postgresql 10.x before 10.2, allowing an authenticated attacker to read…27Monitor
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.
National notice (Türkiye Cybersecurity Directorate / USOM)
Official security notices citing this record; remediation advice is on the agency's page.
- TR-20-094 · Feb 18, 2020(Postgresql Sunucu Güvenlik Güncellemesi)
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
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 (2)
- SSVC exploitation— → none
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (7 more)Show less
Vendor advisories and official records. Exploit/PoC links are deliberately left out.