p PatchFirst

PatchFirst · Latest vulnerabilities

mongo-fdw vulnerabilities

Vulnerabilities published for mongo-fdw in the last 30 days: 2. Listed in the KEV catalogue: 0.

Filter vulnerabilities
Clear filters

Vulnerabilities: 2

  1. CVE-2026-62157

    Medium · CVSS 5.3EPSS 0.62%No fix published

    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.

    Published Updated
  2. CVE-2026-62155

    Medium · CVSS 5.3EPSS 0.62%No fix published

    mongo_fdw connection URI injection through unencoded option values

    mongo_fdw builds the mongodb:// connection URI by inserting option values without percent-encoding them, so URI metacharacters (@ : / ? # & =) in a value are parsed as part of the URI structure. A role that is not a superuser but has USAGE on a foreign server can set the username and password options in its own user mapping. An @ or other metacharacter in those values can point the connection at a host the attacker controls, allowing connection redirection, credential capture and man-in-the-middle attacks. Server-level options such as the address, database and replica set can be injected the same way. The issue is fixed in mongo_fdw 5.6.0. Fr

    Published Updated

Check your server

Check your installed stack and versions against the current vulnerability feeds.

Check your server →