CVE-2021-38557: High severity RaspAP RaspAP vulnerability

Published Aug 24, 2021
·
Updated

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.

Affected Software

1 affected component
RaspAP RaspAP=2.6.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Set ownership and permissions on /etc/raspap/hostapd/enablelog.sh so that www-data cannot overwrite it, preventing attacker-controlled executable content from being used when the script is run as root.

    RaspAP hostapd enablelog script /etc/raspap/hostapd/enablelog.sh file permissions/ownership = Non-writable by www-data (ensure it cannot be overwritten by the web server user)
  2. Compensating control

    Restrict the ability for the web server user (www-data) to run privileged scripts: remove/adjust the sudoers entry that allows www-data to execute /etc/raspap/hostapd/enablelog.sh as root without a password, so that sudo no longer grants root execution to www-data.

Event History

Aug 24, 2021
CVE Published
via MITRE·12:33 PM
Data Sourced
via MITRE·12:33 PM
Description
Data Sourced
via NVD·01:15 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is CVE-2021-38557?

CVE-2021-38557 is a vulnerability in RaspAP 2.6.6 that allows attackers to execute commands as root due to insecure sudoers permissions.

2

How severe is CVE-2021-38557?

CVE-2021-38557 has a severity score of 8.8 (critical).

3

What is the affected software version of CVE-2021-38557?

The affected software version of CVE-2021-38557 is RaspAP 2.6.6.

4

How can an attacker exploit CVE-2021-38557?

An attacker can exploit CVE-2021-38557 by using the insecure sudoers permissions in RaspAP 2.6.6 to execute commands as root.

5

Is there a fix available for CVE-2021-38557?

Yes, a fix for CVE-2021-38557 is available. It is recommended to update to a patched version of RaspAP.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203