USN-9332-1: php-nesbot-carbon vulnerability

Published Dec 1, 2026
·
Updated

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

1 affected componentFixes available
ubuntu/php-nesbot-carbon<1.27.0-2ubuntu0.1~esm1
1.27.0-2ubuntu0.1~esm1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/php-nesbot-carbon to a version that resolves this vulnerability.

    Fixed in 1.27.0-2ubuntu0.1~esm1

Event History

Dec 1, 2026
Advisory Published
via OSV·05:20 PM
Data Sourced
via OSV·05:20 PM
DescriptionAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

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.

2

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203