CVE-2019-6340: Some field types do not properly sanitize data from non-form sources. This can lead to arbitrary PHP code execution in s

high KEV Affects drupal/core, drupal/drupal. Feed 2026.11.23.2, updated 2026-11-23; published ; advisory modified ; listed on CISA KEV 2022-03-25.

Some field types do not properly sanitize data from non-form sources. This can lead to arbitrary PHP code execution in s

Package
drupal/core Composer
Affected versions
>= 8.0.0 <8.5.11 or >=8.6.0 <8.6.10 or >=8.6.0 and <8.6.10 or >=7.0.0 and <7.62.0 or >=8.0.0 and <8.5.11 or >=8.0.0 and <8.1.0 or >=8.1.0 and <8.2.0 or >=8.2.0 and <8.3.0 or >=8.3.0 and <8.4.0 or >=8.4.0 and <8.5.0 or >=8.5.0 and <8.5.11
Fixed in
8.5.11, 8.6.10, 7.62.0
Severity
high  CVSS 8.1
Exploitation
KEV listed by CISA as actively exploited · EPSS 92% (99.8th percentile)
Published
2019-02-20
Source
osv.dev

References

Drupal Core Remote Code Execution Vulnerability

Package
drupal/drupal Composer
Affected versions
>=7.0.0 and <7.62.0 or >=8.0.0 and <8.5.11 or >=8.6.0 and <8.6.10 or >=8.0.0 and <8.1.0 or >=8.1.0 and <8.2.0 or >=8.2.0 and <8.3.0 or >=8.3.0 and <8.4.0 or >=8.4.0 and <8.5.0 or >=8.5.0 and <8.5.11
Fixed in
7.62.0, 8.5.11, 8.6.10
Severity
high  CVSS 8.1
Exploitation
KEV listed by CISA as actively exploited · EPSS 92% (99.8th percentile)
Published
2022-05-13
Source
osv.dev

References

CWE-502
NVD recorddrupal/core advisoriesdrupal/drupal advisories

Quick answers

Is CVE-2019-6340 being actively exploited?

Yes. It is on CISA's Known Exploited Vulnerabilities list (added 2022-03-25), which means attackers are using it now.

Which version fixes CVE-2019-6340?

drupal/core: 8.5.11, 8.6.10, 7.62.0; drupal/drupal: 7.62.0, 8.5.11, 8.6.10.

How do I check whether I am affected?

Run `phpwarden deps composer.lock`. phpwarden checks the exact version you have installed against this advisory.

Am I affected?

Find out in one command. phpwarden checks your composer.lock against this advisory and 21,000+ others, ranked by real-world exploitation (CISA KEV + EPSS). Free, offline, open data.

# PHP projects (recommended)
composer require --dev phpwarden/phpwarden
# then
vendor/bin/phpwarden deps composer.lock

# or, without Composer
pipx install phpwarden   &&   phpwarden deps composer.lock

Or keep it checked automatically: GitHub Action · pre-commit hook · GitLab CI · Laravel artisan command

Install docs   How findings are ranked

Related advisories