CVE-2012-0866 Missing authorization in n/a

Medium 6.5 Published Updated

Authenticated users can bypass security restrictions to execute privileged triggers on arbitrary data by installing them on attacker-owned tables.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2012-0866?

CVE-2012-0866 is a medium-severity missing authorization vulnerability in Postgresql Postgresql, published on 18 Jul 2012. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-264

Which versions are affected by CVE-2012-0866?

It affects 1 product.

Products include Postgresql Postgresql.

How do I fix CVE-2012-0866?

Upgrade to a fixed version.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2012-0866 being exploited?

There is no known exploitation of CVE-2012-0866 in the wild and no public exploit code.

All Postgresql Postgresql vulnerabilities

Sources

Also known as GHSA-8fvr-fgp7-p77m.

Is CVE-2012-0866 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free