Vulnerabilities / CVE-2018-1115

critical

CVE-2018-1115

postgresql: Too-permissive access control list on function pg_logfile_rotate()

Published Modified CWE 732
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Red Hat4.2CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Amazon (high), Red Hat (low), Ubuntu (low).

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.

Affected packages and fixed versions

SourcePackageFixed in
alpine 3.10postgresql10.4-r0
alpine 3.11postgresql10.4-r0
alpine 3.12postgresql10.4-r0
alpine 3.13postgresql10.4-r0
alpine 3.14postgresql10.4-r0
alpine 3.15postgresql1410.4-r0
alpine 3.16postgresql1410.4-r0
alpine 3.17postgresql14, postgresql1510.4-r0
alpine 3.18postgresql14, postgresql1510.4-r0
alpine 3.19postgresql14, postgresql1510.4-r0
alpine 3.20postgresql14, postgresql1510.4-r0
alpine 3.4postgresql9.5.13-r0
Show all 36 entries from 21 sources
SourcePackageFixed in
alpine 3.10postgresql10.4-r0
alpine 3.11postgresql10.4-r0
alpine 3.12postgresql10.4-r0
alpine 3.13postgresql10.4-r0
alpine 3.14postgresql10.4-r0
alpine 3.15postgresql1410.4-r0
alpine 3.16postgresql1410.4-r0
alpine 3.17postgresql1410.4-r0
alpine 3.17postgresql1510.4-r0
alpine 3.18postgresql1410.4-r0
alpine 3.18postgresql1510.4-r0
alpine 3.19postgresql1410.4-r0
alpine 3.19postgresql1510.4-r0
alpine 3.20postgresql1410.4-r0
alpine 3.20postgresql1510.4-r0
alpine 3.4postgresql9.5.13-r0
alpine 3.5postgresql9.6.9-r0
alpine 3.6postgresql9.6.9-r0
alpine 3.7postgresql10.4-r0
alpine 3.8postgresql10.4-r0
alpine 3.9postgresql10.4-r0
amazon linux 1postgresql969.6.11-1.82.amzn1
amazon linux 1postgresql96-contrib9.6.11-1.82.amzn1
amazon linux 1postgresql96-debuginfo9.6.11-1.82.amzn1
amazon linux 1postgresql96-devel9.6.11-1.82.amzn1
amazon linux 1postgresql96-docs9.6.11-1.82.amzn1
amazon linux 1postgresql96-libs9.6.11-1.82.amzn1
amazon linux 1postgresql96-plperl9.6.11-1.82.amzn1
amazon linux 1postgresql96-plpython269.6.11-1.82.amzn1
amazon linux 1postgresql96-plpython279.6.11-1.82.amzn1
amazon linux 1postgresql96-server9.6.11-1.82.amzn1
amazon linux 1postgresql96-static9.6.11-1.82.amzn1
amazon linux 1postgresql96-test9.6.11-1.82.amzn1
debian 9postgresql-9.69.6.9-0+deb9u1
ubuntu 18.04postgresql-1010.4-0ubuntu0.18.04
ubuntu 18.04-ESMpostgresql-1010.4-0ubuntu0.18.04

References

All 11 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.