GHSA-mhpx-3rv8-wrjm ZendFramework potential XML eXternal Entity injection vectors

Not scored Published

Attackers can exploit insecure XML parsing in Zend Framework 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-mhpx-3rv8-wrjm?

GHSA-mhpx-3rv8-wrjm is a vulnerability in zendframework/zendframework1, 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-mhpx-3rv8-wrjm?

2 open source packages ship an affected version, including zendframework/zendframework1.

PackageAffectedFixed in
zendframework/zendframework1 PackagistFrom 1.12.01.12.4
zendframework/zendframework1 PackagistFrom 1.12.01.12.4

How do I fix GHSA-mhpx-3rv8-wrjm?

Upgrade zendframework/zendframework1 to 1.12.4 or later.

Is GHSA-mhpx-3rv8-wrjm being exploited?

There is no known exploitation of GHSA-mhpx-3rv8-wrjm in the wild and no public exploit code.

Sources

Is GHSA-mhpx-3rv8-wrjm in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free