CVE-2024-41637: Billz/raspap webgui RaspAP Allows An Attacker To Vulnerability

CRITICAL
Advisory Identifier: GHSA-q623-2j2j-23jj
CVSS 9.9
CWE-269 CWE-77
Published
Advisory Summary

CVE-2024-41637 is a CRITICAL (CVSS 9.9) raspap allows an attacker to vulnerability (CWE-269: Improper Privilege Management) affecting Billz/raspap webgui libraries in the Packagist ecosystem. The issue involves raspap allows an attacker to escalate privileges. Remediation is available in the latest vendor maintenance releases.

CVE-2024-41637 at a Glance

CVE Identifier CVE-2024-41637
GHSA Identifier GHSA-q623-2j2j-23jj
Severity CRITICAL
CVSS v3.1 Base Score 9.9
CWE Classification CWE-269: Improper Privilege Management
Affected Product Billz/raspap webgui
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 9.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2024-41637

To remediate this vulnerability, upgrade all affected Billz/raspap webgui dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

billz/raspap-webgui fixed: Latest secure release
Upgrade billz/raspap-webgui to Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for billz/raspap-webgui

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-41637, inspect your project dependencies for Billz/raspap webgui:

inspect dependencies for billz/raspap-webgui

Analyze the terminal output to locate any version of Billz/raspap webgui in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-269: Improper Privilege Management, where the product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor. In Billz/raspap webgui, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

RaspAP before 3.1.5 allows an attacker to escalate privileges: the www-data user has write access to the restapi.service file and also possesses Sudo privileges to execute several critical commands without a password.

CVE-2024-41637 Affected Billz/raspap webgui Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
billz/raspap-webgui
Packagist
≤ 3.1.4

References

Frequently Asked Questions

What is CVE-2024-41637?
CVE-2024-41637 is a security vulnerability in Billz/raspap webgui involving RaspAP allows an attacker to escalate privileges under CWE-269: Improper Privilege Management.
Which Billz/raspap webgui versions are affected?
Affected versions include releases prior to current release patches across affected packages: billz/raspap-webgui.
What version fixes CVE-2024-41637?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is billz/raspap-webgui affected?
Yes, billz/raspap-webgui is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2024-41637?
CVE-2024-41637 has a CVSS v3.1 base score of 9.9 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2024-41637?
CVE-2024-41637 is classified under CWE-269: Improper Privilege Management (The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.).
How can I check Packagist dependencies for CVE-2024-41637?
Run the dependency tree command: 'inspect dependencies for billz/raspap-webgui'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-q623-2j2j-23jj",
  "modified" : "2024-07-29T17:01:23Z",
  "published" : "2024-07-29T06:30:24Z",
  "aliases" : [ "CVE-2024-41637" ],
  "summary" : "RaspAP allows an attacker to escalate privileges",
  "details" : "RaspAP before 3.1.5 allows an attacker to escalate privileges: the www-data user has write access to the restapi.service file and also possesses Sudo privileges to execute several critical commands without a password.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "billz/raspap-webgui"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "3.1.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-41637"
  }, {
    "type" : "WEB",
    "url" : "https://blog.0xzon.dev/2024-07-27-CVE-2024-41637"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/RaspAP/raspap-webgui"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-269", "CWE-77" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-07-29T17:01:23Z",
    "nvd_published_at" : "2024-07-29T06:15:02Z"
  }
}