CVE-2018-1051 Deserialization of Untrusted Data in org.jboss.resteasy:resteasy-yaml-provider
Incomplete fix allows YAML deserialization attacks in Resteasy, potentially leading to remote code execution.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2018-1051?
CVE-2018-1051 is a high-severity unsafe deserialization vulnerability in Red Hat, Inc. resteasy, published on 25 Jan 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
It was found that the fix for CVE-2016-9606 in versions 3.0.22 and 3.1.2 was incomplete and Yaml unmarshalling in Resteasy is still possible via `Yaml.load()` in YamlProvider.
Which versions are affected by CVE-2018-1051?
4 open source packages ship an affected version, including org.jboss.resteasy:resteasy-yaml-provider. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.jboss.resteasy:resteasy-yaml-provider Maven | All versions | 3.0.26.Final |
org.jboss.resteasy:resteasy-yaml-provider Maven | All versions | 3.0.26.Final |
org.jboss.resteasy:resteasy-yaml-provider Maven | From 3.1.0 | 3.6.0.Final |
org.jboss.resteasy:resteasy-yaml-provider Maven | From 3.1.0 | 3.6.0.Final |
Products include Redhat Resteasy.
How do I fix CVE-2018-1051?
Upgrade org.jboss.resteasy:resteasy-yaml-provider to a fixed version for your release line: 3.0.26.Final or 3.6.0.Final.
Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.
Is CVE-2018-1051 being exploited?
There is no known exploitation of CVE-2018-1051 in the wild and no public exploit code.
Other vulnerabilities in Red Hat, Inc. resteasy
- CVE-2016-9606 JBoss RESTEasy vulnerable to Improper Input Validation
- CVE-2016-6346 Denial of service in JBoss resteasy
- CVE-2016-6345 Exposure of Sensitive Information to an Unauthorized Actor in RESTEasy
- CVE-2014-7839 XML External Entity Reference in RESTEasy
- CVE-2016-6347 Improper Neutralization of Input During Web Page Generation in RESTEasy
Sources
Also known as GHSA-m2fv-3rqm-g7p5, UBUNTU-CVE-2018-1051.