CVE-2024-41637: Privilege Escalation in RaspAP

billz/raspap-webgui Updated 02 Oct 2025

Summary

29/07/2024
No i
Critical
9.9

CVE-2024-41637: RaspAP allows an attacker to escalate privileges. Affects billz/raspap-webgui versions < 3.1.4. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

RaspAP is a web-based management interface for wireless access points on the Raspberry Pi. It provides a user-friendly interface to configure and monitor various network settings. The package 'billz/raspap-webgui' is a popular implementation of RaspAP. However, versions prior to 3.1.5 are vulnerable to privilege escalation.

Vulnerability Detail

The vulnerability in RaspAP allows an attacker to escalate privileges. The 'www-data' user, which is the user running the web server, has write access to the 'restapi.service' file. Additionally, this user possesses Sudo privileges to execute critical commands without requiring a password. This combination of write access and elevated privileges can be exploited by an attacker to gain unauthorized access and execute arbitrary commands with elevated privileges.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can manually modify the permissions of the 'restapi.service' file to restrict write access for the 'www-data' user. Additionally, it is advisable to review and modify the Sudo configuration to require a password for critical commands executed by the 'www-data' user.

Conclusion

RaspAP versions prior to 3.1.5 are vulnerable to privilege escalation. Attackers can exploit this vulnerability to gain unauthorized access and execute arbitrary commands with elevated privileges. It is crucial to update to the latest version of RaspAP and review the necessary permissions and configurations to mitigate this risk.

See every vulnerability recorded for billz/raspap-webgui →

Share this vulnerability

FAQ

RaspAP is a web-based management interface for wireless access points on the Raspberry Pi. It provides an easy-to-use interface to configure and monitor network settings.

This vulnerability allows an attacker to escalate privileges, potentially gaining unauthorized access and executing arbitrary commands with elevated privileges.

To fix this vulnerability, update RaspAP to version 3.1.5 or later. This update removes the unnecessary write access and tightens the Sudo configuration.

Yes, as a temporary workaround, you can manually modify the permissions of the 'restapi.service' file and review the Sudo configuration to require a password for critical commands.

You can find more information about this vulnerability in the GitHub Security Advisory GHSA-q623-2j2j-23jj.

Related vulnerabilities

Recent vulnerabilities recorded for billz/raspap-webgui.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback