CVEfocus › CVE database › CVE-2012-0866

CVE-2012-0866

EPSS 3.6% (higher than 90% of CVEs)Published 2012-07-18Updated 2024-08-06Assigner: redhat

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.

What to do

Fixed builds are available from Red Hat: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

32Fixed
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Red Hat Enterprise Linux 6postgresqlFixed0:8.4.11-1.el6_2RHSA-2012:0678
Red Hat Enterprise Linux 6postgresql-contribFixed0:8.4.11-1.el6_2RHSA-2012:0678
Red Hat Enterprise Linux 6postgresql-develFixed0:8.4.11-1.el6_2RHSA-2012:0678
Red Hat Enterprise Linux 6postgresql-docsFixed0:8.4.11-1.el6_2RHSA-2012:0678
Red Hat Enterprise Linux 6postgresql-libsFixed0:8.4.11-1.el6_2RHSA-2012:0678
Red Hat Enterprise Linux 6postgresql-plperlFixed0:8.4.11-1.el6_2RHSA-2012:0678
Red Hat Enterprise Linux 6postgresql-plpythonFixed0:8.4.11-1.el6_2RHSA-2012:0678
Red Hat Enterprise Linux 6postgresql-pltclFixed0:8.4.11-1.el6_2RHSA-2012:0678
Red Hat Enterprise Linux 6postgresql-serverFixed0:8.4.11-1.el6_2RHSA-2012:0678
Red Hat Enterprise Linux 6postgresql-testFixed0:8.4.11-1.el6_2RHSA-2012:0678
Red Hat Enterprise Linux 5postgresqlFixed0:8.1.23-4.el5_8RHSA-2012:0677
Red Hat Enterprise Linux 5postgresql-contribFixed0:8.1.23-4.el5_8RHSA-2012:0677
Red Hat Enterprise Linux 5postgresql-develFixed0:8.1.23-4.el5_8RHSA-2012:0677
Red Hat Enterprise Linux 5postgresql-docsFixed0:8.1.23-4.el5_8RHSA-2012:0677
Red Hat Enterprise Linux 5postgresql-libsFixed0:8.1.23-4.el5_8RHSA-2012:0677
Red Hat Enterprise Linux 5postgresql-plFixed0:8.1.23-4.el5_8RHSA-2012:0677
Red Hat Enterprise Linux 5postgresql-pythonFixed0:8.1.23-4.el5_8RHSA-2012:0677
Red Hat Enterprise Linux 5postgresql-serverFixed0:8.1.23-4.el5_8RHSA-2012:0677
Red Hat Enterprise Linux 5postgresql-tclFixed0:8.1.23-4.el5_8RHSA-2012:0677
Red Hat Enterprise Linux 5postgresql-testFixed0:8.1.23-4.el5_8RHSA-2012:0677
Red Hat Enterprise Linux 5postgresql84Fixed0:8.4.11-1.el5_8RHSA-2012:0678
Red Hat Enterprise Linux 5postgresql84-contribFixed0:8.4.11-1.el5_8RHSA-2012:0678
Red Hat Enterprise Linux 5postgresql84-develFixed0:8.4.11-1.el5_8RHSA-2012:0678
Red Hat Enterprise Linux 5postgresql84-docsFixed0:8.4.11-1.el5_8RHSA-2012:0678
Red Hat Enterprise Linux 5postgresql84-libsFixed0:8.4.11-1.el5_8RHSA-2012:0678
Red Hat Enterprise Linux 5postgresql84-plperlFixed0:8.4.11-1.el5_8RHSA-2012:0678
Red Hat Enterprise Linux 5postgresql84-plpythonFixed0:8.4.11-1.el5_8RHSA-2012:0678
Red Hat Enterprise Linux 5postgresql84-pltclFixed0:8.4.11-1.el5_8RHSA-2012:0678
Red Hat Enterprise Linux 5postgresql84-pythonFixed0:8.4.11-1.el5_8RHSA-2012:0678
Red Hat Enterprise Linux 5postgresql84-serverFixed0:8.4.11-1.el5_8RHSA-2012:0678
Red Hat Enterprise Linux 5postgresql84-tclFixed0:8.4.11-1.el5_8RHSA-2012:0678
Red Hat Enterprise Linux 5postgresql84-testFixed0:8.4.11-1.el5_8RHSA-2012:0678
Red Hat Enterprise Linux 4postgresqlWill not fix
Will not fix

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.