Skip to main content

CVE-2019-11831 — Directory Traversal in typo3/phar-stream-wrapper

CRITICAL

Directory Traversal in typo3/phar-stream-wrapper

Published September 30, 2021Updated December 10, 2025Source: OSV

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.

Check my composer.lock

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
Update typo3/phar-stream-wrapper to 2.1.1 or later
composer require "typo3/phar-stream-wrapper:^2.1.1"
Composer
Update typo3/phar-stream-wrapper to 3.1.1 or later
composer require "typo3/phar-stream-wrapper:^3.1.1"
Composer
Update drupal/drupal to 8.7.1 or later
composer require "drupal/drupal:^8.7.1"
Composer
Update drupal/drupal to 8.6.16 or later
composer require "drupal/drupal:^8.6.16"
Composer
Update drupal/drupal to 7.67.0 or later
composer require "drupal/drupal:^7.67.0"
Composer
Update drupal/core to 7.67.0 or later
composer require "drupal/core:^7.67.0"
Composer
Update drupal/core to 8.7.1 or later
composer require "drupal/core:^8.7.1"
Composer
Update drupal/core to 8.6.16 or later
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).

PackageFixed In
typo3/phar-stream-wrapper Packagist · Affected: v2.0.0, v2.0.1, v2.1.02.1.1
typo3/phar-stream-wrapper Packagist · Affected: v3.0.0, v3.0.1, v3.1.03.1.1
drupal/drupal Packagist · Affected: 8.7.08.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 versions7.67.0
drupal/core Packagist · Affected: All versions7.67.0
drupal/core Packagist · Affected: 8.7.08.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.

  • CWE-22
    Path TraversalMITRE
  • CWE-502
    Deserialization of Untrusted DataMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References

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

CVSS Score
9.8

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
5.44%
EPSS percentile: 93.5

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

GHSA-xv7v-rf6g-xwrc
DRUPAL-CORE-2019-007

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my composer.lock