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

High 8.8 Published Updated

Attackers can escalate privileges to root by overwriting a script executable by the web server user due to insecure sudoers permissions.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-38557?

CVE-2021-38557 is a high-severity vulnerability in n/a, published on 24 Aug 2021. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-732

Which versions are affected by CVE-2021-38557?

2 open source packages ship an affected version, including billz/raspap-webgui. It affects 1 product.

PackageAffectedFixed in
billz/raspap-webgui PackagistAll versions to 2.6.6None
billz/raspap-webgui PackagistAll versions to 2.6.6None

Products include Raspap Raspap.

How do I fix CVE-2021-38557?

No fix has been published for CVE-2021-38557 yet. Limit exposure of the affected software until one is available.

Is CVE-2021-38557 being exploited?

There is no known exploitation of CVE-2021-38557 in the wild and no public exploit code.

Sources

Also known as GHSA-536p-4pcj-5mr9.

Is CVE-2021-38557 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free