CVE-2017-10993: Contao/contao Path Traversal Vulnerability

HIGH
Advisory Identifier: GHSA-x5g4-crxq-qxjx
CVSS 8.8
CWE-22
Published
Advisory Summary

CVE-2017-10993 is a HIGH (CVSS 8.8) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Contao/contao libraries in the Packagist ecosystem. The issue involves contao core directory traversal vulnerability. Remediation is available by upgrading affected packages to version 4.4.1, 3.5.28.

CVE-2017-10993 at a Glance

CVE Identifier CVE-2017-10993
GHSA Identifier GHSA-x5g4-crxq-qxjx
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Contao/contao
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 8.8

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

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 High (I:H)
Availability High (A:H)

How to Fix CVE-2017-10993

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

contao/contao fixed: 4.4.1
Upgrade contao/contao to 4.4.1
contao/core-bundle fixed: 4.4.1
Upgrade contao/core-bundle to 4.4.1
contao/core fixed: 3.5.28
Upgrade contao/core to 3.5.28
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 contao/contao

How to Check if You Are Affected

To determine whether your application is affected by CVE-2017-10993, inspect your project dependencies for Contao/contao:

inspect dependencies for contao/contao

Analyze the terminal output to locate any version of Contao/contao in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.4.1), 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 Contao/contao, 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

A logged in back end user can include arbitrary PHP files by manipulating an URL parameter. Since Contao does not allow to upload PHP files in the file manager, the attack is limited to the existing PHP files on the server.

CVE-2017-10993 Affected Contao/contao Versions

3 component(s)
Fixed Versions:
4.4.13.5.28
Product / Package Ecosystem Affected Versions Fixed Version
contao/contao
Packagist
≥ 4.0.0
< 4.4.1
4.4.1
contao/core-bundle
Packagist
≥ 4.0.0
< 4.4.1
4.4.1
contao/core
Packagist
≥ 3.0.0
< 3.5.28
3.5.28

References

Frequently Asked Questions

What is CVE-2017-10993?
CVE-2017-10993 is a security vulnerability in Contao/contao involving Contao Core directory traversal vulnerability under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Contao/contao versions are affected?
Affected versions include releases prior to 4.4.1, 3.5.28 across affected packages: contao/contao, contao/core-bundle, contao/core.
What version fixes CVE-2017-10993?
Upgrading to 4.4.1, 3.5.28 (or the latest patched release for your respective branch) resolves the vulnerability.
Is contao/contao affected?
Yes, contao/contao is affected in releases prior to 4.4.1. Upgrade your dependency to 4.4.1 or later.
Is contao/core-bundle affected?
Yes, contao/core-bundle is affected in releases prior to 4.4.1. Upgrade your dependency to 4.4.1 or later.
What is the CVSS score of CVE-2017-10993?
CVE-2017-10993 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2017-10993?
CVE-2017-10993 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-2017-10993?
Run the dependency tree command: 'inspect dependencies for contao/contao'. 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-x5g4-crxq-qxjx",
  "modified" : "2024-04-25T23:17:00Z",
  "published" : "2022-05-13T01:42:03Z",
  "aliases" : [ "CVE-2017-10993" ],
  "summary" : "Contao Core directory traversal vulnerability",
  "details" : "A logged in back end user can include arbitrary PHP files by manipulating an URL parameter. Since Contao does not allow to upload PHP files in the file manager, the attack is limited to the existing PHP files on the server.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "contao/contao"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.4.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "contao/core-bundle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.4.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "contao/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.5.28"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-10993"
  }, {
    "type" : "WEB",
    "url" : "https://contao.org/en/news/contao-3_5_28.html"
  }, {
    "type" : "WEB",
    "url" : "https://contao.org/en/news/contao-4_4_1.html"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/contao/CVE-2017-10993.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/core-bundle/CVE-2017-10993.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/core/CVE-2017-10993.yaml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-25T23:17:00Z",
    "nvd_published_at" : "2017-07-21T06:29:00Z"
  }
}