MongoDB Java Driver
Application denial of service via cancellation race in reactive client-side encryption in MongoDB Java Driver
A use-after-free in the reactive client-side encryption component of the MongoDB Java Driver can cause native resources to be freed while an affected encrypted operation is still using them when the operation is cancelled. A party able to cause such an operation to be cancelled may cause the hosting application process to terminate. Reaching the issue requires an affected reactive encryption configuration that retrieves KMS credentials on demand.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4.2.0, < 5.11.1
Fixed in 5.11.1
- >= 1.4.0, < 5.11.1
Fixed in 5.11.1
- >= 4.6.0, < 5.11.1
Fixed in 5.11.1
Mitigation
Upgrade Java Driver to 5.11.1 or later.
Upgrade org.mongodb:mongodb-crypt Maven package to 5.11.1 or later.
Upgrade org.mongodb:mongodb-driver-reactivestreams Maven package to 5.11.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.