Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. billz/raspap-webgui
  4. ›
  5. CVE-2021-38557

CVE-2021-38557: Incorrect Permission Assignment for Critical Resource

September 2, 2021 (updated September 3, 2021)

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.

References

  • github.com/RaspAP/raspap-webgui
  • github.com/RaspAP/raspap-webgui/blob/fabc48c7daae4013b9888f266332e510b196a062/installers/raspap.sudoers
  • github.com/advisories/GHSA-536p-4pcj-5mr9
  • nvd.nist.gov/vuln/detail/CVE-2021-38557
  • zerosecuritypenetrationtesting.com/?page_id=306

Code Behaviors & Features

Detect and mitigate CVE-2021-38557 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 2.6.6

Solution

Unfortunately, there is no solution available yet.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-732: Incorrect Permission Assignment for Critical Resource
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

packagist/billz/raspap-webgui/CVE-2021-38557.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:56 +0000.