Out-of-bounds write in MongoDB - CVE-2021-32040

 

Out-of-bounds write in MongoDB - CVE-2021-32040

Published: March 27, 2024


Vulnerability identifier: #VU87867
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-32040
CWE-ID: CWE-787
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service attack.

The vulnerability exists due to extremely long aggregation pipeline in conjunction with a specific stage/operator. A remote attacker can create a specially crafted file, trick the victim into opening it using the affected software, trigger an out-of-bounds write and perform a denial of service attack.


Affected software

MongoDB
Storage Copy Data Management
IBM Spectrum Protect Plus

How to mitigate CVE-2021-32040

Install updates from vendor's website.

MongoDB - addressed in versions 4.2.16, 4.4.29, 5.0.4
Storage Copy Data Management - update to 2.2.23.0
IBM Spectrum Protect Plus - update to 10.1.6.4

External References

Related Security Bulletins