CVE-2012-0866
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...
CVE-2012-0866 is a medium vulnerability (CVSS 6.5) in Postgresql, published February 27, 2012. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.62%, the 89th percentile. Fixed in postgresql-8.4 8.4.11-0squeeze1.
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.
Exploit likelihood
What each source reports
NVD Score used
6.5
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.
- Record
CVE-2012-0866- CVSS 2.0
- 6.5 Medium
AV:N/AC:L/Au:S/C:P/I:P/A:P - Weakness
- CWE-264
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2012-0866- Updated
- 2026-11-02
EUVDEUVD-2012-0891 No score
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.
- Record
EUVD-2012-0891- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-8fvr-fgp7-p77m No score
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...
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.
- Record
GHSA-8fvr-fgp7-p77m- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10030-1 No score
postgresql94-9.4.10-1.1 on GA media
These are all security issues fixed in the postgresql94-9.4.10-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10030-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10256-1 No score
postgresql93-9.3.15-1.1 on GA media
These are all security issues fixed in the postgresql93-9.3.15-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10256-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10273-1 No score
libecpg6-32bit-9.5.4-1.2 on GA media
These are all security issues fixed in the libecpg6-32bit-9.5.4-1.2 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10273-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
postgresql-8.4Debian:6.0 |
before 8.4.11-0squeeze1, plus listed versions 8.4.10-0squeeze18.4.10-0squeeze1~bpo50+18.4.10-18.4.5-0squeeze28.4.5-1 Show 16 moreShow less8.4.5-1~bpo50+18.4.5-28.4.5-2~bpo50+18.4.6-18.4.7-0squeeze1~bpo50+18.4.7-0squeeze28.4.7-18.4.8-0squeeze18.4.8-0squeeze1~bpo50+18.4.8-0squeeze28.4.8-0squeeze2~bpo50+18.4.8-18.4.8-28.4.9-0squeeze18.4.9-0squeeze1~bpo50+18.4.9-1 |
8.4.11-0squeeze1 |
postgresqlRed Hat:enterprise_linux:5::client |
before 0:8.1.23-4.el5_8 | 0:8.1.23-4.el5_8 |
postgresql-contribRed Hat:enterprise_linux:5::client |
before 0:8.1.23-4.el5_8 | 0:8.1.23-4.el5_8 |
postgresql-debuginfoRed Hat:enterprise_linux:5::client |
before 0:8.1.23-4.el5_8 | 0:8.1.23-4.el5_8 |
postgresql-docsRed Hat:enterprise_linux:5::client |
before 0:8.1.23-4.el5_8 | 0:8.1.23-4.el5_8 |
postgresql-libsRed Hat:enterprise_linux:5::client |
before 0:8.1.23-4.el5_8 | 0:8.1.23-4.el5_8 |
postgresql-pythonRed Hat:enterprise_linux:5::client |
before 0:8.1.23-4.el5_8 | 0:8.1.23-4.el5_8 |
postgresql-tclRed Hat:enterprise_linux:5::client |
before 0:8.1.23-4.el5_8 | 0:8.1.23-4.el5_8 |
postgresqlRed Hat:enterprise_linux:5::client_workstation |
before 0:8.1.23-4.el5_8 | 0:8.1.23-4.el5_8 |
postgresql-debuginfoRed Hat:enterprise_linux:5::client_workstation |
before 0:8.1.23-4.el5_8 | 0:8.1.23-4.el5_8 |
Show 90 moreShow less
| Package | Affected | Fixed |
|---|---|---|
postgresql-develRed Hat:enterprise_linux:5::client_workstation |
before 0:8.1.23-4.el5_8 | 0:8.1.23-4.el5_8 |
postgresql-plRed Hat:enterprise_linux:5::client_workstation |
before 0:8.1.23-4.el5_8 | 0:8.1.23-4.el5_8 |
postgresql-serverRed Hat:enterprise_linux:5::client_workstation |
before 0:8.1.23-4.el5_8 | 0:8.1.23-4.el5_8 |
postgresql-testRed Hat:enterprise_linux:5::client_workstation |
before 0:8.1.23-4.el5_8 | 0:8.1.23-4.el5_8 |
postgresqlRed Hat:enterprise_linux:5::server |
before 0:8.1.23-4.el5_8 | 0:8.1.23-4.el5_8 |
postgresql-contribRed Hat:enterprise_linux:5::server |
before 0:8.1.23-4.el5_8 | 0:8.1.23-4.el5_8 |
postgresql-debuginfoRed Hat:enterprise_linux:5::server |
before 0:8.1.23-4.el5_8 | 0:8.1.23-4.el5_8 |
postgresql-develRed Hat:enterprise_linux:5::server |
before 0:8.1.23-4.el5_8 | 0:8.1.23-4.el5_8 |
postgresql-docsRed Hat:enterprise_linux:5::server |
before 0:8.1.23-4.el5_8 | 0:8.1.23-4.el5_8 |
postgresql-libsRed Hat:enterprise_linux:5::server |
before 0:8.1.23-4.el5_8 | 0:8.1.23-4.el5_8 |
postgresql-plRed Hat:enterprise_linux:5::server |
before 0:8.1.23-4.el5_8 | 0:8.1.23-4.el5_8 |
postgresql-pythonRed Hat:enterprise_linux:5::server |
before 0:8.1.23-4.el5_8 | 0:8.1.23-4.el5_8 |
postgresql-serverRed Hat:enterprise_linux:5::server |
before 0:8.1.23-4.el5_8 | 0:8.1.23-4.el5_8 |
postgresql-tclRed Hat:enterprise_linux:5::server |
before 0:8.1.23-4.el5_8 | 0:8.1.23-4.el5_8 |
postgresql-testRed Hat:enterprise_linux:5::server |
before 0:8.1.23-4.el5_8 | 0:8.1.23-4.el5_8 |
postgresql84Red Hat:enterprise_linux:5::client |
before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
postgresql84-contribRed Hat:enterprise_linux:5::client |
before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
postgresql84-debuginfoRed Hat:enterprise_linux:5::client |
before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
postgresql84-docsRed Hat:enterprise_linux:5::client |
before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
postgresql84-libsRed Hat:enterprise_linux:5::client |
before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
postgresql84-pythonRed Hat:enterprise_linux:5::client |
before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
postgresql84-tclRed Hat:enterprise_linux:5::client |
before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
postgresql84Red Hat:enterprise_linux:5::client_workstation |
before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
postgresql84-debuginfoRed Hat:enterprise_linux:5::client_workstation |
before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
postgresql84-develRed Hat:enterprise_linux:5::client_workstation |
before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
postgresql84-plperlRed Hat:enterprise_linux:5::client_workstation |
before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
postgresql84-plpythonRed Hat:enterprise_linux:5::client_workstation |
before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
postgresql84-pltclRed Hat:enterprise_linux:5::client_workstation |
before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
postgresql84-serverRed Hat:enterprise_linux:5::client_workstation |
before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
postgresql84-testRed Hat:enterprise_linux:5::client_workstation |
before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
postgresql84Red Hat:enterprise_linux:5::server |
before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
postgresql84-contribRed Hat:enterprise_linux:5::server |
before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
postgresql84-debuginfoRed Hat:enterprise_linux:5::server |
before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
postgresql84-develRed Hat:enterprise_linux:5::server |
before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
postgresql84-docsRed Hat:enterprise_linux:5::server |
before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
postgresql84-libsRed Hat:enterprise_linux:5::server |
before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
postgresql84-plperlRed Hat:enterprise_linux:5::server |
before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
postgresql84-plpythonRed Hat:enterprise_linux:5::server |
before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
postgresql84-pltclRed Hat:enterprise_linux:5::server |
before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
postgresql84-pythonRed Hat:enterprise_linux:5::server |
before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
postgresql84-serverRed Hat:enterprise_linux:5::server |
before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
postgresql84-tclRed Hat:enterprise_linux:5::server |
before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
postgresql84-testRed Hat:enterprise_linux:5::server |
before 0:8.4.11-1.el5_8 | 0:8.4.11-1.el5_8 |
postgresqlRed Hat:enterprise_linux:6::client |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-debuginfoRed Hat:enterprise_linux:6::client |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-libsRed Hat:enterprise_linux:6::client |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-contribRed Hat:enterprise_linux:6::client |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-develRed Hat:enterprise_linux:6::client |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-docsRed Hat:enterprise_linux:6::client |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-plperlRed Hat:enterprise_linux:6::client |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-plpythonRed Hat:enterprise_linux:6::client |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-pltclRed Hat:enterprise_linux:6::client |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-serverRed Hat:enterprise_linux:6::client |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-testRed Hat:enterprise_linux:6::client |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresqlRed Hat:enterprise_linux:6::computenode |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-debuginfoRed Hat:enterprise_linux:6::computenode |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-libsRed Hat:enterprise_linux:6::computenode |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-contribRed Hat:enterprise_linux:6::computenode |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-develRed Hat:enterprise_linux:6::computenode |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-docsRed Hat:enterprise_linux:6::computenode |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-plperlRed Hat:enterprise_linux:6::computenode |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-plpythonRed Hat:enterprise_linux:6::computenode |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-pltclRed Hat:enterprise_linux:6::computenode |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-serverRed Hat:enterprise_linux:6::computenode |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-testRed Hat:enterprise_linux:6::computenode |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresqlRed Hat:enterprise_linux:6::server |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-contribRed Hat:enterprise_linux:6::server |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-debuginfoRed Hat:enterprise_linux:6::server |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-develRed Hat:enterprise_linux:6::server |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-docsRed Hat:enterprise_linux:6::server |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-libsRed Hat:enterprise_linux:6::server |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-plperlRed Hat:enterprise_linux:6::server |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-plpythonRed Hat:enterprise_linux:6::server |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-pltclRed Hat:enterprise_linux:6::server |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-serverRed Hat:enterprise_linux:6::server |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-testRed Hat:enterprise_linux:6::server |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresqlRed Hat:enterprise_linux:6::workstation |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-contribRed Hat:enterprise_linux:6::workstation |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-debuginfoRed Hat:enterprise_linux:6::workstation |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-develRed Hat:enterprise_linux:6::workstation |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-docsRed Hat:enterprise_linux:6::workstation |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-libsRed Hat:enterprise_linux:6::workstation |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-plperlRed Hat:enterprise_linux:6::workstation |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-plpythonRed Hat:enterprise_linux:6::workstation |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-pltclRed Hat:enterprise_linux:6::workstation |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-serverRed Hat:enterprise_linux:6::workstation |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql-testRed Hat:enterprise_linux:6::workstation |
before 0:8.4.11-1.el6_2 | 0:8.4.11-1.el6_2 |
postgresql94openSUSE:Tumbleweed |
before 9.4.10-1.1 | 9.4.10-1.1 |
postgresql93openSUSE:Tumbleweed |
before 9.3.15-1.1 | 9.3.15-1.1 |
postgresql95openSUSE:Tumbleweed |
before 9.5.4-1.2 | 9.5.4-1.2 |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | aliases | EUVD |
| 2026-11-02 | created | CVE List, GitHub Advisories, NVD, OSV |
References
postgresql.org/about/news/1377
mandriva.com/security/advisories?name=MDVSA-2012:027
secunia.com/advisories/49273
rhn.redhat.com/errata/RHSA-2012-0678.html
mandriva.com/security/advisories?name=MDVSA-2012:026
postgresql.org/docs/9.0/static/release-9-0-7.html
Show 70 moreShow less
mandriva.com/security/advisories?name=MDVSA-2012:092
kb.juniper.net/InfoCenter/index?page=content&id=JSA10705
postgresql.org/docs/8.4/static/release-8-4-11.html
debian.org/security/2012/dsa-2418
postgresql.org/docs/8.3/static/release-8-3-18.html
secunia.com/advisories/49272
postgresql.org/docs/9.1/static/release-9-1-3.html
rhn.redhat.com/errata/RHSA-2012-0677.html
lists.opensuse.org/opensuse-updates/2012-09/msg00060.html
nvd.nist.gov/vuln/detail/CVE-2012-0866
github.com/advisories/GHSA-8fvr-fgp7-p77m
access.redhat.com/errata/RHSA-2012:0677
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=797222
bugzilla.redhat.com/show_bug.cgi?id=797917
security.access.redhat.com/data/csaf/v2/advisories/2012/rhsa-2012_0677.json
access.redhat.com/security/cve/CVE-2012-0866
cve.org/CVERecord?id=CVE-2012-0866
access.redhat.com/security/cve/CVE-2012-0868
cve.org/CVERecord?id=CVE-2012-0868
nvd.nist.gov/vuln/detail/CVE-2012-0868
access.redhat.com/errata/RHSA-2012:0678
postgresql.org/docs/8.4/static/release.html
bugzilla.redhat.com/show_bug.cgi?id=797915
security.access.redhat.com/data/csaf/v2/advisories/2012/rhsa-2012_0678.json
access.redhat.com/security/cve/CVE-2012-0867
cve.org/CVERecord?id=CVE-2012-0867
nvd.nist.gov/vuln/detail/CVE-2012-0867
suse.com/security/cve/CVE-2007-4772
suse.com/security/cve/CVE-2007-6600
suse.com/security/cve/CVE-2009-4034
suse.com/security/cve/CVE-2009-4136
suse.com/security/cve/CVE-2010-1169
suse.com/security/cve/CVE-2010-1170
suse.com/security/cve/CVE-2010-3433
suse.com/security/cve/CVE-2012-0866
suse.com/security/cve/CVE-2012-0867
suse.com/security/cve/CVE-2012-0868
suse.com/security/cve/CVE-2012-2143
suse.com/security/cve/CVE-2012-2655
suse.com/security/cve/CVE-2012-3488
suse.com/security/cve/CVE-2012-3489
suse.com/security/cve/CVE-2013-0255
suse.com/security/cve/CVE-2013-1899
suse.com/security/cve/CVE-2013-1900
suse.com/security/cve/CVE-2013-1901
suse.com/security/cve/CVE-2014-0060
suse.com/security/cve/CVE-2014-0061
suse.com/security/cve/CVE-2014-0062
suse.com/security/cve/CVE-2014-0063
suse.com/security/cve/CVE-2014-0064
suse.com/security/cve/CVE-2014-0065
suse.com/security/cve/CVE-2014-0066
suse.com/security/cve/CVE-2014-0067
suse.com/security/cve/CVE-2015-3165
suse.com/security/cve/CVE-2015-3166
suse.com/security/cve/CVE-2015-3167
suse.com/security/cve/CVE-2015-5288
suse.com/security/cve/CVE-2015-5289
suse.com/security/cve/CVE-2016-0766
suse.com/security/cve/CVE-2016-0773
suse.com/security/cve/CVE-2016-5423
suse.com/security/cve/CVE-2016-5424
suse.com/security/cve/CVE-2014-8161
suse.com/security/cve/CVE-2015-0241
suse.com/security/cve/CVE-2015-0242
suse.com/security/cve/CVE-2015-0243
suse.com/security/cve/CVE-2015-0244
suse.com/security/cve/CVE-2016-2193
suse.com/security/cve/CVE-2016-3065