Vulnerability DatabaseCVE-2026-126781

CVE-2026-126781: 
Webmin vulnerability analysis and mitigation

Overview

CVE-2026-126781 is a users file injection vulnerability in Webmin's acl/cert_issue.cgi script that allows authenticated users to inject arbitrary lines into Webmin's users file by supplying certificate Distinguished Name (DN) fields containing unvalidated newline characters. Affected versions include Webmin through 2.670. The vulnerability was published on November 11, 2026, with patches committed to the Webmin repository on the same date. It carries a CVSS v3.1 base score of 7.5 (High) and a CVSS v4.0 base score of 7.7 (High) (Github Advisory, VulnCheck).

Technical details

The root cause is improper neutralization of CRLF sequences (CWE-93) in acl/cert_issue.cgi. The vulnerable code (lines 22–52 of the 2.670 release) iterates over certificate DN fields — emailAddress, organizationalUnitName, organizationName, stateOrProvinceName, countryName, and commonName — and writes them directly to a temporary file without sanitizing newline or null characters. An attacker can terminate a DN field value with a backslash followed by a newline to break out of the current record and inject a second root-level entry with a known password hash into the Webmin users file; after miniserv restarts (which cert_issue.cgi triggers automatically), the injected account grants full root access to Webmin (Webmin Source, Webmin Patch). The fix adds a validation check rejecting any DN field containing :, \n, or \0 characters.

Impact

Successful exploitation allows a low-privileged authenticated Webmin user to escalate privileges to Webmin root, gaining full administrative control over the Webmin interface and the underlying server. This results in high confidentiality, integrity, and availability impact on the vulnerable system, including the ability to read sensitive configuration files, modify system settings, execute arbitrary commands, and disrupt services. The injected account persists across sessions, enabling persistent unauthorized access until discovered and removed (Github Advisory).

Exploitability

No public proof-of-concept exploit code is known to exist, and there is no evidence of in-the-wild exploitation at this time (Github Advisory). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.29% (22nd percentile), indicating a low near-term exploitation probability. Exploitation requires valid Webmin credentials (low privilege), and the attack is not automatable due to the prerequisite of authentication and the need for a miniserv restart to activate the injected account.

Exploitation steps

  1. Obtain Webmin credentials: Acquire valid credentials for any Webmin user account (e.g., through phishing, credential stuffing, or a previously compromised account).
  2. Navigate to certificate issuance: Log in to the Webmin interface and access the SSL certificate issuance functionality at acl/cert_issue.cgi.
  3. Craft malicious DN field: Prepare a certificate signing request where one of the DN fields (e.g., commonName) ends with a backslash followed by a newline character (\\\n), followed by a crafted line representing a new root user entry with a known password hash.
  4. Submit the request: Submit the certificate issuance form with the malicious DN field value. The vulnerable code writes the injected content directly into the Webmin users file without sanitization.
  5. Wait for miniserv restart: The cert_issue.cgi script automatically calls restart_miniserv() after processing, which causes the injected root account to be loaded from the modified users file.
  6. Authenticate as injected root: Log in to Webmin using the injected root account credentials (with the known password hash), gaining full administrative access to the system (Webmin Source, Webmin Patch).

Indicators of compromise

  • Logs: Webmin access logs showing POST requests to acl/cert_issue.cgi with DN field values containing encoded newline (%0a, %0d) or backslash-newline sequences; miniserv restart events in system logs (/var/webmin/miniserv.log) shortly after certificate issuance requests.
  • File System: Unexpected additional entries in the Webmin users file (typically /etc/webmin/miniserv.users or similar) with unfamiliar usernames or password hashes; modification timestamps on the users file coinciding with certificate issuance activity.
  • Authentication: Webmin authentication logs showing logins from an unrecognized root-level account, especially shortly after a miniserv restart; new administrative sessions from unexpected IP addresses.

Mitigation and workarounds

Upgrade Webmin to a version beyond 2.670 that includes the patch commits 0c449e3 (which adds validation rejecting :, \n, and \0 in DN fields) and 8fb194e (which fixes HTML escaping in certificate issuance responses) (Webmin Patch, Webmin Patch 2). As a workaround, restrict access to acl/cert_issue.cgi to only highly trusted administrators via Webmin's module access control settings. Additionally, monitor the Webmin users file and authentication logs for unauthorized account additions, particularly after any miniserv restart events.

Additional resources


Source: This report was generated using AI

Related Webmin vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-126780HIGH8.6
  • Webmin logoWebmin
  • cpe:2.3:a:webmin:webmin
NoNoNov 11, 2026
CVE-2026-125391HIGH8.6
  • Webmin logoWebmin
  • cpe:2.3:a:webmin:webmin
NoNoNov 10, 2026
CVE-2026-126781HIGH7.7
  • Webmin logoWebmin
  • cpe:2.3:a:webmin:webmin
NoNoNov 11, 2026
CVE-2026-125392MEDIUM5.1
  • Webmin logoWebmin
  • cpe:2.3:a:webmin:webmin
NoNoNov 10, 2026
CVE-2026-124552MEDIUM4.8
  • Webmin logoWebmin
  • cpe:2.3:a:webmin:webmin
NoNoNov 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management