CVE-2024-25121: Typo3/cms core TYPO3 Vulnerable To Improper Access Vulnerability

HIGH
Advisory Identifier: GHSA-rj3x-wvc6-5j66
CVSS 7.1
CWE-284 CWE-200
Published
Advisory Summary

CVE-2024-25121 is a HIGH (CVSS 7.1) typo3 vulnerable to improper access vulnerability (CWE-284: Improper Access Control) affecting Typo3/cms core libraries in the Packagist ecosystem. The issue involves typo3 vulnerable to improper access control persisting file abstraction layer entities via data handler. Remediation is available by upgrading affected packages to version 8.7.57, 9.5.46, 10.4.43, 11.5.35, 12.4.11, 13.0.1.

CVE-2024-25121 at a Glance

CVE Identifier CVE-2024-25121
GHSA Identifier GHSA-rj3x-wvc6-5j66
Severity HIGH
CVSS v3.1 Base Score 7.1
CWE Classification CWE-284: Improper Access Control
Affected Product Typo3/cms core
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 7.1

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2024-25121

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

typo3/cms-core fixed: 8.7.57
Upgrade typo3/cms-core to 8.7.57
typo3/cms-core fixed: 9.5.46
Upgrade typo3/cms-core to 9.5.46
typo3/cms-core fixed: 10.4.43
Upgrade typo3/cms-core to 10.4.43
typo3/cms-core fixed: 11.5.35
Upgrade typo3/cms-core to 11.5.35
typo3/cms-core fixed: 12.4.11
Upgrade typo3/cms-core to 12.4.11
typo3/cms-core fixed: 13.0.1
Upgrade typo3/cms-core to 13.0.1
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 typo3/cms-core

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-25121, inspect your project dependencies for Typo3/cms core:

inspect dependencies for typo3/cms-core

Analyze the terminal output to locate any version of Typo3/cms core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.7.57), 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-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Typo3/cms core, 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

### Problem Entities of the File Abstraction Layer (FAL) could be persisted directly via `DataHandler`. This allowed attackers to reference files in the fallback storage directly and retrieve their file names and contents. The fallback storage ("zero-storage") is used as a backward compatibility layer for files located outside properly configured file storages and within the public web root directory. Exploiting this vulnerability requires a valid backend user account. ### Solution Update to TYPO3 versions 8.7.57 ELTS, 9.5.46 ELTS, 10.4.43 ELTS, 11.5.35 LTS, 12.4.11 LTS, 13.0.1 that fix the problem described. #### â„šī¸ Strong security defaults - Manual actions required When persisting entities of the File Abstraction Layer directly via DataHandler, `sys_file` entities are now denied by default, and `sys_file_reference` & `sys_file_metadata` entities are not permitted to reference files in the fallback storage anymore. When importing data from secure origins, this must be explicitly enabled in the corresponding DataHandler instance by using `$dataHandler->isImporting = true;`. ### Credits Thanks to TYPO3 core & security team member Oliver Hader who reported and fixed the issue. ### References * [TYPO3-CORE-SA-2024-006](https://typo3.org/security/advisory/typo3-core-sa-2024-006)

CVE-2024-25121 Affected Typo3/cms core Versions

6 component(s)
Fixed Versions:
8.7.579.5.4610.4.4311.5.3512.4.1113.0.1
Product / Package Ecosystem Affected Versions Fixed Version
typo3/cms-core
Packagist
≥ 8.0.0
< 8.7.57
8.7.57
typo3/cms-core
Packagist
≥ 9.0.0
< 9.5.46
9.5.46
typo3/cms-core
Packagist
≥ 10.0.0
< 10.4.43
10.4.43
typo3/cms-core
Packagist
≥ 11.0.0
< 11.5.35
11.5.35
typo3/cms-core
Packagist
≥ 12.0.0
< 12.4.11
12.4.11
typo3/cms-core
Packagist
≥ 13.0.0
< 13.0.1
All 1 versions
13.0.0
13.0.1

References

Frequently Asked Questions

What is CVE-2024-25121?
CVE-2024-25121 is a security vulnerability in Typo3/cms core involving TYPO3 vulnerable to Improper Access Control Persisting File Abstraction Layer Entities via Data Handler under CWE-284: Improper Access Control.
Which Typo3/cms core versions are affected?
Affected versions include releases prior to 8.7.57, 9.5.46, 10.4.43, 11.5.35, 12.4.11, 13.0.1 across affected packages: typo3/cms-core.
What version fixes CVE-2024-25121?
Upgrading to 8.7.57, 9.5.46, 10.4.43, 11.5.35, 12.4.11, 13.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is typo3/cms-core affected?
Yes, typo3/cms-core is affected in releases prior to 8.7.57, 9.5.46, 10.4.43, 11.5.35, 12.4.11, 13.0.1. Upgrade your dependency to 8.7.57, 9.5.46, 10.4.43, 11.5.35, 12.4.11, 13.0.1 or later.
What is the CVSS score of CVE-2024-25121?
CVE-2024-25121 has a CVSS v3.1 base score of 7.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N.
What CWE is associated with CVE-2024-25121?
CVE-2024-25121 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check Packagist dependencies for CVE-2024-25121?
Run the dependency tree command: 'inspect dependencies for typo3/cms-core'. 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-rj3x-wvc6-5j66",
  "modified" : "2024-02-14T14:53:56Z",
  "published" : "2024-02-13T17:29:03Z",
  "aliases" : [ "CVE-2024-25121" ],
  "summary" : "TYPO3 vulnerable to Improper Access Control Persisting File Abstraction Layer Entities via Data Handler",
  "details" : "### Problem\nEntities of the File Abstraction Layer (FAL) could be persisted directly via `DataHandler`. This allowed attackers to reference files in the fallback storage directly and retrieve their file names and contents. The fallback storage (\"zero-storage\") is used as a backward compatibility layer for files located outside properly configured file storages and within the public web root directory. Exploiting this vulnerability requires a valid backend user account.\n\n\n### Solution\nUpdate to TYPO3 versions 8.7.57 ELTS, 9.5.46 ELTS, 10.4.43 ELTS, 11.5.35 LTS, 12.4.11 LTS, 13.0.1 that fix the problem described.\n\n#### â„šī¸ Strong security defaults - Manual actions required\n\nWhen persisting entities of the File Abstraction Layer directly via DataHandler, `sys_file` entities are now denied by default, and `sys_file_reference` & `sys_file_metadata` entities are not permitted to reference files in the fallback storage anymore.\n\nWhen importing data from secure origins, this must be explicitly enabled in the corresponding DataHandler instance by using `$dataHandler->isImporting = true;`.\n\n### Credits\nThanks to TYPO3 core & security team member Oliver Hader who reported and fixed the issue.\n\n### References\n* [TYPO3-CORE-SA-2024-006](https://typo3.org/security/advisory/typo3-core-sa-2024-006)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "typo3/cms-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0.0"
      }, {
        "fixed" : "8.7.57"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 8.7.56"
    }
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "typo3/cms-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.0.0"
      }, {
        "fixed" : "9.5.46"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 9.5.45"
    }
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "typo3/cms-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "10.0.0"
      }, {
        "fixed" : "10.4.43"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 10.4.42"
    }
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "typo3/cms-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "11.0.0"
      }, {
        "fixed" : "11.5.35"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 11.5.34"
    }
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "typo3/cms-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "12.0.0"
      }, {
        "fixed" : "12.4.11"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 12.4.10"
    }
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "typo3/cms-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "13.0.0"
      }, {
        "fixed" : "13.0.1"
      } ]
    } ],
    "versions" : [ "13.0.0" ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/TYPO3/typo3/security/advisories/GHSA-rj3x-wvc6-5j66"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-25121"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/TYPO3/typo3/commit/38f0bf9a61e10365be26eb75bc23a81184dbed07"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/TYPO3/typo3/commit/71e652bf84b16fd3592205f61f36750ab03db74c"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/TYPO3/typo3/commit/b47b6ddf5a5f3f852c6e43f837360780c12e3c47"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/TYPO3/typo3"
  }, {
    "type" : "WEB",
    "url" : "https://typo3.org/security/advisory/typo3-core-sa-2024-006"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-284" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-13T17:29:03Z",
    "nvd_published_at" : "2024-02-13T23:15:09Z"
  }
}