Description
The libxslt support in contrib/xml2 in PostgreSQL 8.3 before 8.3.20, 8.4 before 8.4.13, 9.0 before 9.0.9, and 9.1 before 9.1.5 does not properly restrict access to files and URLs, which allows remote authenticated users to modify data, obtain sensitive information, or trigger outbound traffic to arbitrary external hosts by leveraging (1) stylesheet commands that are permitted by the libxslt security options or (2) an xslt_process feature, related to an XML External Entity (aka XXE) issue.
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 6.0 | postgresql-8.4 | 8.4.13-0squeeze1 | DSA-2534-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 6 | postgresql +9 | 8.4.13-1.el6_3 | RHSA-2012:1263 |
| RHEL 5 | postgresql +9 | 8.1.23-6.el5_8 | RHSA-2012:1264 |
| RHEL 5 | postgresql84 +11 | 8.4.13-1.el5_8 | RHSA-2012:1263 |
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-2012:1263 Red Hat Security Advisory: postgresql and postgresql84 security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2012:1264 Red Hat Security Advisory: postgresql security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- DSA-2534-1 postgresql-8.4 - several 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
- RHSA-2012:1263 vendor-advisory
- http://www.postgresql.org/docs/9.0/static/release-9-0-9.html
- MDVSA-2012:139 vendor-advisory
- 50636 third-party-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=849172
- USN-1542-1 vendor-advisory
- 50718 third-party-advisory
- http://www.postgresql.org/docs/9.1/static/release-9-1-5.html
- https://blogs.oracle.com/sunsecurity/entry/multiple_vulnerabilities_in_postgresql2
- http://www.postgresql.org/docs/8.4/static/release-8-4-13.html
- http://www.postgresql.org/docs/8.3/static/release-8-3-20.html
- http://www.postgresql.org/about/news/1407/
- 50635 third-party-advisory
- http://www.postgresql.org/support/security/
- APPLE-SA-2013-03-14-1 vendor-advisory
- 50946 third-party-advisory
- 55072 vdb-entry
- DSA-2534 vendor-advisory
- RHSA-2012:1264 vendor-advisory
- http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10705
- openSUSE-SU-2012:1251 vendor-advisory
- openSUSE-SU-2012:1288 vendor-advisory
- 50859 third-party-advisory
- openSUSE-SU-2012:1299 vendor-advisory