Skip to content

CVE-2025-12893 Improper Certificate Validation May Allow Successful TLS Handshaking Despite Invalid Extended Key Usage Fields in MongoDB Server

LowCVSS 2.3 EPSS 0.17%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

Description

Clients may successfully perform a TLS handshake with a MongoDB server despite presenting a client certificate not aligning with the documented Extended Key Usage (EKU) requirements. A certificate that specifies extendedKeyUsage but is missing extendedKeyUsage = clientAuth may still be successfully authenticated via the TLS handshake as a client. This issue is specific to MongoDB servers running on Windows or Apple as the expected validation behavior functions correctly on Linux systems.

Additionally, MongoDB servers may successfully establish egress TLS connections with servers that present server certificates not aligning with the documented Extended Key Usage (EKU) requirements. A certificate that specifies extendedKeyUsage but is missing extendedKeyUsage = serverAuth may still be successfully authenticated via the TLS handshake as a server. This issue is specific to MongoDB servers running on Apple as the expected validation behavior functions correctly on both Linux and Windows systems.

This vulnerability affects MongoDB Server v7.0 versions prior to 7.0.26, MongoDB Server v8.0 versions prior to 8.0.16 and MongoDB Server v8.2 versions prior to 8.2.2

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
MongoDB Server >= 7.0, < 7.0.26; >= 8.0, < 8.0.16; >= 8.2, < 8.2.2 7.0.26, 8.0.16, 8.2.2 Fixed
mongodb/mongodb >= 7.0.0, < 7.0.26; >= 8.0.0, < 8.0.16; >= 8.2.0, < 8.2.2 7.0.26, 8.0.16, 8.2.2 Fixed

Affected products

ProductAffected versionsFixed in
MongoDB Server >= 7.0, < 7.0.26 7.0.26
MongoDB Server >= 8.0, < 8.0.16 8.0.16
MongoDB Server >= 8.2, < 8.2.2 8.2.2
mongodb/mongodb >= 7.0.0, < 7.0.26 7.0.26
mongodb/mongodb >= 8.0.0, < 8.0.16 8.0.16
mongodb/mongodb >= 8.2.0, < 8.2.2 8.2.2

References