Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-62157— mongo_fdw out-of-bounds read when building an ObjectId from short _id values

Quick assessment

Affected
EnterpriseDB MongoDB Foreign Data Wrapper (mongo_fdw)
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

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 ca

CVSS 5.3 · Medium
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-62157

Vulnerability Information

Shenlong is analyzing...


Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
mongo_fdw out-of-bounds read when building an ObjectId from short _id values
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
跨界内存读
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
EnterpriseDB MongoDB Foreign Data Wrapper (mongo_fdw) 0 ~ 5.6.0 -

II. Public POCs for CVE-2026-62157

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-62157

请登录查看更多情报信息。

Other References for CVE-2026-62157 (2)

Same Patch Batch · EnterpriseDB · 2026-11-25 · 7 CVEs total

CVE-2026-62154 7.5 HIGH mysql_fdw runs SQL supplied by a malicious MySQL server during IMPORT FOREIGN SCHEMA
CVE-2026-62156 6.5 MEDIUM hdfs_fdw HiveQL injection through pushed-down IN and = ANY(array) string literals
CVE-2026-62153 6.4 MEDIUM mysql_fdw SQL injection through ANALYZE, IMPORT FOREIGN SCHEMA and the sql_mode option
CVE-2026-62152 5.8 MEDIUM mysql_fdw allows non-superusers to set connection options that run SQL and read server fil
CVE-2026-62151 5.8 MEDIUM mysql_fdw SQL injection through a multi-byte character set escaping bypass
CVE-2026-62155 5.3 MEDIUM mongo_fdw connection URI injection through unencoded option values

IV. Related Vulnerabilities