GHSA-j66p-fvp2-fxhj Drupal core Arbitrary PHP code execution

Not scored Published

Arbitrary PHP code execution in Drupal core via PEAR Archive_Tar when processing uploaded archive files.

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 GHSA-j66p-fvp2-fxhj?

GHSA-j66p-fvp2-fxhj is an unsafe deserialization vulnerability in drupal/drupal, published on 15 May 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

The Drupal project uses the PEAR Archive_Tar library. The PEAR Archive_Tar library has released a security update that impacts Drupal. For more information please see: CVE-2020-28948 CVE-2020-28949

Multiple vulnerabilities are possible if Drupal is configured to allow .tar, .tar.gz, .bz2, or .tlz file uploads and processes them.

To mitigate this issue, prevent untrusted users from uploading .tar, .tar.gz, .bz2, or .tlz files.

Which versions are affected by GHSA-j66p-fvp2-fxhj?

8 open source packages ship an affected version, including drupal/drupal.

PackageAffectedFixed in
drupal/drupal PackagistFrom 7.0.07.75
drupal/drupal PackagistFrom 7.0.07.75
drupal/drupal PackagistFrom 8.0.08.8.12
drupal/drupal PackagistFrom 8.0.08.8.12
drupal/drupal PackagistFrom 8.9.08.9.10
drupal/drupal PackagistFrom 8.9.08.9.10
2 more packages
drupal/drupal PackagistFrom 9.0.09.0.9
drupal/drupal PackagistFrom 9.0.09.0.9

How do I fix GHSA-j66p-fvp2-fxhj?

Upgrade drupal/drupal to a fixed version for your release line: 7.75, 8.8.12, 8.9.10 or 9.0.9.

Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.

Is GHSA-j66p-fvp2-fxhj being exploited?

There is no known exploitation of GHSA-j66p-fvp2-fxhj in the wild and no public exploit code.

Sources

Is GHSA-j66p-fvp2-fxhj in your software?

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

Check your SBOMs for free