ZeroHour

CVE-2024-12828

large

Authenticated OS Command Injection RCE in Webmin

CVSS 3.1
8.8 high
EPSS
33%p98
Published
()
Modified
AI analysis

Webmin, a widely used web-based administration tool for Unix and Linux servers, contains an OS command injection flaw (CWE-78, ZDI-CAN-22346) in its handling of CGI requests: a user-supplied string is not properly validated before being used in a system call. An attacker with valid low-privilege credentials can trigger the flaw remotely by sending a crafted CGI request with injected shell commands. Successful exploitation yields arbitrary code execution in the context of root, giving the attacker full control over the affected host. Any organization running Webmin whose web interface is reachable from a network the attacker can access is in scope, including instances exposed to the internet on the default port 10000. No public proof-of-concept or CISA KEV listing exists yet, but EPSS assigns a 33.5% probability of exploitation within 30 days (98th percentile), indicating a meaningful near-term threat.

What to do: Upgrade Webmin to the fixed release identified in the vendor/ZDI advisory as soon as possible; the available data does not state specific affected or fixed version numbers, so verify the fixed version in Webmin's release notes. Until patched, restrict access to the Webmin interface (default TCP 10000) to trusted networks or a VPN, and audit which accounts hold Webmin credentials since valid authentication is required to exploit. Review web-server and Webmin logs for anomalous CGI requests containing shell metacharacters that could indicate exploitation attempts.

Affected
Webmin (web-based Unix/Linux administration interface)
Estimated exposure
largetens of thousands of internet-exposed Webmin installations (roughly 10k-100k systems), plus additional internal-only deployments of unknown count — Public internet scans (e.g., Shodan/Censys) of Webmin's default TCP port 10000 have historically indexed tens of thousands of exposed instances, and Webmin is a long-standing, widely deployed admin tool on Linux/Unix servers, though many…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

Webmin CGI Command Injection Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Webmin. Authentication is required to exploit this vulnerability. The specific flaw exists within the handling of CGI requests. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code in the context of root. Was ZDI-CAN-22346.

Vendors
webmin
Products
webmin
Weakness
CWE-78
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

In the news