MongoDB Java driver client-side field level encryption not verifying KMS host name
Key facts
- Attack vector
- Adjacent network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Spoofing
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Partial Red Hat: 3 fixed, 3 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-295.
Summary
Specific versions of the Java driver that support client-side field level encryption (CSFLE) fail to perform correct host name verification on the KMS server’s certificate. This vulnerability in combination with a privileged network position active MITM attack could result in interception of traffic between the Java driver and the KMS service rendering Field Level Encryption ineffective. This issue was discovered during internal testing and affects all versions of the Java driver that support CSFLE. The Java async, Scala, and reactive streams drivers are not impacted. This vulnerability does not impact driver traffic payloads with CSFLE-supported key services originating from applications residing inside the AWS, GCP, and Azure network fabrics due to compensating controls in these environments. This issue does not impact driver workloads that don’t use Field Level Encryption.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| MongoDB | mongo-java-driver | 3.11 – 3.11.2; 3.12 – 3.12.7 | — | No fix listed | CNA |
| MongoDB | mongodb-driver | 3.11 – 3.11.2; 3.12 – 3.12.7 | — | No fix listed | CNA |
| MongoDB | mongodb-driver-sync | 4.2.0; 3.11 – 3.11.2; 3.12 – 3.12.7; 4.0 – 4.0.5; 4.1 – 4.1.1 | — | No fix listed | CNA |
| MongoDB | mongodb-driver-legacy | 4.2.0; 3.11 – 3.11.2; 3.12 – 3.12.7; 4.0 – 4.0.5; 4.1 – 4.1.1 | — | No fix listed | CNA |
| — | org.mongodb:mongodb-driver (Maven) | 3.11.0 to before 3.11.3 | 3.11.3 | Patch available | GHSA-rghw-6px2-fgwc |
| — | org.mongodb:mongodb-driver (Maven) | 3.12.0 to before 3.12.8 | 3.12.8 | Patch available | GHSA-rghw-6px2-fgwc |
| — | org.mongodb:mongodb-driver-sync (Maven) | 4.0.0 to before 4.0.6 | 4.0.6 | Patch available | GHSA-rghw-6px2-fgwc |
| — | org.mongodb:mongodb-driver-sync (Maven) | 4.1.0 to before 4.1.2 | 4.1.2 | Patch available | GHSA-rghw-6px2-fgwc |
| — | org.mongodb:mongodb-driver-sync (Maven) | 4.2.0 to before 4.2.1 | 4.2.1 | Patch available | GHSA-rghw-6px2-fgwc |
| — | org.mongodb:mongo-java-driver (Maven) | 3.11.0 to before 3.11.3 | 3.11.3 | Patch available | GHSA-rghw-6px2-fgwc |
| — | org.mongodb:mongo-java-driver (Maven) | 3.12.0 to before 3.12.8 | 3.12.8 | Patch available | GHSA-rghw-6px2-fgwc |
| — | org.mongodb:mongodb-driver-legacy (Maven) | 4.0.0 to before 4.0.6 | 4.0.6 | Patch available | GHSA-rghw-6px2-fgwc |
| — | org.mongodb:mongodb-driver-legacy (Maven) | 4.1.0 to before 4.1.2 | 4.1.2 | Patch available | GHSA-rghw-6px2-fgwc |
| — | org.mongodb:mongodb-driver-legacy (Maven) | 3.11.0 to before 3.11.3 | 3.11.3 | Patch available | GHSA-rghw-6px2-fgwc |
| — | org.mongodb:mongodb-driver-legacy (Maven) | 3.12.0 to before 3.12.8 | 3.12.8 | Patch available | GHSA-rghw-6px2-fgwc |
| — | org.mongodb:mongodb-driver-sync (Maven) | 3.12.0 to before 3.12.8 | 3.12.8 | Patch available | GHSA-rghw-6px2-fgwc |
| — | org.mongodb:mongodb-driver-sync (Maven) | 3.11.0 to before 3.11.3 | 3.11.3 | Patch available | GHSA-rghw-6px2-fgwc |
| — | org.mongodb:mongodb-driver-legacy (Maven) | 4.2.0 to before 4.2.1 | 4.2.1 | Patch available | GHSA-rghw-6px2-fgwc |
- mongo-java-driver VendorMongoDB Affected 3.11 – 3.11.2; 3.12 – 3.12.7 Fixed in — No fix listed CNA
- mongodb-driver VendorMongoDB Affected 3.11 – 3.11.2; 3.12 – 3.12.7 Fixed in — No fix listed CNA
- mongodb-driver-sync VendorMongoDB Affected 4.2.0; 3.11 – 3.11.2; 3.12 – 3.12.7; 4.0 – 4.0.5; 4.1 – 4.1.1 Fixed in — No fix listed CNA
- mongodb-driver-legacy VendorMongoDB Affected 4.2.0; 3.11 – 3.11.2; 3.12 – 3.12.7; 4.0 – 4.0.5; 4.1 – 4.1.1 Fixed in — No fix listed CNA
- org.mongodb:mongodb-driver (Maven) Vendor— Affected 3.11.0 to before 3.11.3 Fixed in 3.11.3 Patch available GHSA-rghw-6px2-fgwc
- org.mongodb:mongodb-driver (Maven) Vendor— Affected 3.12.0 to before 3.12.8 Fixed in 3.12.8 Patch available GHSA-rghw-6px2-fgwc
- org.mongodb:mongodb-driver-sync (Maven) Vendor— Affected 4.0.0 to before 4.0.6 Fixed in 4.0.6 Patch available GHSA-rghw-6px2-fgwc
- org.mongodb:mongodb-driver-sync (Maven) Vendor— Affected 4.1.0 to before 4.1.2 Fixed in 4.1.2 Patch available GHSA-rghw-6px2-fgwc
- org.mongodb:mongodb-driver-sync (Maven) Vendor— Affected 4.2.0 to before 4.2.1 Fixed in 4.2.1 Patch available GHSA-rghw-6px2-fgwc
- org.mongodb:mongo-java-driver (Maven) Vendor— Affected 3.11.0 to before 3.11.3 Fixed in 3.11.3 Patch available GHSA-rghw-6px2-fgwc
- org.mongodb:mongo-java-driver (Maven) Vendor— Affected 3.12.0 to before 3.12.8 Fixed in 3.12.8 Patch available GHSA-rghw-6px2-fgwc
- org.mongodb:mongodb-driver-legacy (Maven) Vendor— Affected 4.0.0 to before 4.0.6 Fixed in 4.0.6 Patch available GHSA-rghw-6px2-fgwc
- org.mongodb:mongodb-driver-legacy (Maven) Vendor— Affected 4.1.0 to before 4.1.2 Fixed in 4.1.2 Patch available GHSA-rghw-6px2-fgwc
- org.mongodb:mongodb-driver-legacy (Maven) Vendor— Affected 3.11.0 to before 3.11.3 Fixed in 3.11.3 Patch available GHSA-rghw-6px2-fgwc
- org.mongodb:mongodb-driver-legacy (Maven) Vendor— Affected 3.12.0 to before 3.12.8 Fixed in 3.12.8 Patch available GHSA-rghw-6px2-fgwc
- org.mongodb:mongodb-driver-sync (Maven) Vendor— Affected 3.12.0 to before 3.12.8 Fixed in 3.12.8 Patch available GHSA-rghw-6px2-fgwc
- org.mongodb:mongodb-driver-sync (Maven) Vendor— Affected 3.11.0 to before 3.11.3 Fixed in 3.11.3 Patch available GHSA-rghw-6px2-fgwc
- org.mongodb:mongodb-driver-legacy (Maven) Vendor— Affected 4.2.0 to before 4.2.1 Fixed in 4.2.1 Patch available GHSA-rghw-6px2-fgwc
CPE configurations NVD · 3
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:mongodb:java_driver:*:*:*:*:*:mongodb:*:* | 3.11.0 to before 3.11.3; 3.12.0 to before 3.12.8; 4.0.0 to before 4.0.6; 4.1.0 to before 4.1.2; 4.2.0 to before 4.2.1 | Vulnerable | MongoDB |
| cpe:2.3:a:quarkus:quarkus:*:*:*:*:*:*:*:* | before 1.13.3 | Vulnerable | quarkusio |
| cpe:2.3:a:quarkus:quarkus:1.13.3:*:*:*:*:*:*:* | 1.13.3 | Vulnerable | quarkusio |
- cpe:2.3:a:mongodb:java_driver:*:*:*:*:*:mongodb:*:* Versions 3.11.0 to before 3.11.3; 3.12.0 to before 3.12.8; 4.0.0 to before 4.0.6; 4.1.0 to before 4.1.2; 4.2.0 to before 4.2.1 Vulnerable ·MongoDB
- cpe:2.3:a:quarkus:quarkus:*:*:*:*:*:*:*:* Versions before 1.13.3 Vulnerable ·quarkusio
- cpe:2.3:a:quarkus:quarkus:1.13.3:*:*:*:*:*:*:* Versions 1.13.3 Vulnerable ·quarkusio
Remediation
- Fix · GHSA-rghw-6px2-fgwc org.mongodb:mongodb-driver (Maven) Fixed in 3.11.3 Advisory →
- Fix · GHSA-rghw-6px2-fgwc org.mongodb:mongodb-driver (Maven) Fixed in 3.12.8 Advisory →
- Fix · GHSA-rghw-6px2-fgwc org.mongodb:mongodb-driver-sync (Maven) Fixed in 4.0.6 Advisory →
- Fix · GHSA-rghw-6px2-fgwc org.mongodb:mongodb-driver-sync (Maven) Fixed in 4.1.2 Advisory →
- Fix · GHSA-rghw-6px2-fgwc org.mongodb:mongodb-driver-sync (Maven) Fixed in 4.2.1 Advisory →
- Fix · GHSA-rghw-6px2-fgwc org.mongodb:mongo-java-driver (Maven) Fixed in 3.11.3 Advisory →
- Fix · GHSA-rghw-6px2-fgwc org.mongodb:mongo-java-driver (Maven) Fixed in 3.12.8 Advisory →
- Fix · GHSA-rghw-6px2-fgwc org.mongodb:mongodb-driver-legacy (Maven) Fixed in 4.0.6 Advisory →
- Fix · GHSA-rghw-6px2-fgwc org.mongodb:mongodb-driver-legacy (Maven) Fixed in 4.1.2 Advisory →
- Fix · GHSA-rghw-6px2-fgwc org.mongodb:mongodb-driver-legacy (Maven) Fixed in 3.11.3 Advisory →
- Fix · GHSA-rghw-6px2-fgwc org.mongodb:mongodb-driver-legacy (Maven) Fixed in 3.12.8 Advisory →
- Fix · GHSA-rghw-6px2-fgwc org.mongodb:mongodb-driver-sync (Maven) Fixed in 3.12.8 Advisory →
- Fix · GHSA-rghw-6px2-fgwc org.mongodb:mongodb-driver-sync (Maven) Fixed in 3.11.3 Advisory →
- Fix · GHSA-rghw-6px2-fgwc org.mongodb:mongodb-driver-legacy (Maven) Fixed in 4.2.1 Advisory →
Red Hat 3 advisories
- RHSA-2021:4918 Released 2021-12-02 · Red Hat rating ModerateRed Hat Integration Camel-K 1.6 release and security update
- Red Hat Integration
- RHSA-2021:4767 Released 2021-11-23 · Red Hat rating ModerateRed Hat Integration Camel Extensions for Quarkus GA security update
- Red Hat Integration Camel Quarkus 2
- RHSA-2021:0871 Released 2021-03-16 · Red Hat rating ModerateRed Hat Integration Debezium 1.4.2 security update
- Red Hat Integration Debezium 1.4.2
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| A-MQ Clients 2 | Affected | No fix planned: Will not fix |
| Red Hat Integration Camel Quarkus 1 | Affected | No fix yet |
| Red Hat build of Debezium 1 | Affected | No fix yet |
| Red Hat Integration | Fixed | RHSA-2021:4918 |
| Red Hat Integration Camel Quarkus 2 | Fixed | RHSA-2021:4767 |
| Red Hat Integration Debezium 1.4.2 | Fixed | RHSA-2021:0871 |
Not affected: 6 products
- Red Hat Fuse 7
- Red Hat JBoss Data Virtualization 6
- Red Hat JBoss Enterprise Application Platform 7
- Red Hat JBoss Fuse 6
- Red Hat OpenShift Container Platform 4
- Red Hat Software Collections
Timeline
- 2026-10-02 Threatist record created from CVE-2021-20328
- 2026-10-03 Alias added: GHSA-rghw-6px2-fgwc
References
More MongoDB Java Driver vulnerabilities
- TI-2026-60057 Application denial of service via cancellation race in reactive client-side encryption in MongoDB Java Driver CVSS 4.0HIGH 8.2
- TI-2026-15335 Cleartext Storage of Sensitive Information in MongoDB Driver Logging During Client Initialization CVSS 4.0HIGH 8.2
- TI-2026-60058 GridFS data disclosure and deletion via query-operator injection in file IDs in the MongoDB Java Driver CVSS 4.0MEDIUM 6.1
Sources
- CVE-2021-20328 · CVE Program
- CVE-2021-20328 · NVD
- FIRST EPSS
- GHSA-rghw-6px2-fgwc · GitHub Advisory Database · CC BY 4.0
- CVE-2021-20328 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences