# CVE-2012-0866

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2012-07-18 · Modified: 2024-08-06
- Record: https://cvemate.com/vulnerability/CVE-2012-0866 · JSON: https://cvemate.com/vulnerability/CVE-2012-0866/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v2.0, NVD) AV:N/AC:L/Au:S/C:P/I:P/A:P
- EPSS: 3.584%, percentile 89.768%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- postgresql postgresql: 8.3 \| 8.3.1 \| 8.3.2 \| 8.3.3 \| 8.3.4 \| 8.3.5 \| 8.3.6 \| 8.3.7 \| 8.3.8 \| 8.3.9 \| 8.3.10 \| 8.3.11 \| 8.3.12 \| 8.3.13 \| 8.3.14 \| 8.3.15 \| 8.3.16 \| 8.3.17 \| 8.4 \| 8.4.1 \| 8.4.2 \| 8.4.3 \| 8.4.4 \| 8.4.5 \| 8.4.6 \| 8.4.7 \| 8.4.8 \| 8.4.9 \| 8.4.10 \| 9.0 \| 9.0.1 \| 9.0.2 \| 9.0.3 \| 9.0.4 \| 9.0.5 \| 9.0.6 \| 9.1 \| 9.1.1 \| 9.1.2

## References

- <http://www.postgresql.org/about/news/1377/>
- <http://www.mandriva.com/security/advisories?name=MDVSA-2012:027>
- <http://secunia.com/advisories/49273>
- <http://rhn.redhat.com/errata/RHSA-2012-0678.html>
- <http://www.mandriva.com/security/advisories?name=MDVSA-2012:026>
- <http://www.postgresql.org/docs/9.0/static/release-9-0-7.html>
- <http://www.mandriva.com/security/advisories?name=MDVSA-2012:092>
- <http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10705>
- <http://www.postgresql.org/docs/8.4/static/release-8-4-11.html>
- <http://www.debian.org/security/2012/dsa-2418>
- <http://www.postgresql.org/docs/8.3/static/release-8-3-18.html>
- <http://secunia.com/advisories/49272>
- <http://www.postgresql.org/docs/9.1/static/release-9-1-3.html>
- <http://rhn.redhat.com/errata/RHSA-2012-0677.html>
- <http://lists.opensuse.org/opensuse-updates/2012-09/msg00060.html>

---

Data as of 2026-12-05T04:57:37.942Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
