CVE-2019-11831 — Directory Traversal in typo3/phar-stream-wrapper
Directory Traversal in typo3/phar-stream-wrapper
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (5.44%). Schedule for your next planned update.
Does your project use an affected typo3/phar-stream-wrapper version?
Paste your composer.lock to check it for CVE-2019-11831 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
The PharStreamWrapper (aka phar-stream-wrapper) package 2.x before 2.1.1 and 3.x before 3.1.1 for TYPO3 does not prevent directory traversal, which allows attackers to bypass a deserialization protection mechanism, as demonstrated by a phar:///path/bad.phar/../good.phar URL.
Advisory Timeline
- First published September 30, 2021 (1883 days ago).
- Last revised December 10, 2025 — 1532 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "typo3/phar-stream-wrapper:^2.1.1"
composer require "typo3/phar-stream-wrapper:^3.1.1"
composer require "drupal/drupal:^8.7.1"
composer require "drupal/drupal:^8.6.16"
composer require "drupal/drupal:^7.67.0"
composer require "drupal/core:^7.67.0"
composer require "drupal/core:^8.7.1"
composer require "drupal/core:^8.6.16"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (8)
Affects 1 ecosystem: Packagist (3).
| Package | Fixed In |
|---|---|
| typo3/phar-stream-wrapper Packagist · Affected: v2.0.0, v2.0.1, v2.1.0 | 2.1.1 |
| typo3/phar-stream-wrapper Packagist · Affected: v3.0.0, v3.0.1, v3.1.0 | 3.1.1 |
| drupal/drupal Packagist · Affected: 8.7.0 | 8.7.1 |
| drupal/drupal Packagist · Affected: 8.0.0, 8.0.1, 8.0.2, 8.0.3 (+97 more) | 8.6.16 |
| drupal/drupal Packagist · Affected: All versions | 7.67.0 |
| drupal/core Packagist · Affected: All versions | 7.67.0 |
| drupal/core Packagist · Affected: 8.7.0 | 8.7.1 |
| drupal/core Packagist · Affected: 8.0.0, 8.0.1, 8.0.2, 8.0.3 (+97 more) | 8.6.16 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-11831ADVISORY
- https://www.synology.com/security/advisory/Synology_SA_19_22WEB
- https://www.drupal.org/sa-core-2019-007WEB
- https://www.debian.org/security/2019/dsa-4445WEB
- https://typo3.org/security/advisory/typo3-psa-2019-007WEB
- https://seclists.org/bugtraq/2019/May/36WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Z246UWBXBEKTQUDTLRJTC7XYBIO4IBE4WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U6JX7WR6DPMKCZQP7EYFACYXSGJ3K523WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/E3NUKPG7V4QEM6QXRMHYR4ABFMW5MM2PWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AUEXS4HRI4XZ2DTZMWAVQBYBTFSJ34ARWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6QDJVUJPUW3RZ4746SC6BX4F4T6ZXNBHWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/65ODQHDHWR74L6TCAPAQR5FQHG6MCXAWWEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z246UWBXBEKTQUDTLRJTC7XYBIO4IBE4WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U6JX7WR6DPMKCZQP7EYFACYXSGJ3K523WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/E3NUKPG7V4QEM6QXRMHYR4ABFMW5MM2PWEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AUEXS4HRI4XZ2DTZMWAVQBYBTFSJ34ARWEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6QDJVUJPUW3RZ4746SC6BX4F4T6ZXNBHWEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/65ODQHDHWR74L6TCAPAQR5FQHG6MCXAWWEB
- https://lists.debian.org/debian-lts-announce/2019/05/msg00029.htmlWEB
- https://github.com/TYPO3/phar-stream-wrapper/releases/tag/v3.1.1WEB
- https://github.com/TYPO3/phar-stream-wrapper/releases/tag/v2.1.1WEB
- https://github.com/TYPO3/phar-stream-wrapperPACKAGE
- https://github.com/FriendsOfPHP/security-advisories/blob/master/typo3/phar-stream-wrapper/CVE-2019-11831.yamlWEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/CVE-2019-11831.yamlWEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2019-11831.yamlWEB
- https://www.securityfocus.com/bid/108302WEB
Frequently Asked Questions
- What is CVE-2019-11831?
- Directory Traversal in typo3/phar-stream-wrapper. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2019-11831?
- CVE-2019-11831 affects typo3/phar-stream-wrapper, drupal/drupal and drupal/core. It has a 5.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2019-11831 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top 10% of EPSS-scored vulnerabilities — 93.5% of tracked vulnerabilities score at or below it, so it is substantially more likely to be exploited than most tracked vulnerabilities.
Also Known As
Related CVEs
- CVE-2018-7602CRITICAL
Drupal Core Remote Code Execution Vulnerability
- CVE-2019-11830CRITICAL
PharStreamWrapper for Typo3 unsafe deserialization vulnerability
- CVE-2018-7600CRITICAL
Drupal Core Remote Code Execution Vulnerability
- CVE-2019-6339CRITICAL
Arbitrary PHP code execution in Drupal
- CVE-2017-6920CRITICAL
Drupal PECL YAML parser unsafe object handling
- CVE-2017-6925CRITICAL
Drupal Entity access bypass for entities that do not have UUIDs or have protected revisions
- CVE-2020-13671HIGH
Drupal core Unrestricted Upload of File with Dangerous Type
- CVE-2024-55636LOW
Drupal core contains a potential PHP Object Injection vulnerability