GHSA-8x2v-pcg7-94f4 Zend-JSON vulnerable to XXE/XEE attacks
Attackers can exploit insecure XML parsing in Zend-JSON to read arbitrary files or cause denial of service via entity expansion.
- Exploited in the wild
- Not known
- Login needed
- Not stated
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-8x2v-pcg7-94f4?
GHSA-8x2v-pcg7-94f4 is a vulnerability in zendframework/zend-json, published on 7 Jun 2024. It can be exploited over the network, with no action from the victim.
Official description
Numerous components utilizing PHP's DOMDocument, SimpleXML, and xml_parse functionality are vulnerable to two types of attacks:
- XML eXternal Entity (XXE) Injection attacks. The above mentioned extensions are insecure by default, allowing external entities to be specified by adding a specific DOCTYPE element to XML documents and strings. By exploiting this vulnerability an application may be coerced to open arbitrary files and/or TCP connections.
- XML Entity Expansion (XEE) vectors, leading to Denial of Service vectors. XEE attacks occur when the XML DOCTYPE declaration includes XML entity definitions that contain either recursive or circular references; this leads to CPU and memory consumption, making Denial of Service exploits trivial to implement.
Which versions are affected by GHSA-8x2v-pcg7-94f4?
4 open source packages ship an affected version, including zendframework/zend-json.
| Package | Affected | Fixed in |
|---|---|---|
zendframework/zend-json Packagist | From 2.1.0 | 2.1.6 |
zendframework/zend-json Packagist | From 2.1.0 | 2.1.6 |
zendframework/zend-json Packagist | From 2.2.0 | 2.2.6 |
zendframework/zend-json Packagist | From 2.2.0 | 2.2.6 |
How do I fix GHSA-8x2v-pcg7-94f4?
Upgrade zendframework/zend-json to a fixed version for your release line: 2.1.6 or 2.2.6.
Is GHSA-8x2v-pcg7-94f4 being exploited?
There is no known exploitation of GHSA-8x2v-pcg7-94f4 in the wild and no public exploit code.