CVE-2021-38557 json
raspap-webgui in RaspAP 2.6.6 allows attackers to execute commands as root because of the insecure sudoers permissions.
published 2021-08-24 5 y ago modified 2026-09-10 1 mo ago also GHSA-536p-4pcj-5mr9 , EUVD-2021-1979
- cvss
- 8.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.2%
- EPSS 2.2% chance of exploitation in 30 days, percentile 82%
- public exploits
- 0
- none known
Summary
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.
Exploit prediction
2.22% chance of exploitation in the next 30 days, higher than 82% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- zerosecuritypenetrationtesting.com https://zerosecuritypenetrationtesting.com/?page_id=306 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 9.0 | AV:N/AC:L/Au:S/C:C/I:C/A:C |
| GitHub | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | billz/raspap-webgui | <=2.6.6 |
no fix listed |
Classification
References
-
zerosecuritypenetrationtesting.com
/?page_id=306
web, exploit, third-party-advisory, url-repurposed
-
github.com
/RaspAP/raspap-webgui
package, product
-
github.com
/RaspAP/raspap-webgui/blob/fabc48c7daae4013b9888f266332e510b196a062/installers/raspap.sudoers
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-38557
advisory
Sources
- CVE List CVE-2021-38557
- GitHub Advisory GHSA-536p-4pcj-5mr9
- NVD CVE-2021-38557
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.