Description
The PL/perl and PL/Tcl implementations in PostgreSQL 7.4 before 7.4.30, 8.0 before 8.0.26, 8.1 before 8.1.22, 8.2 before 8.2.18, 8.3 before 8.3.12, 8.4 before 8.4.5, and 9.0 before 9.0.1 do not properly protect script execution by a different SQL user identity within the same session, which allows remote authenticated users to gain privileges via crafted script code in a SECURITY DEFINER function, as demonstrated by (1) redefining standard functions or (2) redefining operators, a different vulnerability than CVE-2010-1168, CVE-2010-1169, CVE-2010-1170, and CVE-2010-1447.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 5.0 | postgresql-8.3 | 8.3.12-0lenny1 | DSA-2120-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 6 | postgresql +9 | 8.4.5-1.el6_0.2 | RHSA-2010:0908 |
| RHEL 5 | postgresql +9 | 8.1.22-1.el5_5.1 | RHSA-2010:0742 |
| RHEL 5 | postgresql84 +11 | 8.4.5-1.el5_5.1 | RHSA-2010:0742 |
| RHEL 4 | postgresql +10 | 7.4.30-1.el4_8.1 | RHSA-2010:0742 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | postgresql93 | 9.3.15-1.1 | openSUSE-SU-2024:10256-1 |
| openSUSE Tumbleweed | postgresql94 | 9.4.10-1.1 | openSUSE-SU-2024:10030-1 |
| openSUSE Tumbleweed | postgresql95 | 9.5.4-1.2 | openSUSE-SU-2024:10273-1 |
Advisories 6
- RHSA-2010:0908 Red Hat Security Advisory: postgresql security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2010:0742 Red Hat Security Advisory: postgresql and postgresql84 security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- DSA-2120-1 postgresql-8.3 - privilege escalation Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:10030-1 postgresql94-9.4.10-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10273-1 libecpg6-32bit-9.5.4-1.2 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10256-1 postgresql93-9.3.15-1.1 on GA media SUSE / openSUSE Security Updates · May 7, 2025
References
- FEDORA-2010-15960 vendor-advisory
- oval:org.mitre.oval:def:7291 vdb-entry signature
- SUSE-SR:2010:020 vendor-advisory
- HPSBMU02781 vendor-advisory
- USN-1002-2 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=639371
- FEDORA-2010-15954 vendor-advisory
- ADV-2010-3051 vdb-entry
- RHSA-2010:0742 vendor-advisory
- http://www.postgresql.org/docs/9.0/static/release-9-0-1.html
- USN-1002-1 vendor-advisory
- MDVSA-2010:197 vendor-advisory
- 42325 third-party-advisory
- RHSA-2010:0908 vendor-advisory
- DSA-2120 vendor-advisory
- http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10705
- SUSE-SR:2010:019 vendor-advisory
- 43747 vdb-entry
- http://www.postgresql.org/about/news.1244