BreachSpiderVerified, not vibes

CVE-2009-4136 in Postgresql

Medium 6.5

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

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 2.06.5
EPSS3.6%
EPSS percentile90th
FixSee advisory

Remotely exploitable over the network, low complexity.

Affected products and versions

VendorProductAffected versions
Postgresql Postgresql 7.4.1 7.4.2 7.4.3 7.4.4 7.4.5 7.4.6
+86 more7.4.7 7.4.8 7.4.9 7.4.10 7.4.11 7.4.12 7.4.13 7.4.14 7.4.15 7.4.16 7.4.17 7.4.18 7.4.19 7.4.20 7.4.21 7.4.22 7.4.23 7.4.24 7.4.25 7.4.26 8.0.0 8.0.1 8.0.2 8.0.3 8.0.4 8.0.5 8.0.6 8.0.7 8.0.8 8.0.9 8.0.10 8.0.11 8.0.12 8.0.13 8.0.14 8.0.15 8.0.16 8.0.17 8.0.18 8.0.19 8.0.20 8.0.21 8.0.22 8.1.0 8.1.1 8.1.2 8.1.3 8.1.4 8.1.5 8.1.6 8.1.7 8.1.8 8.1.9 8.1.10 8.1.11 8.1.12 8.1.13 8.1.14 8.1.15 8.1.16 8.1.17 8.1.18 8.2 8.2.1 8.2.2 8.2.3 8.2.4 8.2.5 8.2.6 8.2.7 8.2.8 8.2.9 8.2.10 8.2.11 8.2.12 8.2.13 8.2.14 8.3.1 8.3.2 8.3.3 8.3.4 8.3.5 8.3.6 8.3.7 8.3.8 8.4.1

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2009-4136
BreachSpider IDBS-2009-GLOBAL-084097-M
CVSS vectorAV:N/AC:L/Au:S/C:P/I:P/A:P
Published2009-12-15
Last modified2026-06-16
SourceNVD

Analysis AI-written, not human-reviewed

This vulnerability was disclosed in 2009. A medium severity vulnerability affects Postgresql systems (CVE-2009-4136). No public exploit code is currently available. Isolate affected systems if patching is not feasible.

Vulnerability details: 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. CVSS vector: AV:N/AC:L/Au:S/C:P/I:P/A:P.

Questions

What is CVE-2009-4136?

This vulnerability was disclosed in 2009. A medium severity vulnerability affects Postgresql systems (CVE-2009-4136). No public exploit code is currently available. Isolate affected systems if patching is not feasible.

What is the CVSS score for CVE-2009-4136?

CVE-2009-4136 has CVSS 6.5 (Medium). Vector: AV:N/AC:L/Au:S/C:P/I:P/A:P. EPSS: 3.6%.

Is CVE-2009-4136 actively exploited?

No confirmed active exploitation of CVE-2009-4136 as of 2026-09-25.

How do I remediate CVE-2009-4136?

Priority: MONITOR. Advisory: http://www.postgresql.org/docs/current/static/release-7-4-27.html PSIRT: [email protected]

What systems are affected by CVE-2009-4136?

CVE-2009-4136 affects Postgresql Postgresql.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Postgresql","product":"Postgresql","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-16.