ZeroHour

CVE-2024-42640

niche

Unauthenticated RCE via file upload in angular-base64-upload demo server

CVSS 3.1
9.8 critical
EPSS
45%p99
Published
()
Modified
AI analysis

angular-base64-upload versions prior to 0.1.21 contain an unauthenticated remote code execution vulnerability (CWE-434, unrestricted file upload) in the bundled demo/server.php script. An attacker with network access to that script can upload arbitrary content, which is stored under demo/uploads and can then be requested and executed by the server. Successful exploitation yields remote code execution with the privileges of the web server process, corresponding to the critical CVSS 3.1 score of 9.8 (high impact on confidentiality, integrity, and availability). Only deployments that actually expose the demo PHP file are affected, and the package is no longer supported by its maintainer, so it will not receive further fixes beyond 0.1.21. No public proof-of-concept or confirmed in-the-wild exploitation is known, but EPSS assigns a 45.4% probability of exploitation within 30 days (99th percentile), indicating elevated risk.

What to do: Upgrade to angular-base64-upload v0.1.21 or later, or replace the library given the maintainer has ended support. Remove or restrict network access to demo/server.php and demo/uploads, and ensure the uploads directory does not allow execution of uploaded files (e.g., disable PHP/script execution there). Inventory any internal or public-facing deployments running the bundled demo server, since they are the primary exposure.

Affected
adonespitogo (npm) angular-base64-upload< 0.1.21
Estimated exposure
nicheunknown; plausibly at most thousands of deployments (only installations exposing the bundled demo/server.php are affected) — No public install-count or scan data was provided; the flaw resides in the demo PHP server bundled with the npm package, which is rarely deployed or exposed in production, so exposure is expected to be limited to a small subset of users of…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

angular-base64-upload prior to v0.1.21 is vulnerable to unauthenticated remote code execution via demo/server.php. Exploiting this vulnerability allows an attacker to upload arbitrary content to the server, which can subsequently be accessed through demo/uploads. This leads to the execution of previously uploaded content and enables the attacker to achieve code execution on the server. NOTE: This vulnerability only affects products that are no longer supported by the maintainer.

Weakness
CWE-434
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

In the news

No ingested article mentions this CVE yet.