CVE-2012-0866: PostgreSQL - Broken Access Control
- Cve: CVE-2012-0866
- Name: PostgreSQL - Broken Access Control
- Description: 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.
- Impact: Authenticated attackers can execute restricted triggers on arbitrary data, potentially leading to unauthorized data access or modification.
- Remediation: Update to PostgreSQL 8.3.18, 8.4.11, 9.0.7, or 9.1.3 or later versions.
- Vulnerability type: broken_access_control
- Vulnerability impact: privilege_escalation, information_disclosure, data_tampering
- Requirement type: logged_in
- Requirements: Attacker must be authenticated and have permission to create triggers
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.5
- Cvss vector: CVSS:2.0/AV:N/AC:L/Au:S/C:P/I:P/A:P
- Epss score: 0.03584
- Epss percentile: 0.89702
- Assignee: [email protected]
- Published at: 2012-07-18T23:55:01Z
- Age in days: 5242
- Modified at: 2026-06-16T23:38:24Z
- References total: 15
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2012-0866
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-264 | — |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| postgresql:postgresql | = 9.1.2, = 9.1.1, = 9.1, = 9.0.6, = 9.0.5, = 9.0.4, = 9.0.3, = 9.0.2, = 9.0.1, = 9.0, = 8.4.10, = 8.4.9, = 8.4.8, = 8.4.7, = 8.4.6, = 8.4.5, = 8.4.4, = 8.4.3, = 8.4.2, = 8.4.1, = 8.4, = 8.3.17, = 8.3.16, = 8.3.15, = 8.3.14, = 8.3.13, = 8.3.12, = 8.3.11, = 8.3.10, = 8.3.9, = 8.3.8, = 8.3.7, = 8.3.6, = 8.3.5, = 8.3.4, = 8.3.3, = 8.3.2, = 8.3.1, = 8.3 | no | nvd | /v1/products/postgresql/postgresql |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Exposed hosts: 220870
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports