SecurityContext

CVE-2021-45466: CWP - Unrestricted File Upload

  • Cve: CVE-2021-45466
  • Name: CWP - Unrestricted File Upload
  • Description: In CWP (aka Control Web Panel or CentOS Web Panel) before 0.9.8.1107, attackers can make a crafted request to api/?api=add_server&DHCP= to add an authorized_keys text file in the /resources/ folder.
  • Impact: Attackers can add an authorized_keys file, enabling unauthorized SSH access and full control over the server.
  • Remediation: Update to version 0.9.8.1107 or later to fix the validation issue.
  • Vulnerability type: unrestricted_file_upload
  • Vulnerability impact: file_system_write
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • 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.55338
  • Epss percentile: 0.99046
  • Assignee: [email protected]
  • Published at: 2022-12-26T05:15:10Z
  • Age in days: 1429
  • Modified at: 2026-06-17T04:13:25Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-45466
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-863Incorrect Authorization

Public exploits

UrlSourceAdded date
https://octagon.net/blog/2022/01/22/cve-2021-45467-cwp-centos-web-panel-preauth-rce/nvd2022-12-26

References

UrlSourceTags
https://control-webpanel.com/changelognvdRelease Notes, Vendor Advisory
https://octagon.net/blog/2022/01/22/cve-2021-45467-cwp-centos-web-panel-preauth-rce/nvdExploit, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
control-webpanel:webpanel< 0.9.8.1107nonvd/v1/products/control-webpanel/webpanel

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2022-12-26
  • Remote: yes
  • Exposed hosts: 11854
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports