---
title: "TYPO3-PSA-2019-008: By-passing protection of Phar Stream Wrapper Interceptor"
url: "https://news.typo3.com/security/advisory/typo3-psa-2019-008"
description: It has been discovered that the protection against insecure deserialization can be by-passed in Phar Stream Wrapper component.
image: "https://news.typo3.com/_assets/d1e01514e4c4a5b3147940fa2ec50682/Images/og-image-news.jpg"
date: 2026-06-11
modified: 2026-06-11
categories:
  - "Developer & Technology"
  - Public Service Announcement
---

# TYPO3-PSA-2019-008: By-passing protection of Phar Stream Wrapper Interceptor

- [Developer & Technology](https://news.typo3.com/article/category/developer-technology)
- Security / [Public Service Announcement](https://news.typo3.com/article/category/security/public-service-announcement)

TYPO3-PSA-2019-008: By-passing protection of Phar Stream Wrapper Interceptor
============================================================================

08 May 2019

![A laptop screen displaying a list of security advisories](https://news.typo3.com/typo3temp/assets/_processed_/d/c/csm_security_blog_default_77f8e86036.webp)

It has been discovered that the protection against insecure deserialization can be by-passed in Phar Stream Wrapper component.

- ![](https://news.typo3.com/typo3temp/assets/t3g/blog/gravatar/b8266fdc667b773926c59081862ab148.jpeg)[Oliver Hader](https://news.typo3.com/article/author/oliver-hader)

- **Release Date:** May 8, 2019
- **Component Type:** PharStreamWrapper (package [typo3/phar-stream-wrapper](https://packagist.org/packages/typo3/phar-stream-wrapper))
- **Impact:** By-passing protection against insecure deserialization
- **Affected Versions:** 2.0.0-2.1.0 and 3.0.0-3.1.0 of the package
- **CVE:** [CVE-2019-11830](https://nvd.nist.gov/vuln/detail/CVE-2019-11830)

### Problem Description

Insecure deserialization is a vulnerability which occurs when untrusted data is used to abuse the logic of an application. In July 2018, the vulnerability of insecure deserialization when executing Phar archives was addressed by removing the known attack vector in the TYPO3 core. For more details read the [corresponding TYPO3 advisory](https://typo3.org/security/advisory/typo3-core-sa-2018-002/).

The specific *PharMetaDataInterceptor* is targeted to discover potential insecure serialized objects in the meta-data section of Phar archives. In order to retrieve that information the Phar structure has been parsed without actually invoking PHP’s native process - which would directly lead to the original vulnerability. Due to flaws in Phar stub parsing it was possible to inject manipulated bundles that would to have been blocked by the mentioned *PharMetaDataInterceptor*.

### Solution

Internal Phar stub parsing has been adjusted to match actual handling like provided in the native PHP source code.

The Phar Stream Wrapper [package is available for any PHP driven project for download](https://github.com/TYPO3/phar-stream-wrapper/).

Users who downloaded the previous version are advised to upgrade to versions 3.1.1 (for PHP v7.0 and later) and 2.1.1 (for PHP v5.3 and later) to keep their projects safe. This also has been addressed already in recent TYPO3 releases of versions 8.7.25 LTS and 9.5.6 LTS.

### Severity

The final severity assessment has to be done in the component making use of the Phar Stream Wrapper package and depends on the interceptor strategy that has been used. In case file invocations on user submitted paths are allowed at least insecure deserialization is possible. Depending on the specific implementation in the using components this could lead to higher impact scores concerning confidentiality, integrity and availability.

### Download

Please either upgrade to versions v3.1.1 and v2.1.1 manually or ensure Composer dependencies are raised to the mentioned new versions.

- <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://packagist.org/packages/typo3/phar-stream-wrapper>

### Credits

Thanks to [Tom Klingenberg](https://github.com/ktomk) who reported this issue and provided according security fixes.

### General Advice

Follow the recommendations that are given in the [TYPO3 Security Guide](https://docs.typo3.org/typo3cms/CoreApiReference/Security/Index.html#security-guidelines). Please subscribe to the [typo3-announce](http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-announce) mailing list.

![](https://news.typo3.com/typo3temp/assets/t3g/blog/gravatar/cc7cba9757f98fbe05023a139119df74.jpeg)

About the Author

[Oliver Hader](https://news.typo3.com/article/author/oliver-hader)

Core Developer at TYPO3 GmbH,Hof, Germany

[Website](https://typo3.com)[Twitter](https://twitter.com/ohader)[LinkedIn](https://www.linkedin.com/in/oliverhader/)[Xing](https://www.xing.com/profile/Oliver_Hader)

Oliver started to work with TYPO3 in 2005 and was fascinated by the product and its universe. Since 2007 he is member of the TYPO3 Core Team. After going back to university in 2014 for achieving a postgraduate master degree in internet web science, he is now researching on advanced web technology topics in general and for TYPO3 in particular.

In his spare time, Oliver loves to go cycling cross-country in the uplands around Hof (Germany) in northern Bavaria - at the region where he's living as well.

[More posts by this author](https://news.typo3.com/article/author/oliver-hader)