High
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-38557
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 08:49 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-38557
Complete source record
{
"id": "4876ba7c0ca3fecb7f1fef639911fc3862a9688313be6bb26e73d8496f50302c",
"url": "https://osv.dev/vulnerability/CVE-2021-38557",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-38557",
"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.",
"evidence": "osv:CVE-2021-38557",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-38557",
"aliases": [
"CVE-2021-38557",
"GHSA-536p-4pcj-5mr9"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/raspap/raspap-webgui",
"type": "GIT",
"events": [
{
"introduced": "04fc73326bdbafe02b0312eb09097cb5eb5277de"
},
{
"last_affected": "04fc73326bdbafe02b0312eb09097cb5eb5277de"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:raspap:raspap:2.6.6:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.6.6"
},
{
"last_affected": "2.6.6"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"2.6.6"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-38557.json"
}
}
],
"modified": "2026-10-24T10:50:25.063040114Z",
"provider": "osv",
"references": [
"https://github.com/RaspAP/raspap-webgui/blob/fabc48c7daae4013b9888f266332e510b196a062/installers/raspap.sudoers",
"https://github.com/RaspAP/raspap-webgui",
"https://zerosecuritypenetrationtesting.com/?page_id=306"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:raspap:raspap:2.6.6:*:*:*:*:*:*:*"
],
"vendor_product": "raspap:raspap",
"extracted_events": [
{
"range": [
{
"introduced": "2.6.6"
},
{
"last_affected": "2.6.6"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2021-38557",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 442135,
"published_at": "2021-08-24T13:15:14.513+00:00"
}