CVE-2017-18640 SnakeYAML Entity Expansion during load operation

High 7.5 Published Updated

Attackers can cause denial of service in applications using SnakeYAML by exploiting entity expansion during load operations.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2017-18640?

CVE-2017-18640 is a high-severity denial of service vulnerability in Fedoraproject Fedora, published on 12 Dec 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The Alias feature in SnakeYAML before 1.26 allows entity expansion during a load operation, a related issue to CVE-2003-1564.

Weakness: CWE-776

Which versions are affected by CVE-2017-18640?

2 open source packages ship an affected version, including org.yaml:snakeyaml. It affects 4 products.

PackageAffectedFixed in
org.yaml:snakeyaml MavenAll versions1.26
org.yaml:snakeyaml MavenAll versions1.26
Linux distribution packages (11)
prometheus-jmx-exporter AlmaLinux:8All versions0.12.0-6.el8
prometheus-jmx-exporter Red Hat:enterprise_linux:8::appstreamAll versions0:0.12.0-6.el8
prometheus-jmx-exporter Rocky Linux:8All versions0:0.12.0-6.el8
snakeyaml SUSE:Linux Enterprise Module for Development Tools 15 SP2All versions1.28-3.5.1
snakeyaml SUSE:Linux Enterprise Module for Development Tools 15 SP3All versions1.28-3.5.1
snakeyaml SUSE:Manager Server Module 4.0All versions1.28-12.3.1
snakeyaml SUSE:Manager Server Module 4.1All versions1.28-12.3.1
snakeyaml SUSE:Manager Server Module 4.2All versions1.28-3.5.1
snakeyaml openSUSE:Leap 15.2All versions1.28-lp152.2.3.1
snakeyaml openSUSE:Leap 15.3All versions1.28-3.5.1
snakeyaml openSUSE:TumbleweedAll versions1.28-2.2

Products include Fedoraproject Fedora, Oracle Peoplesoft Enterprise Pt Peopletools, Quarkus Quarkus, Snakeyaml Project Snakeyaml.

How do I fix CVE-2017-18640?

Upgrade org.yaml:snakeyaml to 1.26 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2017-18640 being exploited?

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as ALSA-2020:4807, CLEANSTART-2026-CU41868, DEBIAN-CVE-2017-18640, GHSA-rvwf-54qp-4r6v, RHSA-2020:4807, RLSA-2020:4807 and 9 more.

Is CVE-2017-18640 in your software?

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

Check your SBOMs for free