Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
☕
☕ Maven
Not in CISA KEV
MEDIUM severity

GHSA-rghw-6px2-fgwc — mongodb-driver

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.

Improper Certificate Validation in MongoDB

Also known asCVE-2021-20328
Published
May 24, 2022
Updated
Feb 16, 2024
Affected
14 pkgs
Patched
14 / 14
Exploits
None indexed
Exploitation data as of Sep 22, 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 CVEs37th percentile — riskier than 37% of all scored CVEsHighest risk

EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.

How urgent is this, really

GHSA-rghw-6px2-fgwc plotted by exploitation likelihood (EPSS) against impact (CVSS). The shaded corner — EPSS 50%+ and CVSS 7.0+ — is where this CVE doesn't sit, though severity or exploitability alone can still warrant action.

Where this sits among everything scored

Of 378,567 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Real counts from FIRST.org, not a sample — log-scaled since the landscape is heavily right-skewed.

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

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.

  4. How O3 protects you

    O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like GHSA-rghw-6px2-fgwc can be triaged on real exposure rather than presence alone.

Tailored to GHSA-rghw-6px2-fgwc. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.

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?

O3 Security finds GHSA-rghw-6px2-fgwc across Maven dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.

GHSA-rghw-6px2-fgwc: mongodb-driver | O3 Security