postgresql before versions 10.4, 9.6.9 is vulnerable in the adminpack extension, the pg_catalog.pg_logfile_rotate() function doesn't follow
postgresql before versions 10.4, 9.6.9 is vulnerable in the adminpack extension, the pg_catalog.pg_logfile_rotate() function doesn't follow the same ACLs than pg_rorate_logfile. If the adminpack is added to a database, an attacker able to connect to it could exploit this to force log rotation.
- Published
- May 10, 2018
- Updated
- Jun 16, 2026
- EPSS
- 3.9% · 90th percentile
- CWE
- CWE-732
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
37
Monitor
Low priority for now.
- CVSS
- 36 / 40 · 9.1 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 3.9%
CNA vs NVD score
- NVD
- 9.1
- CNA · redhat
- 4.2
- 4.9 point gap
CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| postgresql | postgresql | cpe:2.3:a:postgresql:postgresql |
| opensuse | leap | cpe:2.3:o:opensuse:leap |
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 postgresqlbefore 9.6.9
- postgresql postgresql10.0 and later · before 10.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.
unspecified postgresql
- postegresql 10.4, postegresql 9.6.9affected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Alpine:v3.10 | postgresql | from 10.0 · before 10.4-r0 | 10.4-r0 |
| Alpine:v3.15 | postgresql14 | before 10.4-r0 | 10.4-r0 |
| Alpine:v3.17 | postgresql15 | before 10.4-r0 | 10.4-r0 |
| Alpine:v3.4 | postgresql | from 10.0 · before 9.5.13-r0 | 9.5.13-r0 |
| Alpine:v3.5 | postgresql | from 10.0 · before 9.6.9-r0 | 9.6.9-r0 |
| openSUSE:Leap 15.1 | postgresql | before 12.0.1-lp151.6.9.1 | 12.0.1-lp151.6.9.1 |
| openSUSE:Leap 15.1 | postgresql10 | before 10.13-lp151.2.14.1 | 10.13-lp151.2.14.1 |
| openSUSE:Leap 15.1 | postgresql12 | before 12.3-lp151.2.1 | 12.3-lp151.2.1 |
| openSUSE:Leap 15.1 | postgresql96 | before 9.6.19-lp151.3.3.1 | 9.6.19-lp151.3.3.1 |
| openSUSE:Tumbleweed | postgresql10 | before 10.18-1.3 | 10.18-1.3 |
| Red Hat:rhel_software_collections:3::el6 | rh-postgresql96-postgresql | before 0:9.6.10-1.el6 | 0:9.6.10-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-postgresql96-postgresql-contrib | before 0:9.6.10-1.el6 | 0:9.6.10-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-postgresql96-postgresql-contrib-syspaths | before 0:9.6.10-1.el6 | 0:9.6.10-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-postgresql96-postgresql-debuginfo | before 0:9.6.10-1.el6 | 0:9.6.10-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-postgresql96-postgresql-devel | before 0:9.6.10-1.el6 | 0:9.6.10-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-postgresql96-postgresql-docs | before 0:9.6.10-1.el6 | 0:9.6.10-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-postgresql96-postgresql-libs | before 0:9.6.10-1.el6 | 0:9.6.10-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-postgresql96-postgresql-plperl | before 0:9.6.10-1.el6 | 0:9.6.10-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-postgresql96-postgresql-plpython | before 0:9.6.10-1.el6 | 0:9.6.10-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-postgresql96-postgresql-pltcl | before 0:9.6.10-1.el6 | 0:9.6.10-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-postgresql96-postgresql-server | before 0:9.6.10-1.el6 | 0:9.6.10-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-postgresql96-postgresql-server-syspaths | before 0:9.6.10-1.el6 | 0:9.6.10-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-postgresql96-postgresql-static | before 0:9.6.10-1.el6 | 0:9.6.10-1.el6 |
| Red Hat:rhel_software_collections:3::el6 | rh-postgresql96-postgresql-syspaths | before 0:9.6.10-1.el6 | 0:9.6.10-1.el6 |
+34
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 |
|---|---|---|
| alpine:postgresql | 10.4-r0 · Alpine:v3.10 | Package registry (OSV) |
| alpine:postgresql14 | 10.4-r0 · Alpine:v3.15 | Package registry (OSV) |
| alpine:postgresql15 | 10.4-r0 · Alpine:v3.17 | Package registry (OSV) |
| opensuse:postgresql | 12.0.1-lp151.6.9.1 · openSUSE:Leap 15.1 | Package registry (OSV) |
| opensuse:postgresql10 | 10.13-lp151.2.14.1 · openSUSE:Leap 15.1 | Package registry (OSV) |
| opensuse:postgresql12 | 12.3-lp151.2.1 · openSUSE:Leap 15.1 | Package registry (OSV) |
| opensuse:postgresql96 | 9.6.19-lp151.3.3.1 · openSUSE:Leap 15.1 | Package registry (OSV) |
| red hat:rh-postgresql10-postgresql | 0:10.5-1.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-postgresql10-postgresql-contrib | 0:10.5-1.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-postgresql10-postgresql-contrib-syspaths | 0:10.5-1.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-postgresql10-postgresql-debuginfo | 0:10.5-1.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-postgresql10-postgresql-devel | 0:10.5-1.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-postgresql10-postgresql-docs | 0:10.5-1.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-postgresql10-postgresql-libs | 0:10.5-1.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-postgresql10-postgresql-plperl | 0:10.5-1.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-postgresql10-postgresql-plpython | 0:10.5-1.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-postgresql10-postgresql-pltcl | 0:10.5-1.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-postgresql10-postgresql-server | 0:10.5-1.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-postgresql10-postgresql-server-syspaths | 0:10.5-1.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| suse:postgresql10 | 10.5-4.5.1 · SUSE:Linux Enterprise Module for Basesystem 15 | Package registry (OSV) |
| suse:postgresql96 | 9.6.9-3.19.1 · SUSE:Linux Enterprise Desktop 12 SP3 | Package registry (OSV) |
| suse:postgresql96-libs | 9.6.9-3.19.1 · SUSE:Linux Enterprise Desktop 12 SP3 | 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
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-732 · Incorrect Permission Assignment for Critical ResourceCVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/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)
- Accessing Functionality Not Properly Constrained by ACLsCAPEC-1likelihood: High · High
- Privilege AbuseCAPEC-122likelihood: High · Medium
- Directory IndexingCAPEC-127likelihood: High · Medium
- Using Malicious FilesCAPEC-17likelihood: High · Very High
- Exploiting Incorrectly Configured Access Control Security LevelsCAPEC-180likelihood: High · Medium
- Signing Malicious CodeCAPEC-206Very High
- Hijacking a privileged processCAPEC-234Medium
- Reusing Session IDs (aka Session Replay)CAPEC-60likelihood: High · High
ATT&CK techniques
- File and Directory DiscoveryT1083
- Access Token Manipulation:Token Impersonation/TheftT1134.001
- Server Software Component: Terminal Services DLLT1505.005
- Abuse Elevation Control MechanismT1548
- Use Alternate Authentication Material:Web Session CookieT1550.004
- Subvert Trust Controls:Code SigningT1553.002
- Compromise Client Software BinaryT1554
- Hijack Execution Flow:Executable Installer File Permissions WeaknessT1574.005
- Hijack Execution Flow: ServicesFile Permissions WeaknessT1574.010
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- lists.opensuse.org/opensuse-security-announce/2020-08/msg00043.html
- www.securityfocus.com/bid/104285
- access.redhat.com/errata/RHSA-2018:2565
- access.redhat.com/errata/RHSA-2018:2566
- bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-1115
- git.postgresql.org/gitweb/?p=postgresql.git%3Ba=commitdiff%3Bh=7b34740
- security.gentoo.org/glsa/201810-08
Vendor advisories and official records. Exploit/PoC links are deliberately left out.