USN-9332-1: php-nesbot-carbon vulnerability
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/php-nesbot-carbonto a version that resolves this vulnerability.Fixed in 1.27.0-2ubuntu0.1~esm1
Event History
Frequently Asked Questions
Which deployments are realistically exposed?
Applications using php-nesbot-carbon are exposed if they pass unsanitized user-controlled input as a locale and permit users to upload files with a .php extension.
What does an attacker need to exploit this issue?
The attacker needs influence over the locale value through unsanitized input and a way to place a file with a .php extension where it can be included. Successful exploitation may allow arbitrary file inclusion and arbitrary code execution.