# CVE-2021-38557: raspap-webgui in RaspAP 2.6.6 allows attackers to execute commands as root because of the insecure sudoers permissions.

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.22%, higher than 83% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-08-24T12:33:01.000Z
- Modified: 2026-09-10T03:49:27.233Z
- Also known as: GHSA-536p-4pcj-5mr9
- Weaknesses: CWE-276, CWE-732
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- billz/raspap-webgui (Packagist): up to 2.6.6
- raspap raspap: 2.6.6

## Every score

- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 9.0 High `AV:N/AC:L/Au:S/C:C/I:C/A:C`

## References

- <https://zerosecuritypenetrationtesting.com/?page_id=306> (exploit, third-party-advisory, url-repurposed, web)
- <https://github.com/RaspAP/raspap-webgui> (package, product)
- <https://github.com/RaspAP/raspap-webgui/blob/fabc48c7daae4013b9888f266332e510b196a062/installers/raspap.sudoers> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-38557> (advisory)

## Sources

- CVE List: [CVE-2021-38557](https://www.cve.org/CVERecord?id=CVE-2021-38557), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-536p-4pcj-5mr9](https://github.com/advisories/GHSA-536p-4pcj-5mr9), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2021-38557](https://nvd.nist.gov/vuln/detail/CVE-2021-38557), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-38557 · Whole record: https://cve.day/CVE-2021-38557.json · Rebuilt by cve.day 2026-11-25T22:58:03.388Z
