Skip to main content
VulnerabilityPublished

CVE-2026-62157: EnterpriseDB MongoDB Foreign Data Wrapper (mongo_fdw) · Out-of-bounds Read

Affects EnterpriseDB MongoDB Foreign Data Wrapper (mongo_fdw)Source CVE Database V5

0
Compare

Not known to be exploited · CVSS 5.3 Medium : upgrade to 5.6.0 when convenient.

Data as of 25 Nov 2026, 17:24 UTC

CVSS 4.0 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (EDB)CVSS 4.05.3
Patch
Available – fixed in 5.6.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 25 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 25 Nov 2026.

What to do

Upgrade EnterpriseDB MongoDB Foreign Data Wrapper (mongo_fdw) to 5.6.0.

Affected software

ProductAffectedFixed in
EnterpriseDBMongoDB Foreign Data Wrapper (mongo_fdw)Affected
  • <5.6.0
Fixed in
  • 5.6.0
GitHubMongoDB Foreign Data Wrapper (mongo_fdw)pkg:github/MongoDB Foreign Data Wrapper (mongo_fdw)Other threatsAffected
  • <5.6.0
Fixed in
  • 5.6.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade mongo_fdw to version 5.6.0 or later, where the vulnerability is fixed by enforcing strict validation of ObjectId inputs. No other mitigation is required as the fix addresses the root cause. Users should ensure that only valid 24-character hexadecimal ObjectIds and 12-byte bytea values are accepted.

Description

CVE-2026-62157 is an out-of-bounds read vulnerability in EnterpriseDB's MongoDB Foreign Data Wrapper (mongo_fdw) prior to version 5.6.0. The issue arises because mongo_fdw converts _id values to 12-byte MongoDB ObjectIds using libbson functions that read a fixed number of bytes without verifying input length. If the input is shorter than expected, it can cause a read past the end of the input buffer, potentially crashing the PostgreSQL backend or leaking adjacent memory in queries sent to MongoDB. This vulnerability affects any user able to supply an _id value or predicate on a foreign table. The issue is fixed in mongo_fdw version 5.6.0, which enforces strict validation of ObjectId formats.

References

Community reviews

Loading reviews…