CVE-2017-6920 Drupal PECL YAML parser unsafe object handling

Critical 9.8 Published Updated

Remote attackers can execute arbitrary code in Drupal core due to unsafe handling of PHP objects by the PECL YAML parser.

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-6920?

CVE-2017-6920 is a critical unsafe deserialization vulnerability in Drupal Drupal, published on 6 Aug 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Drupal core 8 before versions 8.3.4 allows remote attackers to execute arbitrary code due to the PECL YAML parser not handling PHP objects safely during certain operations.

Weakness: CWE-19

Which versions are affected by CVE-2017-6920?

4 open source packages ship an affected version, including drupal/core and drupal/drupal. It affects 1 product.

PackageAffectedFixed in
drupal/core PackagistFrom 8.08.3.4
drupal/core PackagistFrom 8.08.3.4
drupal/drupal PackagistFrom 8.08.3.4
drupal/drupal PackagistFrom 8.08.3.4

Products include Drupal Drupal.

How do I fix CVE-2017-6920?

Upgrade drupal/core to 8.3.4 or later.

Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.

Is CVE-2017-6920 being exploited?

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

All Drupal Drupal vulnerabilities

Sources

Also known as GHSA-9c24-g32g-35rj.

Is CVE-2017-6920 in your software?

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

Check your SBOMs for free