CVE-2012-2982: Authenticated command injection in Webmin file/show.cgi
- Vendor
- Gentoo
CVE-2012-2982 is a command injection vulnerability in file/show.cgi in Webmin 1.590 and earlier. The flaw is caused by improper neutralization of shell metacharacters in a pathname parameter; an invalid character such as the pipe (|) can be injected into the pathname and interpreted by the underlying command execution context. As a result, a remote authenticated user can cause arbitrary system commands to be executed. Available advisory context indicates the commands may run as a privileged user, and CERT/CC notes that previously established sessions can also be abused via embedded HTML, such as IMG SRC tags in HTML email, to trigger command execution on the server.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows an authenticated attacker to execute arbitrary operating system commands on the Webmin host. Advisory context indicates execution may occur with elevated privileges, potentially root or another privileged Webmin context. This can lead to full compromise of the managed system, including unauthorized administrative actions, data access, modification or destruction of files, installation of persistence mechanisms, and use of the host for further lateral movement. If a valid session is already established, cross-site request style delivery via embedded HTML may also cause command execution without the victim intentionally interacting with Webmin directly.
Mitigation
If you can’t patch tonight, do this now.
Restrict Webmin access to trusted administrative hosts and networks only, as recommended by the advisory. Reduce exposure by firewalling the interface, limiting source IPs, disabling unnecessary remote access, and enforcing strong authentication hygiene to reduce the chance of credential theft. Because exploitation requires authentication or an existing session, protect administrator sessions from reuse and avoid accessing Webmin from untrusted contexts where session theft or forced requests are possible.
Remediation
Patch, then assume compromise.
Upgrade Webmin to a version that includes the fix for CVE-2012-2982. The referenced patch for this issue is Webmin commit 1f1411fe7404ec3ac03e803cfa7e01515e71a213. If immediate upgrade is not possible, apply the vendor patch from the Webmin development branch referenced by the advisory and then move to an official fixed release as soon as available. Validate that file/show.cgi no longer permits shell metacharacters in pathname handling after patching.
Exploits
5 exploits validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2012-2982 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2012-2982 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2012-2982?
- Yes. Mallory tracks 5 public exploits or proofs of concept for CVE-2012-2982, the earliest disclosed Sep 6, 2012.
- Is there a patch for CVE-2012-2982?
- Upgrade Webmin to a version that includes the fix for CVE-2012-2982. The referenced patch for this issue is Webmin commit 1f1411fe7404ec3ac03e803cfa7e01515e71a213.
- What products are affected by CVE-2012-2982?
- Gentoo Webmin.
- How severe is CVE-2012-2982?
- CVE-2012-2982 has a CVSS v2 score of 6.5 (Medium) and an EPSS score of 61.9% (99th percentile) as of Oct 16, 2026.
Recent activity
1 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.