NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
☕
☕ Maven
Not in CISA KEV
MEDIUM severity

Improper Certificate Validation in MongoDBGHSA-rghw-6px2-fgwc

MEDIUM

GHSA-rghw-6px2-fgwc is a medium-severity (CVSS 6.8) CWE-295 vulnerability in org.mongodb:mongodb-driver. A fix is available for org.mongodb:mongodb-driver — see the affected versions and patch details below.

Also known asCVE-2021-20328
Published
Updated
Affected
14 pkgs
Patched
14 / 14
Exploits
None indexed
Exploitation data as of Nov 11, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • A successful exploit gives an attacker total control of the affected component, not partial access.
  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for GHSA-rghw-6px2-fgwc.

EPSS Exploitation Probability

via FIRST.org ↗
0.4%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs38th percentile — riskier than 38% of all scored CVEsHighest risk
0.00%0.31%0.62%0.94%0.1%0.4%May 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

14 pkgs affected
☕org.mongodb:mongodb-driver☕org.mongodb:mongodb-driver☕org.mongodb:mongodb-driver-sync☕org.mongodb:mongodb-driver-sync☕org.mongodb:mongodb-driver-sync☕org.mongodb:mongo-java-driver☕org.mongodb:mongo-java-driver☕org.mongodb:mongodb-driver-legacy+6 more

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.

Description

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.

Affected Packages

14 total 14 fixed
EcosystemPackageVulnerable rangeFix
☕Mavenorg.mongodb:mongodb-driver≥ 3.11.0&&< 3.11.33.11.3org.mongodb:mongodb-driver:3.11.3
☕Mavenorg.mongodb:mongodb-driver≥ 3.12.0&&< 3.12.83.12.8org.mongodb:mongodb-driver:3.12.8
☕Mavenorg.mongodb:mongodb-driver-sync≥ 4.0.0&&< 4.0.64.0.6org.mongodb:mongodb-driver-sync:4.0.6
☕Mavenorg.mongodb:mongodb-driver-sync≥ 4.1.0&&< 4.1.24.1.2org.mongodb:mongodb-driver-sync:4.1.2
☕Mavenorg.mongodb:mongodb-driver-sync≥ 4.2.0&&< 4.2.14.2.1org.mongodb:mongodb-driver-sync:4.2.1
☕Mavenorg.mongodb:mongo-java-driver≥ 3.11.0&&< 3.11.33.11.3org.mongodb:mongo-java-driver:3.11.3

Affected Products

2 products · 7 configurations
Application
java drivermongodb
≥ 4.2.0 && < 4.2.1
range
Application
quarkusquarkus
< 1.13.3
1 version
1.13.3

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.mongodb:mongodb-driver, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update org.mongodb:mongodb-driver to 3.11.3 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-rghw-6px2-fgwc is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatModerate
ProductFixed inAdvisory
Red Hat Integrationmongodb-driverRHSA-2021:4918
Red Hat Integration Camel Quarkus 2see advisoryRHSA-2021:4767
Red Hat Integration Debezium 1.4.2mongodb-driverRHSA-2021:0871

Frequently Asked Questions

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 n
O3 Security · Impact-Aware SCA

Is GHSA-rghw-6px2-fgwc in your dependencies?

Find it across Maven, including transitive dependencies.

Improper Certificate Validation in MongoDB (Medium 6.8)