mongo_fdw converts _id values to 12-byte MongoDB ObjectIds with libbson functions that read a fixed number of bytes
Source GCVE Database
Not known to be exploited · CVSS 5.3 Medium : upgrade to 5.6.0 when convenient.
Data as of 25 Nov 2026, 19:10 UTC
Thin evidence
One scorer or none| CNA (EDB) | CVSS 4.0 | 5.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:NExploitation evidence
Disclosed: evidence found.
CVE published 25 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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 MongoDB Foreign Data Wrapper (mongo_fdw) to 5.6.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| EnterpriseDBMongoDB Foreign Data Wrapper (mongo_fdw) | Affected
| Fixed in
|
GitHubMongoDB Foreign Data Wrapper (mongo_fdw)pkg:github/MongoDB Foreign Data Wrapper (mongo_fdw)Other threats | Affected
| Fixed in
|
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 input validation enforces acceptance of only valid 24-character hexadecimal ObjectIds and 12-byte bytea values, preventing out-of-bounds reads. No other mitigation is indicated.
Description
The mongo_fdw extension for PostgreSQL improperly handles _id values by converting them to 12-byte MongoDB ObjectIds using libbson functions that do not verify input length. This can cause out-of-bounds reads when _id values are shorter than expected, potentially crashing the PostgreSQL backend or leaking adjacent memory in queries sent to MongoDB. The vulnerability affects any user able to supply an _id value or predicate on a foreign table. The issue is resolved in mongo_fdw version 5.6.0, which enforces strict validation of ObjectId formats.