Summary
The MongoDB Java driver applies its DNS seedlist domain restriction to a value that is later interpreted differently, so the name that is checked and the name that is used can differ. The source rates it critical with a CVSS 4.0 score of 9.1.
What happened
The MongoDB Java driver applies its DNS seedlist domain restriction to a record value that is re-interpreted differently when the connection target is parsed, so the name that is checked and the name that is used can differ (CWE-436). An unauthenticated party who can set or forge the DNS service record for the seed domain in a connection string can cause the driver to direct its session to an unrelated host and complete certificate verification against that host.
Why it matters
According to the source, this may result in unintended disclosure of application data and of configured database credentials, and in unintended content being returned to the application as query results. The score is CVSS 4.0 9.1 (CNA: mongodb), with 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, and critical severity. CISA's KEV catalog does not list active exploitation of this vulnerability according to the available information, and the source does not state evidence that it is a zero-day.
Affected products and versions
MongoDB Java Driver, versions >= 3.6.0 and < 5.13.0.
| Product | Versions | Fixed in |
|---|---|---|
| MongoDB Java Driver | >= 3.6.0, < 5.13.0 | — |
Action recommended by the source
The source does not state a fixed version or a specific mitigation, although the affected range ends before 5.13.0. The vendor reference can be consulted: https://jira.mongodb.org/browse/JAVA-6347.
Sources and references
- https://jira.mongodb.org/browse/JAVA-6347 — CVE Program
Weaknesses (CWE): CWE-436
Relevant change history
Advisory correction
The preliminary version was replaced by the full write-up.
Published
Preliminary advisory published.