Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')
CVE-2025-22145
Summary
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 a .php extension in a folder that allows include or requires them to read it, then they are at risk of arbitrary code running on their servers. This issue affects the nesbot/carbon versions through 2.72.5 and 3.0.0-beta.1 through 3.8.3.
- LOW
- NETWORK
- NONE
- NONE
CWE-98 - Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')
The PHP application receives input from an upstream component, but it does not restrict or incorrectly restricts the input before its usage in "require," "include," or similar functions.
References
Advisory Timeline
- Published