CVE-2023-30451: Typo3/cms core Path Traversal Vulnerability

MODERATE
Advisory Identifier: GHSA-w6x2-jg8h-p6mp
CVSS 5.5
CWE-22
Published
Advisory Summary

CVE-2023-30451 is a MODERATE (CVSS 5.5) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Typo3/cms core libraries in the Packagist ecosystem. The issue involves path traversal in typo3 file abstraction layer storages. 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-2023-30451 at a Glance

CVE Identifier CVE-2023-30451
GHSA Identifier GHSA-w6x2-jg8h-p6mp
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Typo3/cms core
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 5.5

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
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-2023-30451

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-2023-30451, 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-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. 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 Configurable storages using the local driver of the File Abstraction Layer (FAL) could be configured to access directories outside of the root directory of the corresponding project. The system setting in `BE/lockRootPath` was not evaluated by the file abstraction layer component. An administrator-level backend user account is required to exploit this vulnerability. ### 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** _see [Important: #102800 changelog](https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.5.x/Important-102800-FileAbstractionLayerEnforcesAbsolutePathsToMatchProjectRootOrLockRootPath.html)_ Assuming that a web project is located in the directory `/var/www/example.org` (the "project root path" for Composer-based projects) and the publicly accessible directory is located at `/var/www/example.org/public` (the "public root path"), accessing resources via the File Abstraction Layer component is limited to the mentioned directories. To grant additional access to directories, they must be explicitly configured in the system settings of `$GLOBALS['TYPO3_CONF_VARS']['BE']['lockRootPath']` - either using the Install Tool or according to deployment techniques. The existing setting has been extended to support multiple directories configured as an array of strings. Example: ```php $GLOBALS['TYPO3_CONF_VARS']['BE']['lockRootPath'] = [ ‘/var/shared/documents/’, ‘/var/shared/images/’, ]; ``` ❗ **Storages that reference directories not explicitly granted will be marked as "offline" internally - no resources can be used in the website's frontend and backend context.** ### Credits Thanks to TYPO3 core & security team members Oliver Hader and Benjamin Franzke who fixed the issue. ### References * [TYPO3-CORE-SA-2024-001](https://typo3.org/security/advisory/typo3-core-sa-2024-001)

CVE-2023-30451 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-2023-30451?
CVE-2023-30451 is a security vulnerability in Typo3/cms core involving Path Traversal in TYPO3 File Abstraction Layer Storages under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
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-2023-30451?
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-2023-30451?
CVE-2023-30451 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:L/A:N.
What CWE is associated with CVE-2023-30451?
CVE-2023-30451 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check Packagist dependencies for CVE-2023-30451?
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-w6x2-jg8h-p6mp",
  "modified" : "2024-02-20T15:17:43Z",
  "published" : "2024-02-13T19:08:10Z",
  "aliases" : [ "CVE-2023-30451" ],
  "summary" : "Path Traversal in TYPO3 File Abstraction Layer Storages",
  "details" : "### Problem\nConfigurable storages using the local driver of the File Abstraction Layer (FAL) could be configured to access directories outside of the root directory of the corresponding project. The system setting in `BE/lockRootPath` was not evaluated by the file abstraction layer component. An administrator-level backend user account is required to exploit this vulnerability.\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\n_see [Important: #102800 changelog](https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.5.x/Important-102800-FileAbstractionLayerEnforcesAbsolutePathsToMatchProjectRootOrLockRootPath.html)_\n\nAssuming that a web project is located in the directory `/var/www/example.org` (the \"project root path\" for Composer-based projects) and the publicly accessible directory is located at `/var/www/example.org/public` (the \"public root path\"), accessing resources via the File Abstraction Layer component is limited to the mentioned directories.\n\nTo grant additional access to directories, they must be explicitly configured in the system settings of `$GLOBALS['TYPO3_CONF_VARS']['BE']['lockRootPath']` - either using the Install Tool or according to deployment techniques. The existing setting has been extended to support multiple directories configured as an array of strings.\n\nExample:\n```php\n$GLOBALS['TYPO3_CONF_VARS']['BE']['lockRootPath'] = [\n  ‘/var/shared/documents/’,\n  ‘/var/shared/images/’,\n];\n```\n\n❗ **Storages that reference directories not explicitly granted will be marked as \"offline\" internally - no resources can be used in the website's frontend and backend context.**\n\n### Credits\nThanks to TYPO3 core & security team members Oliver Hader and Benjamin Franzke who fixed the issue.\n\n### References\n* [TYPO3-CORE-SA-2024-001](https://typo3.org/security/advisory/typo3-core-sa-2024-001)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/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-w6x2-jg8h-p6mp"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-30451"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/TYPO3/typo3/commit/205115cca3d67594a12d0195c937da0e51eb494a"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/TYPO3/typo3/commit/78fb9287a2f0487c39288070cb0493a5265f1789"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/TYPO3/typo3/commit/accf537c7379b4359bc0f957c4d0c07baddd710a"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/TYPO3/typo3"
  }, {
    "type" : "WEB",
    "url" : "https://typo3.org/security/advisory/typo3-core-sa-2024-001"
  }, {
    "type" : "WEB",
    "url" : "http://packetstormsecurity.com/files/176274/TYPO3-11.5.24-Path-Traversal.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-13T19:08:10Z",
    "nvd_published_at" : null
  }
}