# CVE-2016-7046: Undertow Uncaught Exception vulnerability

> Remote attackers can cause denial of service via CPU and disk consumption using long URLs in JBoss EAP reverse-proxy mode.

- **Severity:** Medium 5.9 (`CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 3 Oct 2016
- **Updated:** 6 Aug 2024
- **Also known as:** DEBIAN-CVE-2016-7046, GHSA-3f57-w2rp-72fc, RHSA-2016:2640, RHSA-2016:2641, RHSA-2016:2642, UBUNTU-CVE-2016-7046

## What is CVE-2016-7046?

CVE-2016-7046 is a medium-severity denial of service vulnerability in Redhat Jboss Enterprise Application Platform, published on 3 Oct 2016. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

Red Hat JBoss Enterprise Application Platform (EAP) 7, when operating as a reverse-proxy with default buffer sizes, allows remote attackers to cause a denial of service (CPU and disk consumption) via a long URL.

Weakness: CWE-399

## Which versions are affected by CVE-2016-7046?

4 open source packages ship an affected version, including io.undertow:undertow-core. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `io.undertow:undertow-core` | Maven | All versions | 1.3.25.Final |
| `io.undertow:undertow-core` | Maven | All versions | 1.3.25.Final |
| `io.undertow:undertow-core` | Maven | From 1.4.0 | 1.4.3.Final |
| `io.undertow:undertow-core` | Maven | From 1.4.0 | 1.4.3.Final |
| `eap7-hibernate` | Red Hat:jboss_enterprise_application_platform:7::el6 | All versions | 0:5.0.11-1.Final_redhat_1.1.ep7.el6 |
| `eap7-hibernate-core` | Red Hat:jboss_enterprise_application_platform:7::el6 | All versions | 0:5.0.11-1.Final_redhat_1.1.ep7.el6 |
| `eap7-hibernate-entitymanager` | Red Hat:jboss_enterprise_application_platform:7::el6 | All versions | 0:5.0.11-1.Final_redhat_1.1.ep7.el6 |
| `eap7-hibernate-envers` | Red Hat:jboss_enterprise_application_platform:7::el6 | All versions | 0:5.0.11-1.Final_redhat_1.1.ep7.el6 |
| `eap7-hibernate-infinispan` | Red Hat:jboss_enterprise_application_platform:7::el6 | All versions | 0:5.0.11-1.Final_redhat_1.1.ep7.el6 |
| `eap7-hibernate-java8` | Red Hat:jboss_enterprise_application_platform:7::el6 | All versions | 0:5.0.11-1.Final_redhat_1.1.ep7.el6 |
| `eap7-jboss-ec2-eap` | Red Hat:jboss_enterprise_application_platform:7::el6 | All versions | 0:7.0.3-3.GA_redhat_2.ep7.el6 |
| `eap7-jboss-ec2-eap-samples` | Red Hat:jboss_enterprise_application_platform:7::el6 | All versions | 0:7.0.3-3.GA_redhat_2.ep7.el6 |
| `eap7-jboss-remoting` | Red Hat:jboss_enterprise_application_platform:7::el6 | All versions | 0:4.0.21-1.Final_redhat_1.1.ep7.el6 |
| `eap7-jboss-xnio-base` | Red Hat:jboss_enterprise_application_platform:7::el6 | All versions | 0:3.4.0-1.Final_redhat_1.1.ep7.el6 |
| `eap7-undertow` | Red Hat:jboss_enterprise_application_platform:7::el6 | All versions | 0:1.3.25-1.Final_redhat_1.1.ep7.el6 |
| `eap7-wildfly` | Red Hat:jboss_enterprise_application_platform:7::el6 | All versions | 0:7.0.3-4.GA_redhat_2.1.ep7.el6 |
| `eap7-wildfly-javadocs` | Red Hat:jboss_enterprise_application_platform:7::el6 | All versions | 0:7.0.3-2.GA_redhat_3.1.ep7.el6 |
| `eap7-wildfly-modules` | Red Hat:jboss_enterprise_application_platform:7::el6 | All versions | 0:7.0.3-4.GA_redhat_2.1.ep7.el6 |
| `eap7-xerces-j2` | Red Hat:jboss_enterprise_application_platform:7::el6 | All versions | 0:2.11.0-24.SP5_redhat_1.1.ep7.el6 |
| `eap7-hibernate` | Red Hat:jboss_enterprise_application_platform:7::el7 | All versions | 0:5.0.11-1.Final_redhat_1.1.ep7.el7 |
| `eap7-hibernate-core` | Red Hat:jboss_enterprise_application_platform:7::el7 | All versions | 0:5.0.11-1.Final_redhat_1.1.ep7.el7 |
| `eap7-hibernate-entitymanager` | Red Hat:jboss_enterprise_application_platform:7::el7 | All versions | 0:5.0.11-1.Final_redhat_1.1.ep7.el7 |
| `eap7-hibernate-envers` | Red Hat:jboss_enterprise_application_platform:7::el7 | All versions | 0:5.0.11-1.Final_redhat_1.1.ep7.el7 |
| `eap7-hibernate-infinispan` | Red Hat:jboss_enterprise_application_platform:7::el7 | All versions | 0:5.0.11-1.Final_redhat_1.1.ep7.el7 |
| `eap7-hibernate-java8` | Red Hat:jboss_enterprise_application_platform:7::el7 | All versions | 0:5.0.11-1.Final_redhat_1.1.ep7.el7 |
| `eap7-jboss-ec2-eap` | Red Hat:jboss_enterprise_application_platform:7::el7 | All versions | 0:7.0.3-3.GA_redhat_2.ep7.el7 |
| `eap7-jboss-ec2-eap-samples` | Red Hat:jboss_enterprise_application_platform:7::el7 | All versions | 0:7.0.3-3.GA_redhat_2.ep7.el7 |
| `eap7-jboss-remoting` | Red Hat:jboss_enterprise_application_platform:7::el7 | All versions | 0:4.0.21-1.Final_redhat_1.1.ep7.el7 |
| `eap7-jboss-xnio-base` | Red Hat:jboss_enterprise_application_platform:7::el7 | All versions | 0:3.4.0-1.Final_redhat_1.1.ep7.el7 |
| `eap7-undertow` | Red Hat:jboss_enterprise_application_platform:7::el7 | All versions | 0:1.3.25-1.Final_redhat_1.1.ep7.el7 |
| `eap7-wildfly` | Red Hat:jboss_enterprise_application_platform:7::el7 | All versions | 0:7.0.3-4.GA_redhat_2.1.ep7.el7 |
| `eap7-wildfly-javadocs` | Red Hat:jboss_enterprise_application_platform:7::el7 | All versions | 0:7.0.3-2.GA_redhat_3.1.ep7.el7 |
| `eap7-wildfly-modules` | Red Hat:jboss_enterprise_application_platform:7::el7 | All versions | 0:7.0.3-4.GA_redhat_2.1.ep7.el7 |
| `eap7-xerces-j2` | Red Hat:jboss_enterprise_application_platform:7::el7 | All versions | 0:2.11.0-24.SP5_redhat_1.1.ep7.el7 |

Products: Redhat Jboss Enterprise Application Platform.

## How do I fix CVE-2016-7046?

Upgrade io.undertow:undertow-core to a fixed version for your release line: 1.3.25.Final or 1.4.3.Final.

## Is CVE-2016-7046 being exploited?

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

## Other vulnerabilities in Redhat Jboss Enterprise Application Platform

- [CVE-2017-12149](https://insights.sbomify.com/CVE-2017-12149/): Red Hat JBoss Application Server Remote Code Execution (critical 9.8, exploited in the wild)
- [CVE-2010-1428](https://insights.sbomify.com/CVE-2010-1428/): Red Hat JBoss Information Disclosure (medium 5.9, exploited in the wild)
- [CVE-2010-0738](https://insights.sbomify.com/CVE-2010-0738/): Red Hat JBoss Authentication Bypass (low 3.7, exploited in the wild)
- [CVE-2016-3690](https://insights.sbomify.com/CVE-2016-3690/): Deserialization in n/a (critical 9.8)
- [CVE-2017-7504](https://insights.sbomify.com/CVE-2017-7504/): Deserialization in JBoss (critical 9.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2016-7046 and fix it if it is affected.

What it is: CVE-2016-7046 is a medium-severity denial of service vulnerability in Redhat Jboss Enterprise Application Platform, published on 3 Oct 2016. 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-2016-7046 in the wild and no public exploit code.

Affected packages and fixed versions:
- io.undertow:undertow-core (Maven): affected all versions; fixed in 1.3.25.Final
- io.undertow:undertow-core (Maven): affected all versions; fixed in 1.3.25.Final
- io.undertow:undertow-core (Maven): affected from 1.4.0; fixed in 1.4.3.Final
- io.undertow:undertow-core (Maven): affected from 1.4.0; fixed in 1.4.3.Final

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-2016-7046/ (Markdown: https://insights.sbomify.com/CVE-2016-7046/index.md)
```

## Sources

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

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