CVE-2018-1051 Deserialization of Untrusted Data in org.jboss.resteasy:resteasy-yaml-provider

High 8.1 Published Updated

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.

Weakness: CWE-502, CWE-20

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.

PackageAffectedFixed in
org.jboss.resteasy:resteasy-yaml-provider MavenAll versions3.0.26.Final
org.jboss.resteasy:resteasy-yaml-provider MavenAll versions3.0.26.Final
org.jboss.resteasy:resteasy-yaml-provider MavenFrom 3.1.03.6.0.Final
org.jboss.resteasy:resteasy-yaml-provider MavenFrom 3.1.03.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.

Sources

Also known as GHSA-m2fv-3rqm-g7p5, UBUNTU-CVE-2018-1051.

Is CVE-2018-1051 in your software?

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

Check your SBOMs for free