{"id":"CVE-2019-10758","published":"2019-12-24T22:15:11Z","modified":"2026-06-17T02:11:36Z","title":"MongoDB mongo-express Remote Code Execution Vulnerability","vendor":"MongoDB","product":"mongo-express","tier":"core","eol":null,"description":{"text":"mongo-express before 0.54.0 is vulnerable to Remote Code Execution via endpoints that uses the `toBSON` method. A misuse of the `vm` dependency to perform `exec` commands in a non-safe environment.","provenance":"source","from":"NVD"},"summary":{"text":"The mongo-express web-based MongoDB administration interface, before version 0.54.0, contains a remote code execution flaw in endpoints that use the toBSON method, where the vm dependency is misused to run exec commands in a non-safe environment. An attacker with network access and low-privilege credentials, requiring no user interaction, can execute arbitrary code, with the scope changing beyond the vulnerable component.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T13:44:46Z"},"cvss":{"score":9.9,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"NVD"},"epss":{"score":0.84726,"percentile":0.99706,"date":"2026-10-30","provenance":"source"},"kev":{"dateAdded":"2021-12-10","dueDate":"2022-06-10","ransomware":false,"requiredAction":"Apply updates per vendor instructions.","notes":"https://nvd.nist.gov/vuln/detail/CVE-2019-10758","provenance":"source"},"vulncheckKev":{"dateAdded":"2020-11-06","exploitedFirstSeen":"2020-11-06","ransomware":false,"evidence":[{"url":"https://www.bleepingcomputer.com/news/security/reverse-shell-botnet-gitpaste-12-spreads-via-github-and-pastebin/#google_vignette","date":"2020-11-06"},{"url":"https://blogs.juniper.net/en-us/threat-research/everything-but-the-kitchen-sink-more-attacks-from-the-gitpaste-12-worm","date":"2020-12-14"},{"url":"https://blogs.juniper.net/en-us/threat-research/sysrv-botnet-expands-and-gains-persistence","date":"2021-04-08"},{"url":"https://www.bleepingcomputer.com/news/security/new-cryptomining-malware-builds-an-army-of-windows-linux-bots/","date":"2021-04-24"},{"url":"https://cujo.com/the-sysrv-botnet-and-how-it-evolved/","date":"2021-09-22"},{"url":"https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json","date":"2021-12-10"},{"url":"https://www.botconf.eu/wp-content/uploads/2022/05/Botconf2022-24-PalotayZsigovits.pdf","date":"2022-04-27"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-12-11&host_type=src&vulnerability=cve-2019-10758","date":"2023-12-11"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-01-04&host_type=src&vulnerability=cve-2019-10758","date":"2024-01-04"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-01-05&host_type=src&vulnerability=cve-2019-10758","date":"2024-01-05"}],"evidenceTotal":657,"provenance":"source"},"exploited":true,"otx":{"pulseCount":50,"pulses":[{"name":"Actively_Exploited_Kev | Oct 29, 2026","url":"https://otx.alienvault.com/pulse/6ae20c1db17e7057ae7d9ad1","created":"2026-10-28"},{"name":"Actively_Exploited_Kev | Oct 28, 2026","url":"https://otx.alienvault.com/pulse/6ae0ba7e0e2a97ff7b218819","created":"2026-10-27"},{"name":"Actively_Exploited_Kev | Oct 27, 2026","url":"https://otx.alienvault.com/pulse/6adf68b85c3e852f3c111d18","created":"2026-10-26"},{"name":"Actively_Exploited_Kev | Oct 24, 2026","url":"https://otx.alienvault.com/pulse/6adb740e397c3ad4799aa4cd","created":"2026-10-23"},{"name":"Actively_Exploited_Kev | Oct 23, 2026","url":"https://otx.alienvault.com/pulse/6ada236fcfba2dfa730ea482","created":"2026-10-22"},{"name":"Actively_Exploited_Kev | Oct 22, 2026","url":"https://otx.alienvault.com/pulse/6ad8d33a077cbb5cab524d80","created":"2026-10-21"},{"name":"Actively_Exploited_Kev | Oct 21, 2026","url":"https://otx.alienvault.com/pulse/6ad78130c4d1ac2be83a8b6d","created":"2026-10-20"},{"name":"Actively_Exploited_Kev | Oct 20, 2026","url":"https://otx.alienvault.com/pulse/6ad62f63c24a405a3423cc13","created":"2026-10-19"},{"name":"Actively_Exploited_Kev | Oct 19, 2026","url":"https://otx.alienvault.com/pulse/6ad4dda174e5797d0bd238b7","created":"2026-10-18"},{"name":"Actively_Exploited_Kev | Oct 18, 2026","url":"https://otx.alienvault.com/pulse/6ad38c22e1848f8189d1c121","created":"2026-10-17"}],"provenance":"machine"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-MONGOEXPRESS-473215","tags":["Exploit","Third Party Advisory"]},{"url":"https://snyk.io/vuln/SNYK-JS-MONGOEXPRESS-473215","tags":["Exploit","Third Party Advisory"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-10758","tags":["US Government Resource"]}],"techniques":[{"id":"T1190","name":"Exploit Public-Facing Application","tactics":["initial-access"],"provenance":"ai","basis":"ai-mapping","bases":["ai-mapping"],"basisDetail":"claude-haiku-5-5: Exploited through network-exposed web application endpoints","mappingType":"exploitation_technique","evidence":[{"from":"description","quote":"mongo-express before 0.54.0 is vulnerable to Remote Code Execution via endpoints","start":0,"end":80}],"model":"claude-haiku-5-5","confidence":"medium","confidenceNote":"AI-mapped from the description (quote-validated, not expert-reviewed)"},{"id":"T1059","name":"Command and Scripting Interpreter","tactics":["execution"],"provenance":"ai","basis":"ai-mapping","bases":["ai-mapping"],"basisDetail":"claude-haiku-5-5: Attacker achieves arbitrary command execution via vm","mappingType":"primary_impact","evidence":[{"from":"description","quote":"A misuse of the `vm` dependency to perform `exec` commands in a non-safe environment","start":112,"end":196}],"model":"claude-haiku-5-5","confidence":"medium","confidenceNote":"AI-mapped from the description (quote-validated, not expert-reviewed)"}],"reports":[],"affected":[{"ecosystem":"npm","package":"mongo-express","vulnerableRanges":["<0.54.0"],"patched":["0.54.0"],"from":["GHSA-h47j-hc6x-h3qq"],"provenance":"source"}],"advisories":[{"id":"GHSA-h47j-hc6x-h3qq","url":"https://github.com/advisories/GHSA-h47j-hc6x-h3qq","severity":"CRITICAL","ecosystem":"npm","package":"mongo-express","vulnerableRanges":["<0.54.0"],"patched":["0.54.0"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2019-0791","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2019-0791","exploited":true,"exploitedSince":"2021-12-10","provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":3,"skipped":0,"earliest":"2019-12-26","earliestUrl":"https://github.com/masahiro331/CVE-2019-10758","repos":[{"name":"masahiro331/CVE-2019-10758","url":"https://github.com/masahiro331/CVE-2019-10758","stars":112,"created":"2019-12-26"},{"name":"lp008/CVE-2019-10758","url":"https://github.com/lp008/CVE-2019-10758","stars":5,"created":"2020-01-05"},{"name":"CyberCTF/vulhub-mongo-express-cve-2019-10758","url":"https://github.com/CyberCTF/vulhub-mongo-express-cve-2019-10758","stars":0,"created":"2026-10-08"}]},"nuclei":[{"id":"CVE-2019-10758","name":"mongo-express Remote Code Execution","severity":"critical","path":"http/cves/2019/CVE-2019-10758.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2019/CVE-2019-10758.yaml"}],"first":{"date":"2019-12-26","source":"PoC-in-GitHub","url":"https://github.com/masahiro331/CVE-2019-10758"},"provenance":"source"},"exploitRefs":["https://snyk.io/vuln/SNYK-JS-MONGOEXPRESS-473215"],"flow":[{"stage":"exploitation","techniques":["T1190"],"provenance":"ai"},{"stage":"primary","techniques":["T1059"],"provenance":"ai"}],"timeline":[{"date":"2019-12-24","kind":"published","label":"Published (NVD)","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-10758","provenance":"source"},{"date":"2019-12-26","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/masahiro331/CVE-2019-10758","provenance":"source"},{"date":"2020-11-06","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://www.bleepingcomputer.com/news/security/reverse-shell-botnet-gitpaste-12-spreads-via-github-and-pastebin/#google_vignette","provenance":"source"},{"date":"2021-12-10","kind":"kev","label":"Added to CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","provenance":"source"},{"date":"2021-12-10","kind":"euvd-exploited","label":"ENISA EUVD: exploited","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2019-0791","provenance":"source"}],"speed":{"daysToPublicExploit":2,"firstExploitFrom":"PoC-in-GitHub","daysToKev":717},"priority":{"score":69.9,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in CISA KEV and VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 2185 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.94,"detail":"percentile 0.9971"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 NVD reference tagged Exploit; 3 PoC-in-GitHub repos; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":3.0,"detail":"50 pulses"},{"name":"CVSS severity","points":6.93,"detail":"base score 9.9"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}