8.8high
raspap-webgui in RaspAP 2.6.6 allows attackers to execute commands as root because of the insecure sudoers permissions.
- Severity
- 8.8high CVSS:3.1 by NVD
- Exploit likelihood
- 2.22% (higher than 83% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-536p-4pcj-5mr9
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| billz/raspap-webgui (Packagist) | up to 2.6.6 | GitHub Advisory Database |
| raspap raspap | 2.6.6 | NVD |
All scores
| GitHub | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.0high CVSS:2.0 | AV:N/AC:L/Au:S/C:C/I:C/A:C |
Classification
What each source says
CVE List
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.
NVD (es)
raspap-webgui en RaspAP versión 2.6.6, permite a atacantes ejecutar comandos como root debido a permisos no seguros de sudoers. La cuenta www-data puede ejecutar el archivo /etc/raspap/hostapd/enablelog.sh como root sin contraseña; sin embargo, la cuenta www-data también puede sobrescribir el archivo /etc/raspap/hostapd/enablelog.sh con cualquier contenido ejecutable.
References
| https://github.com/RaspAP/raspap-webgui | package, product | |
| https://github.com/RaspAP/raspap-webgui/blob/fabc48c7daae4013b9888f266332e510b196a062/installers/raspap.sudoers | third-party-advisory, web | |
| https://zerosecuritypenetrationtesting.com/?page_id=306 | exploit, third-party-advisory, url-repurposed, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-38557 | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-38557 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-536p-4pcj-5mr9 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2021-38557 changed 2026-06-17 | Public domain |