Read the docs

Connection URI injection in EnterpriseDB mongo_fdw via unencoded options

Priority LOW 25CWE-74Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Code execution
Confidentiality · integrity · availability
Low · Low · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-88.

Summary

EnterpriseDB MongoDB Foreign Data Wrapper (mongo_fdw) before 5.6.0 builds its mongodb:// connection URI without percent-encoding option values, so URI metacharacters in those values are parsed as URI structure. A non-superuser role with USAGE on a foreign server can set the username and password in its own user mapping, and an @ or similar character can redirect the connection to an attacker-controlled host. This enables connection redirection, credential capture and man-in-the-middle attacks, and server-level options such as the address, database and replica set can be injected the same way. The flaw is classified under CWE-74 and CWE-88.

Written with Claude Haiku 5.5 from the sources below · 2026-11-25

Description from the CNA

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. From mongo_fdw 5.6.0, mongo_fdw builds the URI with the libmongoc URI API, which encodes credentials, and rejects URI metacharacters in the other option values.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00617 43rd percentileScored 2026-11-30
Fix Fixed MongoDB Foreign Data Wrapper (mongo_fdw) (EnterpriseDB): 5.6.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
EnterpriseDBMongoDB Foreign Data Wrapper (mongo_fdw)before 5.6.05.6.0Patch availableCNA
  • MongoDB Foreign Data Wrapper (mongo_fdw) VendorEnterpriseDB Affected before 5.6.0 Fixed in 5.6.0 Patch available CNA

Remediation

Upgrade EnterpriseDB MongoDB Foreign Data Wrapper (mongo_fdw) to 5.6.0, which builds the URI with the libmongoc URI API and rejects URI metacharacters in other option values. The sources list no fixed version for any other release line.

Written with Claude Haiku 5.5 from the sources below · 2026-11-25

  • Fix · CNA MongoDB Foreign Data Wrapper (mongo_fdw) (EnterpriseDB) Fixed in 5.6.0

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    EnterpriseDB MongoDB Foreign Data Wrapper (mongo_fdw) 5.6.0

    2 records Highest priority Priority LOW 2 LOW

    Other records, highest priority first

    • TI-2026-98319 Out-of-bounds read in mongo_fdw when building MongoDB ObjectIdsPriority LOW 25

Timeline

  1. 2026-11-25 Threatist record created from CVE-2026-62155
  2. 2026-11-25 CISA SSVC decision points changed
  3. 2026-11-25 Alias added: GHSA-68g8-hj67-cq52

References

  • TI-2023-21738 An issue was discovered in EnterpriseDB Postgres Advanced Server (EPAS) before 11.21.32… CVSS 3.1CRITICAL 9.8
  • TI-2026-95912 Untrusted search path in Postgres Enterprise Manager allows superuser SQL CVSS 4.0CRITICAL 9.4
  • TI-2026-95911 Postgres Enterprise Manager agents can change other agents' jobs CVSS 4.0CRITICAL 9.4
  • TI-2026-95910 PEM agent role grants file read and write on the PEM server host CVSS 4.0CRITICAL 9.4
  • TI-2023-21739 An issue was discovered in EnterpriseDB Postgres Advanced Server (EPAS) before 11.21.32… CVSS 3.1HIGH 8.8
  • TI-2026-37400 When applying replicated changes for a row that is missing one or more columns, pglogical… CVSS 4.0CRITICAL 9.0
See all 41 →

Sources