CVE-2009-4136

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.

Published: 2009-12-15 Last update: 2026-06-16 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2009-4136 is rated Moderate Risk (58.9/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 3.64%). Core evidence: EPSS rose +2.07% over the last day, indicating growing attacker interest. Mandatory action: Review affected assets and schedule remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2009-4136

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 1.58% 3.64% +2.07%
2 2025-03-30 4.31% 1.58% -2.73%
3 2025-03-29 4.31%

Full EPSS history (11 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2009-4136

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
6.5 2.0 MEDIUM
AV:N/AC:L/Au:S/C:P/I:P/A:P Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:L)
Exploitation conditions are straightforward and predictable.
Authentication (AU:S)
A single authentication is required.
Confidentiality impact (C:P)
Partial confidentiality impact.
Integrity impact (I:P)
Partial integrity impact.
Availability impact (A:P)
Partial availability impact.
8.0 6.4 [email protected]

Weakness enumeration for CVE-2009-4136

OS Trackers for CVE-2009-4136

vendor priority summary link
gentoo normal CVE-2009-4136: 1 GLSA(s) (201110-22), 3 atom(s) (dev-db/postgresql, dev-db/postgresql-base, dev-db/postgresql-server); latest impact normal. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2009-4136
redhat low https://access.redhat.com/security/cve/CVE-2009-4136
ubuntu medium CVE-2009-4136 medium priority: Ubuntu including 6 source packages (postgresql-7.4, postgresql-8.0, postgresql-8.1, postgresql-8.2, postgresql-8.3, postgresql-8.4), 60 status rows across 10 suites (dapper, hardy, intrepid, jaunty, karmic, lucid, maverick, natty, oneiric, upstream): DNE 41, needs-triage 6, released 5, ignored 4, not-affected 4. https://ubuntu.com/security/CVE-2009-4136

Vendor comments (NVD) for CVE-2009-4136

  • Red Hat (2010-05-20T00:00:00)

    This issue was addressed in Red Hat Enterprise Linux 3 via https://rhn.redhat.com/errata/RHSA-2010-0427.html This issue was addressed in Red Hat Enterprise Linux 4 via https://rhn.redhat.com/errata/RHSA-2010-0428.html This issue was addressed in Red Hat Enterprise Linux 5 via https://rhn.redhat.com/errata/RHSA-2010-0429.html and https://rhn.redhat.com/errata/RHSA-2010-0430.html

Affected software / configurations for CVE-2009-4136

Vendor Product Version Raw CPE
postgresql postgresql 7.4.1 cpe:2.3:a:postgresql:postgresql:7.4.1:*:*:*:*:*:*:*
postgresql postgresql 7.4.2 cpe:2.3:a:postgresql:postgresql:7.4.2:*:*:*:*:*:*:*
postgresql postgresql 7.4.3 cpe:2.3:a:postgresql:postgresql:7.4.3:*:*:*:*:*:*:*
postgresql postgresql 7.4.4 cpe:2.3:a:postgresql:postgresql:7.4.4:*:*:*:*:*:*:*
postgresql postgresql 7.4.5 cpe:2.3:a:postgresql:postgresql:7.4.5:*:*:*:*:*:*:*
postgresql postgresql 7.4.6 cpe:2.3:a:postgresql:postgresql:7.4.6:*:*:*:*:*:*:*
postgresql postgresql 7.4.7 cpe:2.3:a:postgresql:postgresql:7.4.7:*:*:*:*:*:*:*
postgresql postgresql 7.4.8 cpe:2.3:a:postgresql:postgresql:7.4.8:*:*:*:*:*:*:*
postgresql postgresql 7.4.9 cpe:2.3:a:postgresql:postgresql:7.4.9:*:*:*:*:*:*:*
postgresql postgresql 7.4.10 cpe:2.3:a:postgresql:postgresql:7.4.10:*:*:*:*:*:*:*
postgresql postgresql 7.4.11 cpe:2.3:a:postgresql:postgresql:7.4.11:*:*:*:*:*:*:*
postgresql postgresql 7.4.12 cpe:2.3:a:postgresql:postgresql:7.4.12:*:*:*:*:*:*:*
postgresql postgresql 7.4.13 cpe:2.3:a:postgresql:postgresql:7.4.13:*:*:*:*:*:*:*
postgresql postgresql 7.4.14 cpe:2.3:a:postgresql:postgresql:7.4.14:*:*:*:*:*:*:*
postgresql postgresql 7.4.15 cpe:2.3:a:postgresql:postgresql:7.4.15:*:*:*:*:*:*:*
postgresql postgresql 7.4.16 cpe:2.3:a:postgresql:postgresql:7.4.16:*:*:*:*:*:*:*
postgresql postgresql 7.4.17 cpe:2.3:a:postgresql:postgresql:7.4.17:*:*:*:*:*:*:*
postgresql postgresql 7.4.18 cpe:2.3:a:postgresql:postgresql:7.4.18:*:*:*:*:*:*:*
postgresql postgresql 7.4.19 cpe:2.3:a:postgresql:postgresql:7.4.19:*:*:*:*:*:*:*
postgresql postgresql 7.4.20 cpe:2.3:a:postgresql:postgresql:7.4.20:*:*:*:*:*:*:*
postgresql postgresql 7.4.21 cpe:2.3:a:postgresql:postgresql:7.4.21:*:*:*:*:*:*:*
postgresql postgresql 7.4.22 cpe:2.3:a:postgresql:postgresql:7.4.22:*:*:*:*:*:*:*
postgresql postgresql 7.4.23 cpe:2.3:a:postgresql:postgresql:7.4.23:*:*:*:*:*:*:*
postgresql postgresql 7.4.24 cpe:2.3:a:postgresql:postgresql:7.4.24:*:*:*:*:*:*:*
postgresql postgresql 7.4.25 cpe:2.3:a:postgresql:postgresql:7.4.25:*:*:*:*:*:*:*
postgresql postgresql 7.4.26 cpe:2.3:a:postgresql:postgresql:7.4.26:*:*:*:*:*:*:*
postgresql postgresql 8.0.0 cpe:2.3:a:postgresql:postgresql:8.0.0:*:*:*:*:*:*:*
postgresql postgresql 8.0.1 cpe:2.3:a:postgresql:postgresql:8.0.1:*:*:*:*:*:*:*
postgresql postgresql 8.0.2 cpe:2.3:a:postgresql:postgresql:8.0.2:*:*:*:*:*:*:*
postgresql postgresql 8.0.3 cpe:2.3:a:postgresql:postgresql:8.0.3:*:*:*:*:*:*:*
postgresql postgresql 8.0.4 cpe:2.3:a:postgresql:postgresql:8.0.4:*:*:*:*:*:*:*
postgresql postgresql 8.0.5 cpe:2.3:a:postgresql:postgresql:8.0.5:*:*:*:*:*:*:*
postgresql postgresql 8.0.6 cpe:2.3:a:postgresql:postgresql:8.0.6:*:*:*:*:*:*:*
postgresql postgresql 8.0.7 cpe:2.3:a:postgresql:postgresql:8.0.7:*:*:*:*:*:*:*
postgresql postgresql 8.0.8 cpe:2.3:a:postgresql:postgresql:8.0.8:*:*:*:*:*:*:*
postgresql postgresql 8.0.9 cpe:2.3:a:postgresql:postgresql:8.0.9:*:*:*:*:*:*:*
postgresql postgresql 8.0.10 cpe:2.3:a:postgresql:postgresql:8.0.10:*:*:*:*:*:*:*
postgresql postgresql 8.0.11 cpe:2.3:a:postgresql:postgresql:8.0.11:*:*:*:*:*:*:*
postgresql postgresql 8.0.12 cpe:2.3:a:postgresql:postgresql:8.0.12:*:*:*:*:*:*:*
postgresql postgresql 8.0.13 cpe:2.3:a:postgresql:postgresql:8.0.13:*:*:*:*:*:*:*
postgresql postgresql 8.0.14 cpe:2.3:a:postgresql:postgresql:8.0.14:*:*:*:*:*:*:*
postgresql postgresql 8.0.15 cpe:2.3:a:postgresql:postgresql:8.0.15:*:*:*:*:*:*:*
postgresql postgresql 8.0.16 cpe:2.3:a:postgresql:postgresql:8.0.16:*:*:*:*:*:*:*
postgresql postgresql 8.0.17 cpe:2.3:a:postgresql:postgresql:8.0.17:*:*:*:*:*:*:*
postgresql postgresql 8.0.18 cpe:2.3:a:postgresql:postgresql:8.0.18:*:*:*:*:*:*:*
postgresql postgresql 8.0.19 cpe:2.3:a:postgresql:postgresql:8.0.19:*:*:*:*:*:*:*
postgresql postgresql 8.0.20 cpe:2.3:a:postgresql:postgresql:8.0.20:*:*:*:*:*:*:*
postgresql postgresql 8.0.21 cpe:2.3:a:postgresql:postgresql:8.0.21:*:*:*:*:*:*:*
postgresql postgresql 8.0.22 cpe:2.3:a:postgresql:postgresql:8.0.22:*:*:*:*:*:*:*
postgresql postgresql 8.1.0 cpe:2.3:a:postgresql:postgresql:8.1.0:*:*:*:*:*:*:*
postgresql postgresql 8.1.1 cpe:2.3:a:postgresql:postgresql:8.1.1:*:*:*:*:*:*:*
postgresql postgresql 8.1.2 cpe:2.3:a:postgresql:postgresql:8.1.2:*:*:*:*:*:*:*
postgresql postgresql 8.1.3 cpe:2.3:a:postgresql:postgresql:8.1.3:*:*:*:*:*:*:*
postgresql postgresql 8.1.4 cpe:2.3:a:postgresql:postgresql:8.1.4:*:*:*:*:*:*:*
postgresql postgresql 8.1.5 cpe:2.3:a:postgresql:postgresql:8.1.5:*:*:*:*:*:*:*
postgresql postgresql 8.1.6 cpe:2.3:a:postgresql:postgresql:8.1.6:*:*:*:*:*:*:*
postgresql postgresql 8.1.7 cpe:2.3:a:postgresql:postgresql:8.1.7:*:*:*:*:*:*:*
postgresql postgresql 8.1.8 cpe:2.3:a:postgresql:postgresql:8.1.8:*:*:*:*:*:*:*
postgresql postgresql 8.1.9 cpe:2.3:a:postgresql:postgresql:8.1.9:*:*:*:*:*:*:*
postgresql postgresql 8.1.10 cpe:2.3:a:postgresql:postgresql:8.1.10:*:*:*:*:*:*:*
postgresql postgresql 8.1.11 cpe:2.3:a:postgresql:postgresql:8.1.11:*:*:*:*:*:*:*
postgresql postgresql 8.1.12 cpe:2.3:a:postgresql:postgresql:8.1.12:*:*:*:*:*:*:*
postgresql postgresql 8.1.13 cpe:2.3:a:postgresql:postgresql:8.1.13:*:*:*:*:*:*:*
postgresql postgresql 8.1.14 cpe:2.3:a:postgresql:postgresql:8.1.14:*:*:*:*:*:*:*
postgresql postgresql 8.1.15 cpe:2.3:a:postgresql:postgresql:8.1.15:*:*:*:*:*:*:*
postgresql postgresql 8.1.16 cpe:2.3:a:postgresql:postgresql:8.1.16:*:*:*:*:*:*:*
postgresql postgresql 8.1.17 cpe:2.3:a:postgresql:postgresql:8.1.17:*:*:*:*:*:*:*
postgresql postgresql 8.1.18 cpe:2.3:a:postgresql:postgresql:8.1.18:*:*:*:*:*:*:*
postgresql postgresql 8.2 cpe:2.3:a:postgresql:postgresql:8.2:*:*:*:*:*:*:*
postgresql postgresql 8.2.1 cpe:2.3:a:postgresql:postgresql:8.2.1:*:*:*:*:*:*:*
postgresql postgresql 8.2.2 cpe:2.3:a:postgresql:postgresql:8.2.2:*:*:*:*:*:*:*
postgresql postgresql 8.2.3 cpe:2.3:a:postgresql:postgresql:8.2.3:*:*:*:*:*:*:*
postgresql postgresql 8.2.4 cpe:2.3:a:postgresql:postgresql:8.2.4:*:*:*:*:*:*:*
postgresql postgresql 8.2.5 cpe:2.3:a:postgresql:postgresql:8.2.5:*:*:*:*:*:*:*
postgresql postgresql 8.2.6 cpe:2.3:a:postgresql:postgresql:8.2.6:*:*:*:*:*:*:*
postgresql postgresql 8.2.7 cpe:2.3:a:postgresql:postgresql:8.2.7:*:*:*:*:*:*:*
postgresql postgresql 8.2.8 cpe:2.3:a:postgresql:postgresql:8.2.8:*:*:*:*:*:*:*
postgresql postgresql 8.2.9 cpe:2.3:a:postgresql:postgresql:8.2.9:*:*:*:*:*:*:*
postgresql postgresql 8.2.10 cpe:2.3:a:postgresql:postgresql:8.2.10:*:*:*:*:*:*:*
postgresql postgresql 8.2.11 cpe:2.3:a:postgresql:postgresql:8.2.11:*:*:*:*:*:*:*

References for CVE-2009-4136

URL Tags
http://lists.opensuse.org/opensuse-security-announce/2010-01/msg00007.html
http://marc.info/?l=bugtraq&m=134124585221119&w=2
http://osvdb.org/61039
http://secunia.com/advisories/37663
http://secunia.com/advisories/39820
http://wiki.rpath.com/wiki/Advisories:rPSA-2010-0012
http://www.mandriva.com/security/advisories?name=MDVSA-2009:333
http://www.postgresql.org/docs/current/static/release-7-4-27.html Patch Vendor Advisory
http://www.postgresql.org/docs/current/static/release-8-0-23.html Patch Vendor Advisory
http://www.postgresql.org/docs/current/static/release-8-1-19.html Patch Vendor Advisory
http://www.postgresql.org/docs/current/static/release-8-2-15.html Patch Vendor Advisory
http://www.postgresql.org/docs/current/static/release-8-3-9.html Patch Vendor Advisory
http://www.postgresql.org/docs/current/static/release-8-4-2.html Patch Vendor Advisory
http://www.postgresql.org/support/security.html Vendor Advisory
http://www.redhat.com/support/errata/RHSA-2010-0427.html
http://www.redhat.com/support/errata/RHSA-2010-0428.html
http://www.redhat.com/support/errata/RHSA-2010-0429.html
http://www.securityfocus.com/archive/1/509917/100/0/threaded
http://www.securityfocus.com/bid/37333
http://www.securitytracker.com/id?1023326
http://www.vupen.com/english/advisories/2009/3519
http://www.vupen.com/english/advisories/2010/1197
https://bugzilla.redhat.com/show_bug.cgi?id=546321 Patch
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9358
https://www.redhat.com/archives/fedora-package-announce/2009-December/msg01035.html
https://www.redhat.com/archives/fedora-package-announce/2009-December/msg01056.html
cvelogic Threat Intelligence