Description
MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMonkey, which allows remote authenticated users to cause a denial of service (invalid memory access and server crash) or execute arbitrary code via a crafted memory address in the first argument.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat MRG 2 | mongodb +1 | 1.6.4-6.el6 | RHSA-2013:1170 |
| Red Hat MRG 2 | pymongo +1 | 1.9-11.el6 | RHSA-2013:1170 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
MongoDB nativeHelper.apply Remote Code Execution
exploit/linux/misc/mongod_native_helper
Exploit-DB 2
- MongoDB - nativeHelper.apply Remote Code Execution (Metasploit) EDB-24935 · remote · Apr 8, 2013 · verified
- MongoDB 2.2.3 - nativeHelper.apply Remote Code Execution EDB-24947 · remote · Apr 8, 2013 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 2
- WID-SEC-2026-2726 Red Hat Enterprise MRG: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 10, 2026
- RHSA-2013:1170 Red Hat Security Advisory: mongodb and pymongo security and enhancement update Red Hat Security Advisories (RHSA) · Jan 29, 2026
References
- RHSA-2013:1170 vendor-advisory
- 24947 exploit
- [oss-security] 20130325 Re: CVE Request: Mongo DB mailing-list
- FEDORA-2013-4539 vendor-advisory
- http://blog.scrt.ch/2013/03/24/mongodb-0-day-ssji-to-rce/
- 24935 exploit
- https://jira.mongodb.org/browse/SERVER-9124
- http://www.mongodb.org/about/alerts/
- FEDORA-2013-4531 vendor-advisory