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.
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
-
Webmin /file/show.cgi Remote Command Execution
exploit/unix/webapp/webmin_show_cgi_exec
Exploit-DB 1
- Webmin 1.580 - '/file/show.cgi' Remote Command Execution (Metasploit) EDB-21851 · remote · Oct 10, 2012 · verified
GitHub 18 repositories · most starred shown
-
JohnHammond/CVE-2012-2982 ★ 43 · Sep 4, 2021
A Python replicated exploit for Webmin 1.580 /file/show.cgi Remote Code Execution
-
cd6629/CVE-2012-2982-Python-PoC ★ 5 · Aug 5, 2020
This was converted from a metasploit module as an exercise for OSCP studying
-
0xTas/CVE-2012-2982 ★ 3 · Dec 15, 2022
An exploit for CVE-2012-2982 implemented in Rust
-
OstojaOfficial/CVE-2012-2982 ★ 2 · Oct 25, 2020
Python exploit for CVE-2012-2982
-
JRrooot/CVE-2012-2982-Webmin-RCE ★ 1 · Jan 5, 2026
Python PoC for Webmin 1.580 Remote Command Execution (CVE-2012-2982)
-
Gvmyz/CVE-2012-2982_Python ★ 1 · Mar 18, 2021
PoC Python script as an exercice from tryhackme.
-
0xF331-D3AD/CVE-2012-2982 ★ 0 · Jun 16, 2022
-
blu3ming/CVE-2012-2982 ★ 0 · Feb 16, 2022
POC en Python para el CVE-2012-2982 mejorado del original por el usuario @OstojaOfficial
-
varppi/CVE-2012-2982 ★ 0 · Dec 10, 2021
-
Ari-Weinberg/CVE-2012-2982 ★ 0 · Apr 6, 2021
Exploit for CVE-2012-2982
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- http://www.americaninfosec.com/research/dossiers/AISG-12-001.pdf
- VU#788478 third-party-advisory
- https://github.com/webmin/webmin/commit/1f1411fe7404ec3ac03e803cfa7e01515e71a213
- 1027507 vdb-entry
- http://americaninfosec.com/research/index.html
- http://www.xerox.com/download/security/security-bulletin/16287-4d6b7b0c81f7b/cert_XRX13-003_v1.0.pdf