Permissions, Privileges, and Access Controls in PostgreSQL - CVE-2012-0866

 

Permissions, Privileges, and Access Controls in PostgreSQL - CVE-2012-0866

Published: July 19, 2012 / Updated: August 11, 2020


Vulnerability identifier: #VU43839
CSH Severity: Low
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2012-0866
CWE-ID: CWE-264
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote #AU# to read and manipulate data.

CREATE TRIGGER in PostgreSQL 8.3.x before 8.3.18, 8.4.x before 8.4.11, 9.0.x before 9.0.7, and 9.1.x before 9.1.3 does not properly check the execute permission for trigger functions marked SECURITY DEFINER, which allows remote authenticated users to execute otherwise restricted triggers on arbitrary data by installing the trigger on an attacker-owned table.


Affected software

PostgreSQL
Gentoo Linux
Debian Linux
Ubuntu
postgresql-8.3 (Ubuntu package)
postgresql-8.4 (Ubuntu package)
postgresql-8.4 (Debian package)
postgresql-9.1 (Ubuntu package)
dev-db/postgresql-server

How to mitigate CVE-2012-0866

Install update from vendor's website.

postgresql-8.3 (Ubuntu package) - update to 8.3.18-0ubuntu0.8.04
postgresql-8.4 (Ubuntu package) - addressed in versions 8.4.11-0ubuntu0.10.04, 8.4.11-0ubuntu0.10.10, 8.4.11-0ubuntu0.11.04
postgresql-8.4 (Debian package) - update to 8.4.11-0squeeze1
postgresql-9.1 (Ubuntu package) - update to 9.1.3-0ubuntu0.11.10
dev-db/postgresql-server - update to 9.1.5

External References

Related Security Bulletins