Skip to content

← Public intelligence

Packagist package

nesbot/carbon

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

1 actionable advisory, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. Medium, CVSS 6.3PackagistPublished

    Carbon has an arbitrary file include via unvalidated input passed to Carbon::setLocale

    CVE-2025-22145 · GHSA-j3f9-p6hm-5w6q

    Affected
    • Packagist nesbot/carbon >= 3.0.0, < 3.8.4; < 2.72.6
    Fixed in
    2.72.63.8.4· Vendor fix available
    Issue
    Impact 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 or require to read it, then they are at risk of arbitrary code ran on their servers. Patches - 3.8.4 - 2.72.6 Workarounds Any of the below actions can be taken to prevent the issue: - Validate input before calling setLocale(), for instance by forbidding or removing / and \ - Call setLocale() only with a locale from a whitelist of supported locales - When uploading files, rename them so they cannot have a .php extension (this is recommended even if you're not affected by this issue) - Prefer storage system that are not local to the application (remote service, or local service ran by another user so the uploaded files actually live outside of the application basedir) References https://en.wikipedia.org/wiki/Fileinclusionvulnerability Credits Thanks to Szczepan Hołyszewski who…

    Recommended action: Upgrade to 3.8.4 or 2.72.6 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →