Drupal core contains a potential PHP Object Injection vulnerability
Published 10 Dec 2024 · Updated 10 Dec 2025
Affected packages
- Affected
- >=8.8.0 <10.2.11
- Fixed in
- 10.2.11
composer require drupal/core:^10.2.11- Affected
- >=10.3.0 <10.3.9
- Fixed in
- 10.3.9
composer require drupal/core:^10.3.9- Affected
- >=11.0.0 <11.0.8
- Fixed in
- 11.0.8
composer require drupal/core:^11.0.8- Affected
- >=8.8.0 <10.2.11
- Fixed in
- 10.2.11
composer require drupal/core-recommended:^10.2.11- Affected
- >=10.3.0 <10.3.9
- Fixed in
- 10.3.9
composer require drupal/core-recommended:^10.3.9- Affected
- >=11.0.0 <11.0.8
- Fixed in
- 11.0.8
composer require drupal/core-recommended:^11.0.8- Affected
- >=8.8.0 <10.2.11
- Fixed in
- 10.2.11
composer require drupal/drupal:^10.2.11- Affected
- >=10.3.0 <10.3.9
- Fixed in
- 10.3.9
composer require drupal/drupal:^10.3.9- Affected
- >=11.0.0 <11.0.8
- Fixed in
- 11.0.8
composer require drupal/drupal:^11.0.8Details
Drupal core contains a potential PHP Object Injection vulnerability that (if combined with another exploit) could lead to Artbitrary File Deletion. It is not directly exploitable.
This issue is mitigated by the fact that in order to be exploitable, a separate vulnerability must be present that allows an attacker to pass unsafe input to unserialize(). There are no such known exploits in Drupal core.
To help protect against this vulnerability, types have been added to properties in some of Drupal core's classes. If an application extends those classes, the same types may need to be specified on the subclass to avoid a TypeError.
This issue affects Drupal Core: from 8.0.0 before 10.2.11, from 10.3.0 before 10.3.9, from 11.0.0 before 11.0.8.
Is GHSA-938f-5r4f-h65v in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected drupal/core, and gives you the command that fixes it.
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.