{"id":"CVE-2021-38557","aliases":["CVE-2021-38557","GHSA-536p-4pcj-5mr9"],"related":[],"kind":"vulnerability","state":"published","title":"raspap-webgui in RaspAP 2.6.6 allows attackers to execute commands as root because of the insecure sudoers permissions.","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2021-08-24T12:33:01.000Z","modified":"2026-09-10T03:49:27.233Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:C/I:C/A:C","score":9,"rating":"HIGH"}],"cwes":["CWE-276","CWE-732"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"2.6.6"}],"ecosystem":"Packagist","package":"billz/raspap-webgui","purl":"pkg:composer/billz/raspap-webgui","source":"ghsa"},{"ranges":[{"status":"affected","version":"2.6.6"}],"vendor":"raspap","product":"raspap","cpe":"cpe:2.3:a:raspap:raspap:2.6.6:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/RaspAP/raspap-webgui","tags":["package","product","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/RaspAP/raspap-webgui/blob/fabc48c7daae4013b9888f266332e510b196a062/installers/raspap.sudoers","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://zerosecuritypenetrationtesting.com/?page_id=306","tags":["exploit","third-party-advisory","url-repurposed","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38557","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-38557","url":"https://www.cve.org/CVERecord?id=CVE-2021-38557","licence":"CVE Terms of Use","modified":"2024-08-04T01:44:23.480Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-536p-4pcj-5mr9","url":"https://github.com/advisories/GHSA-536p-4pcj-5mr9","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:27.233Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-38557","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38557","licence":"Public domain","modified":"2026-06-17T04:02:21.450Z"}],"updatedAt":"2026-11-25T22:58:03.388Z","epss":{"score":0.02224,"percentile":0.83215,"date":"2026-12-01T12:00:22.000Z"}}