Miggo Logo

CVE-2021-20328: Improper Certificate Validation in MongoDB

6.8

CVSS Score
3.1

Basic Information

EPSS Score
0.33273%
Published
5/24/2022
Updated
2/13/2024
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.mongodb:mongodb-drivermaven>= 3.11.0, <= 3.11.23.11.3
org.mongodb:mongodb-drivermaven>= 3.12.0, <= 3.12.73.12.8
org.mongodb:mongodb-driver-syncmaven>= 4.0.0, <= 4.0.54.0.6
org.mongodb:mongodb-driver-syncmaven>= 4.1.0, <= 4.1.14.1.2
org.mongodb:mongodb-driver-syncmaven= 4.2.04.2.1
org.mongodb:mongo-java-drivermaven>= 3.11.0, <= 3.11.23.11.3
org.mongodb:mongo-java-drivermaven>= 3.12.0, <= 3.12.73.12.8
org.mongodb:mongodb-driver-legacymaven>= 4.0.0, <= 4.0.54.0.6
org.mongodb:mongodb-driver-legacymaven>= 4.1.0, <= 4.1.14.1.2
org.mongodb:mongodb-driver-legacymaven>= 3.11.0, <= 3.11.23.11.3
org.mongodb:mongodb-driver-legacymaven>= 3.12.0, <= 3.12.73.12.8
org.mongodb:mongodb-driver-syncmaven>= 3.12.0, <= 3.12.73.12.8
org.mongodb:mongodb-driver-syncmaven>= 3.11.0, <= 3.11.23.11.3
org.mongodb:mongodb-driver-legacymaven= 4.2.04.2.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from missing hostname verification during KMS SSL handshakes. Analysis of MongoDB's architecture indicates certificate validation would occur in KMS provider implementations. The AbstractKmsProvider class is a likely location for SSL context configuration, and ClientEncryption would be involved in client initialization. The CVE description explicitly calls out missing hostname validation, which maps to SSL context creation points in KMS communication paths. While exact patch details aren't visible, the KMS provider framework and client initialization are the logical locations for this security control based on MongoDB's architecture and the vulnerability description.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

Sp**i*i* v*rsions o* t** J*v* *riv*r t**t support *li*nt-si** *i*l* l*v*l *n*ryption (*S*L*) **il to p*r*orm *orr**t *ost n*m* v*ri*i**tion on t** KMS s*rv*r’s **rti*i**t*. T*is vuln*r**ility in *om*in*tion wit* * privil**** n*twork position **tiv* M

Reasoning

T** vuln*r**ility st*ms *rom missin* *ostn*m* v*ri*i**tion *urin* KMS SSL **n*s**k*s. *n*lysis o* Mon*o**'s *r**it**tur* in*i**t*s **rti*i**t* v*li**tion woul* o**ur in KMS provi**r impl*m*nt*tions. T** `**str**tKmsProvi**r` *l*ss is * lik*ly lo**tio