CVE-2024-41637
PHP vulnerability analysis and mitigation

Overview

RaspAP before version 3.1.5 contains a critical local privilege escalation vulnerability (CVE-2024-41637). The vulnerability was discovered on July 16, 2024, and publicly disclosed on July 27, 2024. The issue affects RaspAP, an open-source tool used to transform Raspberry Pi devices into wireless access points (Security Online, ASEC).

Technical details

The vulnerability stems from a dangerous combination of permissions where the www-data user has both write access to the restapi.service file and sudo privileges to execute several critical commands without requiring a password. The vulnerability has received a CVSS v3.1 base score of 8.3 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L (NVD). The vulnerability is classified as CWE-77 (Improper Neutralization of Special Elements used in a Command).

Impact

Successful exploitation of this vulnerability allows an attacker to escalate privileges from www-data to root, potentially leading to complete system compromise. An attacker with root access can modify any file, install malicious software, steal sensitive data, and even disable the device. Since RaspAP is often used to manage wireless networks, an attacker could intercept network traffic, launch further attacks against other devices, or redirect users to malicious websites (Security Online).

Mitigation and workarounds

The vulnerability has been patched in RaspAP version 3.1.5. Users are strongly advised to update to this version or later. For those unable to update immediately, it is recommended to restrict sudo privileges for the www-data user if not needed and monitor for suspicious activity in system logs. Additionally, changing the permissions on /lib/systemd/system/restapi.service to disallow www-data from modifying it can help mitigate the vulnerability (ASEC).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65854CRITICAL9.8
  • PHPPHP
  • mineadmin/mineadmin
NoNoDec 12, 2025
CVE-2024-58303HIGH8.6
  • PHPPHP
  • fof/pretty-mail
NoNoDec 11, 2025
CVE-2025-67719HIGH8.5
  • PHPPHP
  • ibexa/user
NoYesDec 11, 2025
CVE-2025-67648HIGH7.1
  • PHPPHP
  • shopware/shopware
NoYesDec 11, 2025
CVE-2025-67737LOW3.1
  • PHPPHP
  • azuracast/azuracast
NoYesDec 12, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management