Summary
A vulnerability in the MongoDB C# driver's DNS SRV connection-string resolution lets a party able to answer the client's DNS SRV query place a host outside the trusted domain in the client's server list. It affects versions >= 2.5.0 and < 3.14.1 and has a CVSS 4.0 score of 9.1 (critical).
What happened
This is an improper neutralization of delimiters (CWE-88) in the MongoDB C# driver's DNS SRV connection-string resolution. An unauthenticated party able to answer the client's DNS SRV query can cause a host outside the trusted domain to end up in the client's server list; according to the source's title, this is done through a comma in an SRV target, which bypasses the SRV parent-domain guard. When an application resolves the connection string through the affected API and connects with the result, application data, authentication credentials and query results may pass through that host.
Why it matters
According to the source, this may result in unintended disclosure of data and credentials and in forged query results. The score is CVSS 4.0: 9.1 (vector CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N), assigned by CNA:mongodb, with critical severity. CISA's KEV catalog does not list this vulnerability as actively exploited, and the source provides no evidence of exploitation.
Affected products and versions
MongoDB C# Driver, versions >= 2.5.0, < 3.14.1.
| Product | Versions | Fixed in |
|---|---|---|
| MongoDB C# Driver | >= 2.5.0, < 3.14.1 | — |
Action recommended by the source
The source does not state a fixed version or a specific mitigation, although the affected range ends before 3.14.1. Readers are advised to consult the vendor's tracking entry: https://jira.mongodb.org/browse/CSHARP-6283
Sources and references
- https://jira.mongodb.org/browse/CSHARP-6283 — CVE Program
Weaknesses (CWE): CWE-88
Relevant change history
Advisory correction
The preliminary version was replaced by the full write-up.
Published
Preliminary advisory published.