Untrusted search path vulnerability in PostgreSQL before 7.3.19, 7.4.x before 7.4.17, 8.0.x before 8.0.13, 8.1.x before 8.1.9, and 8.2.x before 8.2.4 allows remote authenticated users, when permitted to call a SECURITY DEFINER function, to gain the privileges of the function owner, related to "search_path settings."
CVE-2007-2138
This CVE was only ever scored under CVSS v2.0. NVD CVSS v2.0 base 6.0 — v2 rates that MEDIUM (v2 bands: LOW 0.0–3.9 / MEDIUM 4.0–6.9 / HIGH 7.0–10.0; v2 has no CRITICAL band). Vector AV:N/AC:M/Au:S/C:P/I:P/A:P. CVSS v2 is an older, coarser metric than v3.1/v4.0 (no Scope, no User Interaction, no Attack Requirements), so it is not directly comparable to a v3 or v4 score. NVD has never re-scored this record under v3. EPSS predicts 3.7% exploitation probability in the next 30 days, which is reflected in EG Risk but does not lift the v2 base. Confidence: LOW.
- Lower severity and no public exploit yet
A fix is available — apply it.
- CVSS v2.0 (legacy)
- 6.0MEDIUMNVD never assigned a CVSS v3 rating to this CVE
- EG Score
- 6.0MEDIUMlow confidence
- EG Risk
- 33EG Risk 33/100
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computed (value × EchelonGraph’s weight)Severity60% × 45%The EG Score, 6.0 of 10.Exploitation4% × 40%FIRST EPSS: the 30-day exploitation probability when EchelonGraph scored this CVE.Automatability30% × 15%EchelonGraph's default before algorithm v3.4: CISA had not published Automatable for this CVE.SSVC (CISA's decision table, applied by EchelonGraph): Track at low or medium mission impact; Track or Track* or Attend at high (mission-essential systems).Exploitation none (no KEV listing, exploit record or EPSS ≥ 50%) · Automatable unknown (not published for this CVE) · Technical impact unknown (not published for this CVE). EchelonGraph holds no SSVC assessment of this CVE from CISA: none of these inputs is from Vulnrichment. EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE.Action: A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high. - EPSS PROB
- 3.7%
- EPSS %ILE
- 89th
- KEV
- Not listed
SSVC (CISA's decision table, applied by EchelonGraph)Track at low or medium mission impact; Track or Track* or Attend at high (mission-essential systems).
A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high.
Exploitation none (no KEV listing, exploit record or EPSS ≥ 50%) · Automatable unknown (not published for this CVE) · Technical impact unknown (not published for this CVE). EchelonGraph holds no SSVC assessment of this CVE from CISA: none of these inputs is from Vulnrichment. EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE. Mission impact is CISA's Mission & Well-being decision point, and only you can judge it. CISA's table makes it high when Mission Prevalence is Essential — the vulnerable component "directly provides capabilities that constitute at least one MEF for at least one entity" (MEF: mission essential function) — or when Public Well-Being Impact is Irreversible: "multiple fatalities are likely", the cyber-physical system "is likely lost or destroyed", "extreme or serious externalities" are imposed on other parties, or social systems such as elections or the financial grid "are destabilized and potentially collapse". CISA's decision table
Published
April 24, 2007
Last Modified
April 23, 2026
References (31)
- MITRE · CVE Programhttp://rhn.redhat.com/errata/RHSA-2007-0336.htmlThird Party Advisory
- MITRE · CVE Programhttp://secunia.com/advisories/24989Third Party Advisory
- MITRE · CVE Programhttp://secunia.com/advisories/24999Third Party Advisory
- MITRE · CVE Programhttp://secunia.com/advisories/25005Third Party Advisory
- MITRE · CVE Programhttp://secunia.com/advisories/25019Third Party Advisory
- MITRE · CVE Programhttp://secunia.com/advisories/25037Third Party Advisory
- MITRE · CVE Programhttp://secunia.com/advisories/25058Third Party Advisory
- MITRE · CVE Programhttp://secunia.com/advisories/25184Third Party Advisory
- MITRE · CVE Programhttp://secunia.com/advisories/25238Third Party Advisory
- MITRE · CVE Programhttp://secunia.com/advisories/25334Third Party Advisory
- MITRE · CVE Programhttp://secunia.com/advisories/25717Third Party Advisory
- MITRE · CVE Programhttp://secunia.com/advisories/25720Third Party Advisory
- MITRE · CVE Programhttp://secunia.com/advisories/25725Third Party Advisory
- MITRE · CVE Programhttp://security.gentoo.org/glsa/glsa-200705-12.xmlThird Party Advisory
- MITRE · CVE Programhttp://sunsolve.sun.com/search/document.do?assetkey=1-26-102894-1Broken Link
15 of 31 shown · show the other 16
- MITRE · CVE Programhttp://support.avaya.com/elmodocs2/security/ASA-2007-190.htmThird Party Advisory
- MITRE · CVE Programhttp://www.debian.org/security/2007/dsa-1309Third Party Advisory
- MITRE · CVE Programhttp://www.debian.org/security/2007/dsa-1311Third Party Advisory
- MITRE · CVE Programhttp://www.mandriva.com/security/advisories?name=MDKSA-2007:094Third Party Advisory
- MITRE · CVE Programhttp://www.postgresql.org/about/news.791Patch · Vendor Advisory
- MITRE · CVE Programhttp://www.postgresql.org/support/security.htmlPatch · Vendor Advisory
- MITRE · CVE Programhttp://www.redhat.com/support/errata/RHSA-2007-0337.htmlThird Party Advisory
- MITRE · CVE Programhttp://www.securityfocus.com/bid/23618Third Party Advisory · VDB Entry
- MITRE · CVE Programhttp://www.securitytracker.com/id?1017974Third Party Advisory · VDB Entry
- MITRE · CVE Programhttp://www.trustix.org/errata/2007/0015/Broken Link
- MITRE · CVE Programhttp://www.ubuntu.com/usn/usn-454-1Third Party Advisory
- MITRE · CVE Programhttp://www.vupen.com/english/advisories/2007/1497Third Party Advisory
- MITRE · CVE Programhttp://www.vupen.com/english/advisories/2007/1549Third Party Advisory
- MITRE · CVE Programhttps://exchange.xforce.ibmcloud.com/vulnerabilities/33842Third Party Advisory · VDB Entry
- MITRE · CVE Programhttps://issues.rpath.com/browse/RPL-1292Broken Link
- MITRE · CVE Programhttps://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10090Third Party Advisory
Patch Availability(3)
| Vendor / Ecosystem | Fix (by version range) / Patch | Released | Source |
|---|---|---|---|
| ubuntu | postgresql-8.2 (8.2.4-0ubuntu0.7.04) @ feisty | 2026-05-31 | ubuntu |
| redhat | postgresql-0:8.1.9-1.el5 | 2007-05-08 | redhat |
| redhat | postgresql-0:8.1.9-1.el4s1.1 | 2007-05-03 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(3 across 2 ecosystems)
Debian:4.0(2)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| postgresql-7.4 | 1:7.4.16-1 |
| — |
| postgresql-8.1 | 8.1.8-1, 8.1.8-2 |
| — |
Debian:3.1(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| postgresql | 7.4.7-6sarge1, 7.4.7-6sarge2, 7.4.7-6sarge3, 7.4.7-6sarge4 |
| — |
All Vendor Advisories
(3)
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
Data Freshness Timeline
(refreshed 8× in last 7d / 13× in last 30d)
Each row is a time one of our pipelines fetched, updated or re-scored this CVE. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. An arrow marks a change the record states ("CVSS v3 → 9.1"); EPSS and GHSA rows show the values recorded at that time, not what changed (EPSS values are rounded; hover one for the exact figures). Most recent first.
Showing the most recent 76 of 88 refreshes on record for this CVE.
A repeat, a row identical to one the same pipeline wrote less than 10 seconds earlier, is not a separate refresh and is not counted. 24 repeat rows among the latest 100 are merged into the row they repeat. The 12 oldest rows on record are not shown and were not checked, so the counts can still include repeats.
- 2026-10-11 13:37 UTCEPSS rescoreEPSS 3.7% · 89th percentile
- 2026-10-10 19:53 UTCEPSS rescoreEPSS 3.7% · 89th percentile
- 2026-10-09 19:59 UTCEPSS rescoreEPSS 3.7% · 89th percentile
- 2026-10-08 16:32 UTCEPSS rescoreEPSS 3.7% · 89th percentile
- 2026-10-07 23:36 UTCEPSS rescoreEPSS 3.7% · 89th percentile
- 2026-10-06 15:08 UTCEPSS rescoreEPSS 3.7% · 89th percentile
- 2026-10-05 17:37 UTCEPSS rescoreEPSS 3.7% · 89th percentile
- 2026-10-04 23:15 UTCEPSS rescoreEPSS 3.7% · 89th percentile
- 2026-09-30 14:57 UTCEPSS rescoreEPSS 3.7% · 89th percentile
- 2026-09-29 07:40 UTCEG score recompute
- 2026-09-18 19:20 UTCEPSS rescoreEPSS 3.7% · 89th percentile
- 2026-09-15 03:04 UTCEPSS rescoreEPSS 3.7% · 89th percentile
- 2026-09-12 14:54 UTCEPSS rescoreEPSS 3.7% · 89th percentile
- 2026-09-10 09:24 UTCEPSS rescoreEPSS 3.7% · 89th percentile
- 2026-09-05 15:22 UTCEPSS rescoreEPSS 3.7% · 88th percentile
- 2026-09-04 13:54 UTCEPSS rescoreEPSS 3.7% · 88th percentile
- 2026-09-04 04:59 UTCEPSS rescoreEPSS 3.7% · 88th percentile
- 2026-08-30 01:14 UTCEPSS rescoreEPSS 3.7% · 88th percentile
- 2026-08-08 16:30 UTCEPSS rescoreEPSS 3.7% · 88th percentile
- 2026-08-07 16:20 UTCEPSS rescoreEPSS 3.7% · 88th percentile
- 2026-08-06 13:41 UTCEPSS rescoreEPSS 3.7% · 88th percentile
- 2026-08-05 19:11 UTCEPSS rescoreEPSS 3.7% · 88th percentile
- 2026-08-04 15:03 UTCEPSS rescoreEPSS 3.7% · 88th percentile
- 2026-08-04 10:28 UTCEPSS rescoreEPSS 3.7% · 88th percentile
- 2026-08-03 10:28 UTCEPSS rescoreEPSS 3.7% · 88th percentile
Show 51 moreShow fewer
- 2026-07-28 15:30 UTCEPSS rescoreEPSS 3.7% · 88th percentile
- 2026-07-26 13:32 UTCEG score recompute▲ 6.00
- 2026-07-25 14:11 UTCEPSS rescoreEPSS 3.7% · 88th percentile
- 2026-07-24 14:11 UTCEPSS rescoreEPSS 3.7% · 88th percentile
- 2026-07-23 00:53 UTCEG score recompute
- 2026-07-23 00:32 UTCEG score recompute
- 2026-07-22 23:57 UTCEG score recompute
- 2026-07-22 21:37 UTCEG score recompute
- 2026-07-22 14:03 UTCEPSS rescoreEPSS 3.7% · 88th percentile
- 2026-07-21 15:19 UTCEPSS rescoreEPSS 3.7% · 88th percentile
- 2026-07-20 17:02 UTCEPSS rescoreEPSS 3.7% · 88th percentile
- 2026-07-16 16:58 UTCEPSS rescoreEPSS 3.2% · 86th percentile
- 2026-07-15 16:54 UTCEPSS rescoreEPSS 3.2% · 86th percentile
- 2026-07-15 01:55 UTCEPSS rescoreEPSS 3.2% · 86th percentile
- 2026-07-13 22:25 UTCEPSS rescoreEPSS 3.2% · 86th percentile
- 2026-07-13 06:07 UTCEPSS rescoreEPSS 3.2% · 86th percentile
- 2026-07-08 15:09 UTCEPSS rescoreEPSS 3.2% · 86th percentile
- 2026-07-06 02:19 UTCEPSS rescoreEPSS 3.2% · 86th percentile
- 2026-07-05 02:26 UTCEPSS rescoreEPSS 3.2% · 86th percentile
- 2026-07-04 06:26 UTCEPSS rescoreEPSS 3.2% · 86th percentile
- 2026-07-02 14:00 UTCEPSS rescoreEPSS 3.2% · 86th percentile
- 2026-07-01 15:02 UTCEPSS rescoreEPSS 3.2% · 86th percentile
- 2026-06-30 23:18 UTCEPSS rescoreEPSS 3.2% · 86th percentile
- 2026-06-28 04:52 UTCEPSS rescoreEPSS 3.2% · 86th percentile
- 2026-06-25 13:46 UTCEPSS rescoreEPSS 3.2% · 86th percentile
- 2026-06-24 14:01 UTCEPSS rescoreEPSS 3.2% · 86th percentile
- 2026-06-21 01:56 UTCEPSS rescoreEPSS 3.2% · 86th percentile
- 2026-06-19 19:22 UTCEPSS rescoreEPSS 3.2% · 86th percentile
- 2026-06-18 17:49 UTCEPSS rescoreEPSS 3.2% · 86th percentile
- 2026-06-17 17:49 UTCEPSS rescoreEPSS 3.2% · 86th percentile
- 2026-06-16 17:49 UTCEPSS rescoreEPSS 3.2% · 86th percentile
- 2026-06-15 17:44 UTCEPSS rescoreEPSS 3.2% · 86th percentile
- 2026-06-14 23:13 UTCEPSS rescoreEPSS 1.7% · 82nd percentile
- 2026-06-13 22:57 UTCEPSS rescoreEPSS 1.7% · 82nd percentile
- 2026-06-12 23:08 UTCEPSS rescoreEPSS 1.7% · 82nd percentile
- 2026-06-08 14:13 UTCEPSS rescoreEPSS 1.7% · 82nd percentile
- 2026-06-07 15:21 UTCEPSS rescoreEPSS 1.7% · 82nd percentile
- 2026-06-06 13:44 UTCEPSS rescoreEPSS 1.7% · 82nd percentile
- 2026-06-05 22:44 UTCEPSS rescoreEPSS 1.7% · 82nd percentile
- 2026-06-05 06:07 UTCEPSS rescoreEPSS 1.7% · 82nd percentile
- 2026-06-04 13:09 UTCEPSS rescoreEPSS 1.7% · 82nd percentile
- 2026-06-02 20:10 UTCEPSS rescoreEPSS 1.7% · 82nd percentile
- 2026-06-01 13:49 UTCEPSS rescoreEPSS 1.7% · 82nd percentile
- 2026-05-31 22:28 UTCEPSS rescoreEPSS 1.7% · 82nd percentile
- 2026-05-31 03:05 UTCEG score recompute
- 2026-05-31 03:05 UTCVendor advisory
- 2026-05-31 03:05 UTCGHSA enrichmentGHSA-2hq5-m4w6-6x9c
- 2026-05-31 00:13 UTCEPSS rescoreEPSS 1.7% · 82nd percentile
- 2026-05-29 13:40 UTCEPSS rescoreEPSS 1.7% · 82nd percentile
- 2026-05-28 13:42 UTCEPSS rescoreEPSS 1.7% · 82nd percentile
- 2026-05-27 13:37 UTCEPSS rescoreEPSS 1.7% · 82nd percentile
Related CVEs(same product)
Same product
10 shownDebian:3.1:postgresql · Debian:4.0:postgresql-7.4
Frequently asked(4)
What is CVE-2007-2138?
When was CVE-2007-2138 made public?
Is CVE-2007-2138 actively exploited?
How do I remediate CVE-2007-2138?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2007-2138
Is Your Infrastructure Affected by CVE-2007-2138?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.