Skip to content
Noroxi
NVD / CVE Program· CNA redhat

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.1.x before 9.1.3 does not properly check…

MediumCVSS 6.5 · v2.0—No exploit Fix available

Noroxi assessment

Priority: Monitor (action score 27/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 3.6% (FIRST EPSS); higher than 89.7% of all records.
  • No special conditions are required; it is repeatable.
  • Fixed version: postgresql-8.4 (Debian:6.0) 8.4.11-0squeeze1; postgresql93 (openSUSE:Tumbleweed) 9.3.15-1.1; postgresql94 (openSUSE:Tumbleweed) 9.4.10-1.1.

Low priority for now. Upgrade to postgresql-8.4 (Debian:6.0) 8.4.11-0squeeze1; postgresql93 (openSUSE:Tumbleweed) 9.3.15-1.1; postgresql94 (openSUSE:Tumbleweed) 9.4.10-1.1 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

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.

Published
Jul 18, 2012
Updated
Jun 16, 2026
EPSS
3.6% · 89th percentile

Report tools

JSON

Action score

27

Monitor

Low priority for now.

CVSS
26 / 40 · 6.5 / 10
CISA KEV
0 / 30 · Not listed
EPSS
1 / 30 · 3.6%

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2012-0866

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Is PostgreSQL on your server exposed to the internet?Run a port scan

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Is PostgreSQL on your server exposed to the internet?Run a port scan

Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
postgresqlpostgresql

Using postgresql? Add it to your stack and be the first to know about CVEs like this one. (PostgreSQL)

Watch new CVEs for postgresql

When you'll hear from us

  • when a new CVE affecting this product is published
  • when a record in your stack enters KEV or is weaponized

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Is PostgreSQL on your server exposed to the internet?Run a port scan

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Is PostgreSQL on your server exposed to the internet?

The free port scanner finds the open ports on your server and matches the service versions it can read against known vulnerabilities. No account needed.

Run a port scan

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • postgresql postgresql8.3
  • postgresql postgresql8.3.1
  • postgresql postgresql8.3.10
  • postgresql postgresql8.3.11
  • postgresql postgresql8.3.12
  • postgresql postgresql8.3.13
  • postgresql postgresql8.3.14
  • postgresql postgresql8.3.15

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:6.0postgresql-8.4before 8.4.11-0squeeze18.4.11-0squeeze1
openSUSE:Tumbleweedpostgresql93before 9.3.15-1.19.3.15-1.1
openSUSE:Tumbleweedpostgresql94before 9.4.10-1.19.4.10-1.1
openSUSE:Tumbleweedpostgresql95before 9.5.4-1.29.5.4-1.2
Red Hat:enterprise_linux:5::clientpostgresqlbefore 0:8.1.23-4.el5_80:8.1.23-4.el5_8
Red Hat:enterprise_linux:5::clientpostgresql-contribbefore 0:8.1.23-4.el5_80:8.1.23-4.el5_8
Red Hat:enterprise_linux:5::clientpostgresql-debuginfobefore 0:8.1.23-4.el5_80:8.1.23-4.el5_8
Red Hat:enterprise_linux:5::clientpostgresql-docsbefore 0:8.1.23-4.el5_80:8.1.23-4.el5_8
Red Hat:enterprise_linux:5::clientpostgresql-libsbefore 0:8.1.23-4.el5_80:8.1.23-4.el5_8
Red Hat:enterprise_linux:5::clientpostgresql-pythonbefore 0:8.1.23-4.el5_80:8.1.23-4.el5_8
Red Hat:enterprise_linux:5::clientpostgresql-tclbefore 0:8.1.23-4.el5_80:8.1.23-4.el5_8
Red Hat:enterprise_linux:5::clientpostgresql84before 0:8.4.11-1.el5_80:8.4.11-1.el5_8
Red Hat:enterprise_linux:5::clientpostgresql84-contribbefore 0:8.4.11-1.el5_80:8.4.11-1.el5_8
Red Hat:enterprise_linux:5::clientpostgresql84-debuginfobefore 0:8.4.11-1.el5_80:8.4.11-1.el5_8
Red Hat:enterprise_linux:5::clientpostgresql84-docsbefore 0:8.4.11-1.el5_80:8.4.11-1.el5_8
Red Hat:enterprise_linux:5::clientpostgresql84-libsbefore 0:8.4.11-1.el5_80:8.4.11-1.el5_8
Red Hat:enterprise_linux:5::clientpostgresql84-pythonbefore 0:8.4.11-1.el5_80:8.4.11-1.el5_8
Red Hat:enterprise_linux:5::clientpostgresql84-tclbefore 0:8.4.11-1.el5_80:8.4.11-1.el5_8
Red Hat:enterprise_linux:5::client_workstationpostgresql-develbefore 0:8.1.23-4.el5_80:8.1.23-4.el5_8
Red Hat:enterprise_linux:5::client_workstationpostgresql-plbefore 0:8.1.23-4.el5_80:8.1.23-4.el5_8
Red Hat:enterprise_linux:5::client_workstationpostgresql-serverbefore 0:8.1.23-4.el5_80:8.1.23-4.el5_8
Red Hat:enterprise_linux:5::client_workstationpostgresql-testbefore 0:8.1.23-4.el5_80:8.1.23-4.el5_8
Red Hat:enterprise_linux:5::client_workstationpostgresql84-develbefore 0:8.4.11-1.el5_80:8.4.11-1.el5_8
Red Hat:enterprise_linux:5::client_workstationpostgresql84-plperlbefore 0:8.4.11-1.el5_80:8.4.11-1.el5_8

+15

Other highest-scoring records for the same primary product.

  • CVE-2017-7546PostgreSQL versions before 9.2.22, 9.3.18, 9.4.13, 9.5.8 and 9.6.4 are vulnerable to incorrect authentication flaw allowing remote…
    57Plan
  • CVE-2019-9193In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_server_program' group to…
    55Plan
  • CVE-2020-25695A flaw was found in PostgreSQL versions before 13.1, before 12.5, before 11.10, before 10.15, before 9.6.20 and before 9.5.24.
    49Plan

Published before and after this one in the same product

  • ← EarlierCVE-2010-4015Feb 1, 2011 · Buffer overflow in the gettoken function in contrib/intarray/_int_bool.c in the intarray array module in PostgreSQL 9.0.x before 9.0.3, 8.4.
    27Monitor
  • ← EarlierCVE-2012-2143Jul 5, 2012 · The crypt_des (aka DES-based crypt) function in FreeBSD before 9.0-RELEASE-p2, as used in PHP, PostgreSQL, and other products, does not…
    19Monitor
  • Later →CVE-2012-0867Jul 18, 2012 · PostgreSQL 8.4.x before 8.4.11, 9.0.x before 9.0.7, and 9.1.x before 9.1.3 truncates the common name to only 32 characters when verifying…
    18Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
debian:postgresql-8.48.4.11-0squeeze1 · Debian:6.0Package registry (OSV)
opensuse:postgresql939.3.15-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:postgresql949.4.10-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:postgresql959.5.4-1.2 · openSUSE:TumbleweedPackage registry (OSV)
red hat:postgresql0:8.1.23-4.el5_8 · Red Hat:enterprise_linux:5::clientPackage registry (OSV)
red hat:postgresql-contrib0:8.1.23-4.el5_8 · Red Hat:enterprise_linux:5::clientPackage registry (OSV)
red hat:postgresql-debuginfo0:8.1.23-4.el5_8 · Red Hat:enterprise_linux:5::clientPackage registry (OSV)
red hat:postgresql-devel0:8.1.23-4.el5_8 · Red Hat:enterprise_linux:5::client_workstationPackage registry (OSV)
red hat:postgresql-docs0:8.1.23-4.el5_8 · Red Hat:enterprise_linux:5::clientPackage registry (OSV)
red hat:postgresql-libs0:8.1.23-4.el5_8 · Red Hat:enterprise_linux:5::clientPackage registry (OSV)
red hat:postgresql-pl0:8.1.23-4.el5_8 · Red Hat:enterprise_linux:5::client_workstationPackage registry (OSV)
red hat:postgresql-python0:8.1.23-4.el5_8 · Red Hat:enterprise_linux:5::clientPackage registry (OSV)
red hat:postgresql-server0:8.1.23-4.el5_8 · Red Hat:enterprise_linux:5::client_workstationPackage registry (OSV)
red hat:postgresql-tcl0:8.1.23-4.el5_8 · Red Hat:enterprise_linux:5::clientPackage registry (OSV)
red hat:postgresql-test0:8.1.23-4.el5_8 · Red Hat:enterprise_linux:5::client_workstationPackage registry (OSV)
red hat:postgresql840:8.4.11-1.el5_8 · Red Hat:enterprise_linux:5::clientPackage registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.

Technical details

Attack conditions

  • No special conditions are required; it is repeatable.

If successful

Confidentiality
P · data can be read
Integrity
P · data or configuration can be modified
Availability
P · the service can be disrupted
Attack complexity
Low
Confidentiality impact
P
Integrity impact
P
Availability impact
P

CVSS vector

AV:N/AC:L/Au:S/C:P/I:P/A:P

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

MITRE has no CAPEC/ATT&CK mapping for this CWE.

References

All records