Carbon is an international PHP extension for DateTime. Application passing unsanitized user input to Carbon::setLocale are at risk of arbitrary file include, if the application allows users to upload files with .php extension in an folder that allows include or require to read it, then they are at risk of arbitrary code ran on their servers. This vulnerability is fixed in 3.8.4 and 2.72.6.
History

Wed, 08 Jan 2025 20:45:00 +0000

Type Values Removed Values Added
Description Carbon is an international PHP extension for DateTime. Application passing unsanitized user input to Carbon::setLocale are at risk of arbitrary file include, if the application allows users to upload files with .php extension in an folder that allows include or require to read it, then they are at risk of arbitrary code ran on their servers. This vulnerability is fixed in 3.8.4 and 2.72.6.
Title Carbon has an arbitrary file include via unvalidated input passed to Carbon::setLocale
Weaknesses CWE-98
References
Metrics cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published: 2025-01-08T20:40:37.545Z

Updated: 2025-01-08T20:40:37.545Z

Reserved: 2024-12-30T03:00:33.654Z

Link: CVE-2025-22145

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2025-01-08T21:15:13.480

Modified: 2025-01-08T21:15:13.480

Link: CVE-2025-22145

cve-icon Redhat

No data.