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.
{
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "php-nesbot-carbon",
"binary_version": "1.27.0-2ubuntu0.1~esm1"
}
]
}
{
"cves": [
{
"id": "CVE-2025-22145",
"severity": [
{
"score": "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",
"source": "CNA",
"type": "CVSS_V4"
},
{
"score": "medium",
"source": "SELF",
"type": "Ubuntu"
}
]
}
],
"ecosystem": "Ubuntu:Pro:20.04:LTS"
}
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9332-1.json"