CVE-2024-12828 Webmin CGI Command Injection Remote Code Execution Vulnerability

Critical 9.9 Published Updated

Authenticated attackers can execute arbitrary code as root via improper validation in Webmin CGI request handling.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-12828?

CVE-2024-12828 is a critical command injection vulnerability in Webmin Webmin, published on 30 Dec 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-78

Which versions are affected by CVE-2024-12828?

It affects 1 product.

Products include Webmin Webmin.

How do I fix CVE-2024-12828?

No fix has been published for CVE-2024-12828 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2024-12828 being exploited?

There is no known exploitation of CVE-2024-12828 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

All Webmin Webmin vulnerabilities

Sources

Also known as GHSA-r6m7-83vq-qx32.

Is CVE-2024-12828 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free