CVE-2026-134630 in Webmin
Summary
by MITRE • 11/25/2026
Webmin through 2.670 contains a remote code execution vulnerability in the Perl Modules (cpan) module, which downloads CPAN indexes and module archives over plaintext HTTP without checksum or signature verification. On-path network attackers can answer the outbound fetch while an administrator installs a CPAN module, supplying a malicious Makefile.PL that cpan/download.cgi runs as root before confirmation.
Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
Analysis
by VulDB Data Team • 11/25/2026
The vulnerability identified in Webmin versions through 2.670 represents a critical remote code execution flaw located within the Perl Modules or CPAN integration component of the administration interface. This security issue stems from an insecure implementation of module installation procedures, specifically regarding how external dependencies are retrieved and processed by the server environment. The core technical deficiency lies in the use of plaintext HTTP for downloading both CPAN indexes and module archives without implementing any form of integrity verification such as checksums or digital signatures. By relying on unencrypted connections and lacking cryptographic validation of the downloaded content, the application fails to ensure that the data received originates from a trusted source and has not been altered during transit. This design choice creates a significant attack surface for adversaries capable of intercepting network traffic between the Webmin server and external CPAN repositories.
An attacker positioned on the same network segment or able to manipulate routing tables can execute an on-path man-in-the-middle attack against this communication channel. When a system administrator initiates the installation of a new Perl module through the Webmin interface, the backend process fetches the necessary files over HTTP. During this window, the adversary can intercept the request and respond with maliciously crafted artifacts instead of legitimate ones. Specifically, the attacker can supply a compromised Makefile.PL script within the downloaded archive. Because the cpan/download.cgi handler executes these scripts as the root user prior to seeking final confirmation from the administrator, the malicious code gains immediate elevated privileges on the host system. This execution occurs before any administrative review takes place, effectively bypassing human oversight and allowing arbitrary command execution with the highest level of access available on the operating system.
The operational impact of this vulnerability is severe, as it allows for complete compromise of the underlying server infrastructure. Since the malicious script runs under the root account, an attacker can install backdoors, exfiltrate sensitive data, pivot to other systems within the network, or disrupt services by modifying critical configuration files and binaries. The lack of signature verification means that even if a legitimate module is downloaded from a compromised mirror or repository, the system cannot distinguish it from one injected by an active network attacker. This flaw undermines the fundamental security principle of defense in depth, as the administrative interface becomes a vector for privilege escalation simply through routine maintenance tasks performed by trusted users who assume the underlying infrastructure and external sources are secure.
This vulnerability aligns with CWE-20 Improper Input Validation, specifically regarding the failure to validate data integrity before processing, and CWE-319 Cleartext Transmission of Sensitive Information in an Unprotected Channel, due to the use of unencrypted HTTP for critical module downloads. From a tactical perspective, this attack vector corresponds to MITRE ATT&CK technique T1072 Software Deployment Tools, where adversaries leverage legitimate administrative tools to execute malicious code on target systems. It also relates to T1496 Resource Hijacking if used for cryptomining or other resource consumption attacks following initial access. The scenario exemplifies how trusted software update mechanisms can be subverted when integrity checks are omitted and execution privileges are not appropriately restricted during the installation phase.
Mitigation strategies must address both the network transport layer and the application logic governing module installations. Immediately, administrators should upgrade Webmin to version 2.671 or later where this issue has been remediated by enforcing HTTPS for all CPAN-related communications and implementing proper signature verification mechanisms. In environments where upgrading is not immediately feasible, restricting outbound HTTP traffic from the Webmin server via firewall rules can prevent on-path attackers from intercepting requests. Additionally, configuring network segmentation to isolate administrative interfaces from general user networks reduces the likelihood of successful man-in-the-middle attacks. Organizations should also enforce strict access controls for CPAN module installations, ensuring that only authorized personnel have permission to trigger such operations and considering manual verification steps where possible until patches are applied. Regular auditing of installed modules and monitoring for unusual outbound connections can further aid in detecting potential exploitation attempts.