Vulnerability DatabaseCVE-2026-124552

CVE-2026-124552: 
Webmin vulnerability analysis and mitigation

Overview

CVE-2026-124552 is a stored cross-site scripting (XSS) vulnerability in Webmin through version 2.670, affecting the Shorewall and Shorewall6 modules' list.cgi. The flaw allows authenticated users with table edit permission to inject malicious JavaScript via savecmt.cgi or table entries, which executes in the browser of any user — including root administrators — who views the affected list page. The vulnerability was reported on November 1, 2026, patched on November 2, 2026, and publicly disclosed on November 8, 2026. It carries a CVSS v3.1 base score of 4.8 (Medium) (GitHub Advisory, VulnCheck Advisory).

Technical details

The root cause is improper neutralization of input during web page generation (CWE-79). In shorewall/list.cgi and shorewall6/list.cgi, both COMMENT lines and ordinary table row column values are rendered directly into HTML without HTML-escaping — COMMENT content is joined and interpolated verbatim, and column values are passed to ui_link() or assigned to $lnk without escaping. The savecmt.cgi handler only validates that the msg field is non-empty (/\S/), never rejecting HTML metacharacters, so a payload like <img src=x onerror=...> passes validation and is stored as a COMMENT line. Across both modules, 16 distinct sinks were confirmed vulnerable, spanning tables including zones, rules, masq, nat, blacklist, providers, and routestopped (Webmin Issue #2908, Patch Commit).

Impact

Successful exploitation allows a low-privilege Webmin account scoped only to the Shorewall module to execute arbitrary JavaScript in the browser of any other user who views the affected list page, including full root administrators. Because Webmin's cross-module write protection relies on a same-origin Referer check rather than per-action CSRF tokens, injected scripts can issue same-origin requests to any other module's save handlers using the victim's session — enabling session hijacking, credential theft, unauthorized administrative user creation, or arbitrary configuration changes on the managed server. A public PoC demonstrates escalation from stored XSS to root command execution via the Webmin Command Shell module (Webmin Issue #2908, Feedly).

Exploitability

A public proof-of-concept exploit (Python/Playwright) is available on GitHub, rated high confidence, and demonstrates a full chain from stored XSS to root remote code execution via the Webmin Command Shell module (/shell/index.cgi). The PoC also includes a bonus path traversal 0-day enabling arbitrary file write as root via savecmt.cgi. As of the time of disclosure, there is no evidence of in-the-wild exploitation, and the CVE is not listed in the CISA KEV catalog. The EPSS score is approximately 0.0019 (low probability of exploitation in the near term). Qualys scanner (detection ID 520422) has coverage for this vulnerability (PoC GitHub, Feedly).

Exploitation steps

  1. Reconnaissance: Identify internet-facing Webmin instances (version ≤ 2.670) with the Shorewall or Shorewall6 module enabled, using tools like Shodan or Censys.
  2. Authenticate as low-privilege attacker: POST credentials to /session_login.cgi using an account that has Shorewall table edit permission.
  3. Store the malicious payload: POST to /shorewall/savecmt.cgi with parameters table=rules, new=1, create=Create, and msg set to an <img src=x onerror=fetch('/shell/index.cgi',{method:'POST',body:new FormData()...})> payload that issues a command to the Webmin shell CGI.
  4. Verify unescaped rendering (optional check): Log in as admin, GET /shorewall/list.cgi?table=rules, and confirm the raw <img src=x onerror string appears unescaped in the response body.
  5. Trigger XSS in admin browser: Using Playwright (Chromium), log in as admin via session_login.cgi and navigate to /shorewall/list.cgi?table=rules with a Shorewall referer, causing the onerror handler to fire in the admin's browser context.
  6. Execute OS command as root: The injected JavaScript issues a fetch POST to /shell/index.cgi with cmd='id > /tmp/pwned_by_cve_2026_124552' under the admin's session cookies, running the command as root.
  7. Verify RCE: Log in as admin via requests, POST cmd='cat /tmp/pwned_by_cve_2026_124552' to /shell/index.cgi, and confirm uid=0(root) in the response.
  8. (Optional) Path traversal file write: POST to savecmt.cgi with table='../../../../tmp/0day_proof.txt' to write arbitrary content as root via the unvalidated table parameter (PoC GitHub, Webmin Issue #2908).

Indicators of compromise

  • Network: Unusual POST requests to /shorewall/savecmt.cgi or /shorewall6/savecmt.cgi with msg parameters containing HTML tags (e.g., <img, <script, onerror=); POST requests to /shell/index.cgi originating from browser sessions (not typical admin workflows); outbound connections from the Webmin server to attacker-controlled infrastructure.
  • Logs: Webmin access logs showing savecmt.cgi POSTs with encoded or raw HTML payloads in the msg field; list.cgi GETs by admin accounts shortly followed by shell/index.cgi POSTs in the same session; unexpected commands in shell module logs.
  • File System: Presence of marker files such as /tmp/pwned_by_cve_2026_124552 or /tmp/0day_124552_proof.txt; unexpected files written to /tmp/ or other world-writable directories by the Webmin process; new administrative user entries in Webmin's miniserv.users or webmin.acl.
  • Process: Unexpected child processes spawned by the Webmin Perl process (e.g., sh, bash, id, curl, wget); unusual cron jobs or scheduled tasks created under root.
  • Configuration: Unexpected entries in Shorewall rules, masq, nat, or zones tables containing HTML or JavaScript fragments (PoC GitHub, Webmin Issue #2908).

Mitigation and workarounds

Upgrade Webmin to a version newer than 2.670; the fix was committed on November 2, 2026 (commit 01b988d), which adds html_escape() calls around all table field and COMMENT line rendering in both shorewall/list.cgi and shorewall6/list.cgi, and adds a carriage-return/null-byte check in savecmt.cgi. As an interim workaround, restrict Shorewall and Shorewall6 module table edit permissions to fully trusted administrators only, and consider implementing Content Security Policy (CSP) headers on the Webmin interface to limit XSS impact. Monitor Shorewall table entries and COMMENT lines for unexpected HTML or JavaScript content (Patch Commit, GitHub Advisory).

Community reactions

The vulnerability was originally reported privately to security@webmin.com by researcher carfeii, but the email bounced due to an IP blocklist, leading to public disclosure via GitHub Issue #2908. Webmin maintainer jcameron acknowledged the report and committed a fix within one day of the public issue being filed. The researcher confirmed the fix addressed all 16 reported sinks. The CVE was assigned by VulnCheck and tracked under EUVD-2026-119608 by ENISA. No significant broader media coverage or notable social media discussion beyond standard vulnerability aggregator syndication was observed (Webmin Issue #2908, VulnCheck Advisory).

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