---
title: "GHSA-jjx7-8462-w4m4: Drupal Core Insufficient Contextual Links validation leads to Remote Code Execution"
url: https://erroneo.us/security/ghsa/GHSA-jjx7-8462-w4m4/
description: "GHSA-jjx7-8462-w4m4 (critical, Composer (PHP)): Drupal Core Insufficient Contextual Links validation leads to Remote Code Execution. The Contextual Links…"
type: advisory
section: "Security Digest"
date_published: 2024-05-15
date_modified: 2024-05-15
publisher: erroneo.us
author: erroneo.us Security Desk
ghsa: "GHSA-jjx7-8462-w4m4"
license: All rights reserved. Quote with attribution and a link.
---

# GHSA-jjx7-8462-w4m4: Drupal Core Insufficient Contextual Links validation leads to Remote Code Execution

## Affected packages

- Composer (PHP) `drupal/drupal` >= 8.0.0, < 8.5.8 → fixed: 8.5.8
- Composer (PHP) `drupal/drupal` >= 8.6.0, < 8.6.2 → fixed: 8.6.2

## Details

The Contextual Links module doesn't sufficiently validate the requested contextual links. This vulnerability is mitigated by the fact that an attacker must have a role with the permission "access contextual links".

## Sources

- [GitHub Advisory GHSA-jjx7-8462-w4m4](https://github.com/advisories/GHSA-jjx7-8462-w4m4)
- [github.com](https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/2018-10-17-5.yaml)
- [drupal.org](https://www.drupal.org/sa-core-2018-006)

---
Source page: https://erroneo.us/security/ghsa/GHSA-jjx7-8462-w4m4/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
