CVE-2018-6940: A /shell?cmd= XSS issue exists in the HTTPD component of NAT32 v2.2 Build 22284 devices that can be exploited
CVE-2018-6940 is a medium-severity flaw (CVSS 6.1) affecting nat32. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
A /shell?cmd= XSS issue exists in the HTTPD component of NAT32 v2.2 Build 22284 devices that can be exploited for Remote Code Execution in conjunction with CSRF.
Why this priority
- Public exploit reference
No fix is published yet: follow the downgrade or mitigation steps.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- Exploit-DB: NAT32 2.2 Build 22284 - Remote Command Execution
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2018-6940?
nat32: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2018-6940 being exploited?
CVE-2018-6940 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2018-6940 affect?
CVE-2018-6940 affects nat32. Severity is medium (CVSS 6.1). A /shell?cmd= XSS issue exists in the HTTPD component of NAT32 v2.2 Build 22284 devices that can be exploited for Remote Code Execution in conjunction with CSRF.
How urgent is CVE-2018-6940?
Priority 48/100. Public exploit reference
Software pages
Apache HTTP Server vulnerabilities
Related CVEs
- CVE-2018-6941 HIGH 8.8 DOWNGRADE A /shell?cmd= CSRF issue exists in the HTTPD component of NAT32 v2.2 Build 22284 devices that can be exploited