CVE-2024-2497: Billz/raspap webgui RaspAP Vulnerable To Code Injection Vulnerability

MODERATE
Advisory Identifier: GHSA-99wg-vmvq-2cp5
CVSS 4.7
CWE-94
Published
Advisory Summary

CVE-2024-2497 is a MODERATE (CVSS 4.7) raspap vulnerable to code injection vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Billz/raspap webgui libraries in the Packagist ecosystem. The issue involves raspap vulnerable to code injection via an unknown process in file `includes/provider.php`. Remediation is available in the latest vendor maintenance releases.

CVE-2024-2497 at a Glance

CVE Identifier CVE-2024-2497
GHSA Identifier GHSA-99wg-vmvq-2cp5
Severity MODERATE
CVSS v3.1 Base Score 4.7
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Billz/raspap webgui
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 4.7

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

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

How to Fix CVE-2024-2497

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-2497, 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-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. 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

A vulnerability was found in RaspAP raspap-webgui 3.0.9 and classified as critical. This issue affects some unknown processing of the file includes/provider.php of the component HTTP POST Request Handler. The manipulation of the argument country leads to code injection. The attack may be initiated remotely. The exploit has been disclosed to the public and may be used. The associated identifier of this vulnerability is VDB-256919. NOTE: The vendor was contacted early about this disclosure but did not respond in any way.

CVE-2024-2497 Affected Billz/raspap webgui Versions

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

References

Frequently Asked Questions

What is CVE-2024-2497?
CVE-2024-2497 is a security vulnerability in Billz/raspap webgui involving RaspAP Vulnerable to Code Injection via an Unknown Process in File `includes/provider.php` under CWE-94: Improper Control of Generation of Code ('Code Injection').
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-2497?
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-2497?
CVE-2024-2497 has a CVSS v3.1 base score of 4.7 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2024-2497?
CVE-2024-2497 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.).
How can I check Packagist dependencies for CVE-2024-2497?
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-99wg-vmvq-2cp5",
  "modified" : "2025-04-10T12:42:17Z",
  "published" : "2024-03-15T18:30:38Z",
  "aliases" : [ "CVE-2024-2497" ],
  "summary" : "RaspAP Vulnerable to Code Injection via an Unknown Process in File `includes/provider.php`",
  "details" : "A vulnerability was found in RaspAP raspap-webgui 3.0.9 and classified as critical. This issue affects some unknown processing of the file includes/provider.php of the component HTTP POST Request Handler. The manipulation of the argument country leads to code injection. The attack may be initiated remotely. The exploit has been disclosed to the public and may be used. The associated identifier of this vulnerability is VDB-256919. NOTE: The vendor was contacted early about this disclosure but did not respond in any way.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "billz/raspap-webgui"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "3.0.9"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-2497"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/RaspAP/raspap-webgui"
  }, {
    "type" : "WEB",
    "url" : "https://toradah.notion.site/Code-Injection-Leading-to-Remote-Code-Execution-RCE-in-RaspAP-Web-GUI-d321e1a416694520bec7099253c65060?pvs=4"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?ctiid.256919"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?id.256919"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-94" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-04-10T12:42:17Z",
    "nvd_published_at" : "2024-03-15T17:15:08Z"
  }
}