Input validation error in PostgreSQL - CVE-2009-4136

 

Input validation error in PostgreSQL - CVE-2009-4136

Published: October 10, 2018 / Updated: June 23, 2025


Vulnerability identifier: #VU111773
CSH Severity: Medium
CVSS v4: 5.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2009-4136
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to read and manipulate data.

PostgreSQL 7.4.x before 7.4.27, 8.0.x before 8.0.23, 8.1.x before 8.1.19, 8.2.x before 8.2.15, 8.3.x before 8.3.9, and 8.4.x before 8.4.2 does not properly manage session-local state during execution of an index function by a database superuser, which allows remote authenticated users to gain privileges via a table with crafted index functions, as demonstrated by functions that modify (1) search_path or (2) a prepared statement, a related issue to CVE-2007-6600 and CVE-2009-3230.


Affected software

PostgreSQL
Gentoo Linux
dev-db/postgresql
dev-db/postgresql-server

How to mitigate CVE-2009-4136

Install update from vendor's website.

PostgreSQL - addressed in versions 7.4.27, 8.0.23, 8.1.19, 8.2.15, 8.3.9, 8.4.2
dev-db/postgresql - update to 9.0.5
dev-db/postgresql-server - update to 9.0.5

External References

Related Security Bulletins