Home / EnterpriseDB / MongoDB Foreign Data Wrapper (mongo_fdw) / CVE-2026-62157
CVE-2026-62157: is it exploited, and which versions of EnterpriseDB MongoDB Foreign Data Wrapper (mongo_fdw) are affected and fixed?
CVE-2026-62157 is an out-of-bounds read vulnerability in EnterpriseDB MongoDB Foreign Data Wrapper (mongo_fdw). It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:39 UTC). Affected: MongoDB Foreign Data Wrapper (mongo_fdw) before 5.6.0 (CVE record by EDB). Fixed in 5.6.0 (CVE record by EDB). Severity: Medium (5.3, CVSS 4.0, from EDB).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:39 UTC, CVE record November 25, 2026, 17:21 UTC and NVD November 25, 2026, 21:08 UTC.
What is CVE-2026-62157?
mongo_fdw out-of-bounds read when building an ObjectId from short _id values
mongo_fdw converts _id values to 12-byte MongoDB ObjectIds with libbson functions that read a fixed number of bytes without checking the input length: 12 bytes for a bytea _id, and 24 characters for name-typed values and $oid fields in JSON. A shorter value causes a read past the end of the input, which can crash the PostgreSQL backend or include adjacent memory in the query sent to MongoDB. Any user who can supply an _id value or predicate on a foreign table can trigger it. The issue is fixed in mongo_fdw 5.6.0. From mongo_fdw 5.6.0, mongo_fdw accepts only valid 24-character hexadecimal ObjectIds and 12-byte bytea values.
From the CVE record by EDB, last updated November 25, 2026, 17:07 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| EnterpriseDB | MongoDB Foreign Data Wrapper (mongo_fdw) | before 5.6.0 | 5.6.0 |
As the CVE record by EDB states it, last updated November 25, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2026-62157?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.3 | CVSS 4.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 | EDB |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-62157 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, November 25, 2026)
- EPSS
- 0.62% probability of exploitation activity in the next 30 days, percentile 51.2 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-125 Out-of-bounds Read
Where are the vendor advisories and references?
- https://www.enterprisedb.com/docs/security/advisories/cve202662157/ vendor-advisory
- https://github.com/EnterpriseDB/mongo_fdw/releases/tag/REL-5_6_0 release-notes, patch
When was it published, and where is the official record?
- Reserved
- July 13, 2026
- Published
- November 25, 2026, 16:36 UTC
- CVE record updated
- November 25, 2026, 17:07 UTC by EDB
- NVD
- Deferred, last modified November 25, 2026, 20:16 UTC
- Last checked
- CVE list November 25, 2026, 17:21 UTC; NVD November 25, 2026, 21:08 UTC; KEV December 3, 2026, 16:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect MongoDB Foreign Data Wrapper (mongo_fdw)?
- Nov 25, 2026CVE-2026-62155 EnterpriseDB MongoDB Foreign Data Wrapper (mongo_fdw): injection
Every CVE in MongoDB Foreign Data Wrapper (mongo_fdw)
Questions about CVE-2026-62157
Is CVE-2026-62157 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:39 UTC. FIRST's EPSS gives it a 0.62% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of EnterpriseDB MongoDB Foreign Data Wrapper (mongo_fdw) are affected by CVE-2026-62157?
MongoDB Foreign Data Wrapper (mongo_fdw) before 5.6.0, per the CVE record by EDB. The tables above give every range the sources list.
Which version fixes CVE-2026-62157?
5.6.0, per the CVE record by EDB. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-62157?
Medium (5.3, CVSS 4.0, from EDB). The severity table above shows each score with its source.
Where is the official record of CVE-2026-62157?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.