CVE-2012-0866

medium
Published 2012-07-18 · Modified 2026-04-29
CVSS v3
CVSS v2
6.5
VIR risk
6.5

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.

Predictions

Exploit likelihood
20%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: secalert@redhat.com — http://www.postgresql.org/about/news/1377/

Application impact

VendorProductVersionsFixed
postgresql postgresqlpostgresql8.3
postgresql postgresqlpostgresql8.3.1
postgresql postgresqlpostgresql8.3.2
postgresql postgresqlpostgresql8.3.3
postgresql postgresqlpostgresql8.3.4
postgresql postgresqlpostgresql8.3.5
postgresql postgresqlpostgresql8.3.6
postgresql postgresqlpostgresql8.3.7
postgresql postgresqlpostgresql8.3.8
postgresql postgresqlpostgresql8.3.9
postgresql postgresqlpostgresql8.3.10
postgresql postgresqlpostgresql8.3.11
postgresql postgresqlpostgresql8.3.12
postgresql postgresqlpostgresql8.3.13
postgresql postgresqlpostgresql8.3.14
postgresql postgresqlpostgresql8.3.15
postgresql postgresqlpostgresql8.3.16
postgresql postgresqlpostgresql8.3.17
postgresql postgresqlpostgresql8.4
postgresql postgresqlpostgresql8.4.1
postgresql postgresqlpostgresql8.4.2
postgresql postgresqlpostgresql8.4.3
postgresql postgresqlpostgresql8.4.4
postgresql postgresqlpostgresql8.4.5
postgresql postgresqlpostgresql8.4.6
postgresql postgresqlpostgresql8.4.7
postgresql postgresqlpostgresql8.4.8
postgresql postgresqlpostgresql8.4.9
postgresql postgresqlpostgresql8.4.10
postgresql postgresqlpostgresql9.0
postgresql postgresqlpostgresql9.0.1
postgresql postgresqlpostgresql9.0.2
postgresql postgresqlpostgresql9.0.3
postgresql postgresqlpostgresql9.0.4
postgresql postgresqlpostgresql9.0.5
postgresql postgresqlpostgresql9.0.6
postgresql postgresqlpostgresql9.1
postgresql postgresqlpostgresql9.1.1
postgresql postgresqlpostgresql9.1.2

References

CWEs

CWE-264

Verify integrity in audit chain (admin only). AS-IS.