
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
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).
/session_login.cgi using an account that has Shorewall table edit permission./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./shorewall/list.cgi?table=rules, and confirm the raw <img src=x onerror string appears unescaped in the response body.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.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.requests, POST cmd='cat /tmp/pwned_by_cve_2026_124552' to /shell/index.cgi, and confirm uid=0(root) in the response.savecmt.cgi with table='../../../../tmp/0day_proof.txt' to write arbitrary content as root via the unvalidated table parameter (PoC GitHub, Webmin Issue #2908)./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.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./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.sh, bash, id, curl, wget); unusual cron jobs or scheduled tasks created under root.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).
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).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."