Vulnerability record · CVE-2021-38557 · published 24 August 2021
CVE-2021-38557: Raspap incorrect permission assignment vulnerability
Raspap · Raspap
raspap-webgui in RaspAP 2.6.6 allows attackers to execute commands as root because of the insecure sudoers permissions. The www-data account can execute /etc/raspap/hostapd/enablelog.sh as root with no password; however, the www-data account can also overwrite /etc/raspap/hostapd/enablelog.sh with any executable content.
Description
raspap-webgui in RaspAP 2.6.6 allows attackers to execute commands as root because of the insecure sudoers permissions. The www-data account can execute /etc/raspap/hostapd/enablelog.sh as root with no password; however, the www-data account can also overwrite /etc/raspap/hostapd/enablelog.sh with any executable content.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/RaspAP/raspap-webgui | Product |
| https://github.com/RaspAP/raspap-webgui/blob/fabc48c7daae4013b9888f266332e510b196a062/installers/raspap.sudoers | Third Party Advisory |
| https://zerosecuritypenetrationtesting.com/?page_id=306 | ExploitThird Party AdvisoryURL Repurposed |
| https://github.com/RaspAP/raspap-webgui | Product |
| https://github.com/RaspAP/raspap-webgui/blob/fabc48c7daae4013b9888f266332e510b196a062/installers/raspap.sudoers | Third Party Advisory |
| https://zerosecuritypenetrationtesting.com/?page_id=306 | ExploitThird Party AdvisoryURL Repurposed |
Track CVE-2021-38557 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2021-38557), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.