MongoDB Python Driver
Connection redirection via percent-encoded delimiter injection in connection string hosts
PyMongo's connection string parsing decodes percent-encoded characters in the host portion before the host list is separated on its delimiters. When an application places a hostname value supplied by an unauthenticated party into a connection string, that party may cause additional servers of their choosing to be added to the application's database client. The application may then send its authentication exchange and database operations to one of those servers, which can observe limited information and return altered results.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.3high · scored by CNA · CWE-177
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
MongoDB Python Driver
- < 4.18.2
Fixed in 4.18.2
Mitigation
Upgrade Python Driver to 4.18.2 or later.
References
- Vendor advisory github.com/mongodb/mongo-python-driver/securit…
- Release notes github.com/mongodb/mongo-python-driver/release…
- Release notes github.com/mongodb/mongo-python-driver/blob/4.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.