DRUPAL-CONTRIB-2020-011 This module enables you to build forms and surveys in Drupal.

Not scored Published

A malicious user with webform editing permissions can inject PHP code via crafted element attributes, leading to remote code execution.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is DRUPAL-CONTRIB-2020-011?

DRUPAL-CONTRIB-2020-011 is a code injection vulnerability in drupal/webform, published on 6 May 2020. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

This module enables you to build forms and surveys in Drupal.

The module doesn't sufficiently filter webform element properties (attributes) under the scenario of editing a webform. Malicious user could craft such an attribute (#element_validate, for example) that would invoke execution of undesired PHP code.

This vulnerability is mitigated by the fact that an attacker must have a role with the permission "Edit own webform" (or "Edit any webform").

Which versions are affected by DRUPAL-CONTRIB-2020-011?

Linux distribution packages (1)
drupal/webform Packagist:https://packages.drupal.org/8All versions5.11.0

How do I fix DRUPAL-CONTRIB-2020-011?

Upgrade to a fixed version.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is DRUPAL-CONTRIB-2020-011 being exploited?

There is no known exploitation of DRUPAL-CONTRIB-2020-011 in the wild and no public exploit code.

Sources

Is DRUPAL-CONTRIB-2020-011 in your software?

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

Check your SBOMs for free