# CVE-2012-5657: Zend Framework XXE Vulnerability

> Remote attackers can exploit an XML External Entity vulnerability in Zend Framework to read arbitrary files, access intranet servers, or cause denial of service.

- **Severity:** Medium 5.0 (`AV:N/AC:L/Au:N/C:P/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 2 May 2013
- **Updated:** 6 Aug 2024
- **Also known as:** DSA-2602-1, GHSA-9m5v-vq4f-mrvf, UBUNTU-CVE-2012-5657

## What is CVE-2012-5657?

CVE-2012-5657 is a medium-severity vulnerability in n/a, published on 2 May 2013. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

The (1) Zend_Feed_Rss and (2) Zend_Feed_Atom classes in Zend_Feed in Zend Framework 1.11.x before 1.11.15 and 1.12.x before 1.12.1 allow remote attackers to read arbitrary files, send HTTP requests to intranet servers, and possibly cause a denial of service (CPU and memory consumption) via an XML External Entity (XXE) attack.

Weakness: CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor)

## Which versions are affected by CVE-2012-5657?

4 open source packages ship an affected version, including zendframework/zendframework1. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `zendframework/zendframework1` | Packagist | All versions | 1.11.15 |
| `zendframework/zendframework1` | Packagist | All versions | 1.11.15 |
| `zendframework/zendframework1` | Packagist | From 1.12.0-rc1 | 1.12.1 |
| `zendframework/zendframework1` | Packagist | From 1.12.0-rc1 | 1.12.1 |

Products: Zend Zend Framework.

## How do I fix CVE-2012-5657?

Upgrade zendframework/zendframework1 to a fixed version for your release line: 1.11.15 or 1.12.1.

## Is CVE-2012-5657 being exploited?

There is no known exploitation of CVE-2012-5657 in the wild and no public exploit code.

## Other vulnerabilities in n/a

- [CVE-2020-29312](https://insights.sbomify.com/CVE-2020-29312/): Deserialization in n/a (critical 9.8)
- [CVE-2015-1555](https://insights.sbomify.com/CVE-2015-1555/): Auth bypass in n/a (critical 9.1)
- [CVE-2015-1786](https://insights.sbomify.com/CVE-2015-1786/): Zend Framework CSRF Vulnerability (high 8.8)
- [CVE-2015-7503](https://insights.sbomify.com/CVE-2015-7503/): Zend Framework Information Disclosure (high 7.5)
- [CVE-2014-2685](https://insights.sbomify.com/CVE-2014-2685/): Auth bypass in n/a (high 7.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2012-5657 and fix it if it is affected.

What it is: CVE-2012-5657 is a medium-severity vulnerability in n/a, published on 2 May 2013. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2012-5657 in the wild and no public exploit code.

Affected packages and fixed versions:
- zendframework/zendframework1 (Packagist): affected all versions; fixed in 1.11.15
- zendframework/zendframework1 (Packagist): affected all versions; fixed in 1.11.15
- zendframework/zendframework1 (Packagist): affected from 1.12.0-rc1; fixed in 1.12.1
- zendframework/zendframework1 (Packagist): affected from 1.12.0-rc1; fixed in 1.12.1

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2012-5657/ (Markdown: https://insights.sbomify.com/CVE-2012-5657/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2012-5657
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2012-5657
- OSV: https://osv.dev/vulnerability/CVE-2012-5657

---
From sbomify Insights: https://insights.sbomify.com/CVE-2012-5657/
Summaries are generated and may contain mistakes; the official description above is the record.
