CVE-2024-2497: Billz/raspap webgui RaspAP Vulnerable To Code Injection Vulnerability
MODERATECVE-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
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).
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.
Upgrade billz/raspap-webgui to Latest secure release
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
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?
Which Billz/raspap webgui versions are affected?
What version fixes CVE-2024-2497?
Is billz/raspap-webgui affected?
What is the CVSS score of CVE-2024-2497?
What CWE is associated with CVE-2024-2497?
How can I check Packagist dependencies for CVE-2024-2497?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}