CVE-2018-1115CWE-732

CVE-2018-1115

Critical · published May 10, 2018

CVSS v3.1
9.1
EPSS
4%
Percentile
90.0
In the wild
Unconfirmed
What it is

⚠️ A sneaky inconsistency in PostgreSQL's adminpack extension could let an attacker trigger unwanted log rotations with just a connection! Think of this like a hotel with a maintenance request system that lets guests decide when to change the towels, but without checking if it’s actually needed. This means someone could call for a towel change every hour, cluttering the housekeeping logs unnecessarily, just because they could. With access to the database, an attacker could exploit this vulnerability to flood the logs with unnecessary log rotation events, leading to potential confusion and monitoring issues. While it may not be a catastrophic breach, it can certainly complicate administration and monitoring efforts in the long run.

Put simply

Think of this like a hotel with a maintenance request system that lets guests decide when to change the towels, but without checking if it’s actually needed. This means someone could call for a towel change every hour, cluttering the housekeeping logs unnecessarily, just because they could. This vulnerability arises because the pg_catalog.pg_logfile_rotate() function does not enforce the same access controls as pg_rotate_logfile, allowing unauthorized users to trigger log rotations if they have connection access.

What to do

With access to the database, an attacker could exploit this vulnerability to flood the logs with unnecessary log rotation events, leading to potential confusion and monitoring issues. While it may not be a catastrophic breach, it can certainly complicate administration and monitoring efforts in the long run. To protect against this, ensure you update PostgreSQL to versions 10.4 or 9.6.9 and above. Additionally, review your database permissions to limit access to the adminpack extension only to trusted users. Regular database audits can also help mitigate this risk. You've got this! By following these steps, you can secure your PostgreSQL and keep those logs in check! 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.03826 · 90.0th percentile
Weakness
CWE-732 · Incorrect Permission Assignment for Critical Resource
Published
2018-05-10T23:29Z
Affected products (3)
ProductVersionsFixed in
postgresql/postgresql< 9.6.99.6.9
postgresql/postgresql≥ 10.0, < 10.410.4
opensuse/leapall versions—
References (14)
EPSS history
Timeline
  • 10 MAY 19:00Z
    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…
    cvelistv5