CVE-2024-52306: Backpack/filemanager FileManager Deserialization Of Untrusted Data Vulnerability

HIGH
Advisory Identifier: GHSA-8237-957h-h2c2
CVSS 7.6
CWE-502
Published
Advisory Summary

CVE-2024-52306 is a HIGH (CVSS 7.6) filemanager deserialization of untrusted data vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Backpack/filemanager libraries in the Packagist ecosystem. The issue involves filemanager deserialization of untrusted data vulnerability. Remediation is available by upgrading affected packages to version 3.0.9, 2.0.2.

CVE-2024-52306 at a Glance

CVE Identifier CVE-2024-52306
GHSA Identifier GHSA-8237-957h-h2c2
Severity HIGH
CVSS v3.1 Base Score 7.6
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Backpack/filemanager
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 7.6

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required High (PR:H)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2024-52306

To remediate this vulnerability, upgrade all affected Backpack/filemanager dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

backpack/filemanager fixed: 3.0.9
Upgrade backpack/filemanager to 3.0.9
backpack/filemanager fixed: 2.0.2
Upgrade backpack/filemanager to 2.0.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for backpack/filemanager

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-52306, inspect your project dependencies for Backpack/filemanager:

inspect dependencies for backpack/filemanager

Analyze the terminal output to locate any version of Backpack/filemanager in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.9), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Backpack/filemanager, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact Deserialization of untrusted data from the `mimes` parameter could lead to remote code execution. ### Patches Fixed in 3.0.9 ### Workarounds Not needed, a `composer update` will solve it in a non-breaking way. ### References Reported responsibly [Vladislav Gladkiy](https://github.com/catferq) at [Positive Technologies](https://www.ptsecurity.com/ww-en/).

CVE-2024-52306 Affected Backpack/filemanager Versions

2 component(s)
Fixed Versions:
3.0.92.0.2
Product / Package Ecosystem Affected Versions Fixed Version
backpack/filemanager
Packagist
≥ 3.0.0
< 3.0.9
3.0.9
backpack/filemanager
Packagist
< 2.0.2
2.0.2

References

Frequently Asked Questions

What is CVE-2024-52306?
CVE-2024-52306 is a security vulnerability in Backpack/filemanager involving FileManager Deserialization of Untrusted Data vulnerability under CWE-502: Deserialization of Untrusted Data.
Which Backpack/filemanager versions are affected?
Affected versions include releases prior to 3.0.9, 2.0.2 across affected packages: backpack/filemanager.
What version fixes CVE-2024-52306?
Upgrading to 3.0.9, 2.0.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is backpack/filemanager affected?
Yes, backpack/filemanager is affected in releases prior to 3.0.9, 2.0.2. Upgrade your dependency to 3.0.9, 2.0.2 or later.
What is the CVSS score of CVE-2024-52306?
CVE-2024-52306 has a CVSS v3.1 base score of 7.6 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2024-52306?
CVE-2024-52306 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check Packagist dependencies for CVE-2024-52306?
Run the dependency tree command: 'inspect dependencies for backpack/filemanager'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-8237-957h-h2c2",
  "modified" : "2024-11-18T20:35:06Z",
  "published" : "2024-11-13T18:43:02Z",
  "aliases" : [ "CVE-2024-52306" ],
  "summary" : "FileManager Deserialization of Untrusted Data vulnerability",
  "details" : "### Impact\nDeserialization of untrusted data from the `mimes` parameter could lead to remote code execution.\n\n### Patches\nFixed in 3.0.9\n\n### Workarounds\nNot needed, a `composer update` will solve it in a non-breaking way.\n\n### References\nReported responsibly [Vladislav Gladkiy](https://github.com/catferq) at [Positive Technologies](https://www.ptsecurity.com/ww-en/).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "backpack/filemanager"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.0.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "backpack/filemanager"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Laravel-Backpack/FileManager/security/advisories/GHSA-8237-957h-h2c2"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-52306"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Laravel-Backpack/FileManager/commit/2830498b85e05fb3c92179053b4d7c4a0fdb880b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Laravel-Backpack/FileManager"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-11-13T18:43:02Z",
    "nvd_published_at" : "2024-11-13T16:15:20Z"
  }
}