PT-2025-4381

CVE-2025-22145

·

Published

2025-01-08

·

Updated

2025-03-16

Description by

CVSS 4.0
6.3
Medium
MetricsAV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Name of the Vulnerable Software and Affected Versions Carbon versions prior to 3.8.4 Carbon versions prior to 2.72.6
Description The issue arises when applications pass unsanitized user input to Carbon::setLocale, putting them at risk of arbitrary file inclusion. If the application allows users to upload files with a .php extension in a folder that permits include or require to read it, they are at risk of arbitrary code execution on their servers.
Recommendations For versions prior to 3.8.4, update to version 3.8.4 or later. For versions prior to 2.72.6, update to version 2.72.6 or later. As a temporary workaround, consider validating input before calling setLocale(), such as forbidding or removing / and ``. Alternatively, call setLocale() only with a locale from a whitelist of supported locales. When uploading files, rename them so they cannot have a .php extension. Prefer storage systems that are not local to the application, such as remote services or local services run by another user.
Exploitability
Exploit
Fix
Vendors
Affected products
Related identifiers
GHSA-J3F9-P6HM-5W6Q
DLA-4068-1
Found an issue in the description? Have something to add? Feel free to write us 👾