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

Advisory record · `GHSA-3gx6-h57h-rm27`

- **Identifiers:** `GHSA-3gx6-h57h-rm27` · `CVE-2019-6340` · `DRUPAL-CORE-2019-003` · `PKSA-18ct-8ggk-h581` · `PKSA-gwcs-2npw-6jkx`
- **State:** Confirmed
- **Severity:** CVSS 8.1 High
- **Critical:** Yes: KEV, CVSS 7+ and EPSS
- **Weakness (CWE):** [CWE-502](https://cwe.mitre.org/data/definitions/502.html)
- **Tags:** [Insecure deserialization](https://agentprime.io/advisories/tag/deserialization.md)
- **Published:** 20 Feb 2019
- **Updated:** 19 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 20 Feb 2019, 19:18 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Critical

Critical, because:

- In CISA’s KEV catalogue since 25 Mar 2022: it is known to be exploited.
- CVSS score 8.1 (7.0 or more) and EPSS 0.92 (0.1 or more): a high score and a real chance of exploitation in the next 30 days.

How we decide what’s critical: <https://agentprime.io/advisories/critical.md>

## Affected packages

- `drupal/core` (Packagist): affected `>=8.0.0, <8.5.11 || >=8.6.0, <8.6.10`; fixed in `8.5.11`, `8.6.10`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Drupal core versions from 8.0.0 before 8.5.11 and from 8.6.0 before 8.6.10 (fixed in 8.5.11 and 8.6.10) do not properly sanitize some field data that comes from non-form sources, which can lead to arbitrary PHP code execution in some cases. A site is affected if the core RESTful Web Services module is enabled with any REST endpoint, including GET-only endpoints, or if another web services module such as JSON:API or, in Drupal 7, Services or RESTful Web Services is enabled. Upgrade Drupal core to 8.5.11, 8.6.10 or later; the source also notes that known exploits exist.

Written 31 Oct 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 8.1 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`, from ADP (CISA-ADP)

- **CISA KEV:** Listed since 25 Mar 2022: known to be exploited.
- **EPSS:** 0.92, the 99th percentile, on 23 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 13:55 UTC: First seen by agentprime
- 31 Oct 2026, 13:55 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/DRUPAL-CORE-2019-003)

## Sources

- [GitHub Advisory Database: GHSA-3gx6-h57h-rm27](https://github.com/advisories/GHSA-3gx6-h57h-rm27)
- [OSV: GHSA-3gx6-h57h-rm27](https://osv.dev/vulnerability/GHSA-3gx6-h57h-rm27)
- <https://www.drupal.org/sa-core-2019-003>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-3gx6-h57h-rm27>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-3gx6-h57h-rm27/>. Everything for agents: <https://agentprime.io/llms.txt>.
