{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-38557","id":"CVE-2021-38557","title":"raspap-webgui in RaspAP 2.6.6 allows attackers to execute commands as root because of the insecure sudoers permissions.","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.","descriptionLong":"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.","published":"2021-08-24T12:33:01.000Z","updated":"2026-10-24T10:50:25.063040114Z","reserved":"2021-08-11T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"},{"version":"2.0","score":9,"vector":"AV:N/AC:L/Au:S/C:C/I:C/A:C","rating":"critical","source":"NVD"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"billz/raspap-webgui","purl":"pkg:composer/billz/raspap-webgui","ranges":["<=2.6.6"],"fixed":[],"advisory":"GHSA-536p-4pcj-5mr9"}],"cwes":["CWE-732","CWE-276"],"aliases":["GHSA-536p-4pcj-5mr9"],"references":[{"url":"https://github.com/RaspAP/raspap-webgui","tags":["x_refsource_MISC","x_transferred","Product","package"]},{"url":"https://github.com/RaspAP/raspap-webgui/blob/fabc48c7daae4013b9888f266332e510b196a062/installers/raspap.sudoers","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://zerosecuritypenetrationtesting.com/?page_id=306","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","URL Repurposed","evidence","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38557","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.02224,"epssPercentile":0.83086,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-38557","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38557","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-38557","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-536p-4pcj-5mr9","ok":true,"note":"GHSA-536p-4pcj-5mr9"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-38557","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}