Quantum Secular Labs / Blog / Advisories
CVE-2018-1115: Postgresql: Incorrect Permission Assignment for Critical Resource
CVE-2018-1115 is rated critical with a CVSS v3.1 base score of 9.1 and affects Postgresql, along with 1 other product in NVD’s configuration data. Per its scoring, it can be exploited over the network, without authentication, without any user interaction.
Vulnerability description
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.
Severity breakdown
CVSS v3.1 9.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
- Attack vector: Network. Exploitable remotely over the network, with no need for local or physical access.
- Attack complexity: Low. No special conditions; the attack can be repeated reliably.
- Privileges required: None. No account or prior access is needed.
- User interaction: None. No action from any user is needed.
- Scope: Unchanged. Impact stays within the vulnerable component.
- Confidentiality impact: None. No loss of confidentiality.
- Integrity impact: High. Total loss of integrity; data or system state can be fully modified.
- Availability impact: High. Total loss of availability; the component can be shut down.
Underlying weakness
CWE-732: Incorrect Permission Assignment for Critical Resource
The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.
Affected products
- Postgresql: before 9.6.9; from 10.0 before 10.4
- Opensuse Leap: 15.1
References
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-1115
- http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00043.html
- http://www.securityfocus.com/bid/104285
- https://access.redhat.com/errata/RHSA-2018:2565
- https://access.redhat.com/errata/RHSA-2018:2566
- https://security.gentoo.org/glsa/201810-08
- https://git.postgresql.org/gitweb/?p=postgresql.git%3Ba=commitdiff%3Bh=7b34740