Summary
It was discovered that Carbon did not properly validate locale names. If an
application passed unsanitized user input as a locale and allowed users to
upload files with a .php extension, a remote attacker could possibly use
this issue to include arbitrary files and execute arbitrary code.
Fixed packages 1
| Release | Package | Fixed in |
|---|---|---|
| Ubuntu · Pro 20.04 LTS Pro:20.04:LTS | php-nesbot-carbon | 1.27.0-2ubuntu0.1~esm1 |
Vulnerabilities 1
-
Medium 6.3
Carbon has an arbitrary file include via unvalidated input passed to Carbon::setLocale
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 …
References
-
report
https://ubuntu.com/security/CVE-2025-22145