LiveActive security incident?Get immediate response
CVE Record

CVE-2021-38557: raspap-webgui in RaspAP 2.6.6 allows attackers to execute commands as root because of the insecure sudoers...

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.

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

RaspAP 2.6.6 has a local privilege escalation risk: the web server user can run a specific script as root and can also replace that script. If an attacker gains control of the RaspAP web process, they may be able to turn that access into full device control.

Executive priority

Treat this as a high-priority hardening issue for any exposed or operationally important RaspAP deployment. The business risk is full device compromise after web-process access, but the sources do not show confirmed active exploitation.

Technical view

The CVE describes insecure sudoers permissions in raspap-webgui. The www-data account can execute /etc/raspap/hostapd/enablelog.sh as root without a password, while also being able to overwrite that script. This creates a path from web-server-level access to root command execution on affected RaspAP 2.6.6 systems.

Likely exposure

Exposure is most likely on RaspAP 2.6.6 installations using the referenced sudoers configuration. The source bundle does not prove exposure for other versions, distributions, or forks.

Exploitation context

CISA KEV is false, and the provided sources do not claim active exploitation. The vulnerability appears to require attacker control of, or access as, the www-data account before root escalation is possible.

Researcher notes

The public record is concise and lacks CVSS, CWE, patch, and affected-version range detail. Validate directly against local sudoers and file permissions before broad scoping beyond RaspAP 2.6.6.

Mitigation direction

  • Check RaspAP vendor guidance and release notes for a fixed version.
  • Upgrade affected RaspAP 2.6.6 installations if a vendor fix is available.
  • Remove or restrict unsafe www-data sudoers permissions for the affected script.
  • Ensure the affected script is not writable by the web server account.
  • Limit access to the RaspAP management interface to trusted networks.

Validation and detection

  • Inventory systems running RaspAP and identify any version 2.6.6 deployments.
  • Review sudoers entries granting www-data passwordless root execution.
  • Verify /etc/raspap/hostapd/enablelog.sh ownership and write permissions.
  • Confirm the web server account cannot modify privileged scripts.
  • Document whether compensating network access controls protect the RaspAP interface.
Prepared
Confidence
medium
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

description · low confidence lookup

Credential and access behavior lookup

The CVE wording references authentication or credential exposure, so valid-account and credential-access review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-38557 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/an/an/aListed
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.