CVE-2023-5256: Cache poisoning in drupal/core
Summary
CVE-2023-5256: Cache poisoning in drupal/core. Affects drupal/core across 3 version ranges.
>= 8.7.0, < 9.5.11
>= 10.0.0, < 10.0.11
>= 10.1.0, < 10.1.4
Fixed in 9.5.11, 10.0.11 or 10.1.4, depending on the release line you run. How to fix ↓
Also tracked for
- drupal · Bitnami
The same CVE-2023-5256 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Drupal is an open-source content management system (CMS) written in PHP. It provides a flexible framework for building websites and applications. The JSON:API module in Drupal allows developers to expose Drupal entities as JSON data. This vulnerability affects sites with the JSON:API module enabled.
Vulnerability Detail
The JSON:API module in Drupal may output error backtraces in certain scenarios. If sensitive information is included in these error backtraces, it can be cached and made available to anonymous users. This can lead to privilege escalation and unauthorized access to sensitive data. The vulnerability can be mitigated by uninstalling the JSON:API module. The core REST and contributed GraphQL modules are not affected.
How To Fix
Fixed versions by release line
The minimum fixed version depends on the release line you run.
-
>= 8.7.0, < 9.5.119.5.11composer require drupal/core:9.5.11 -
>= 10.0.0, < 10.0.1110.0.11composer require drupal/core:10.0.11 -
>= 10.1.0, < 10.1.410.1.4composer require drupal/core:10.1.4
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
There is no specific workaround for this vulnerability. Uninstalling the JSON:API module is the recommended solution.
Conclusion
The cache poisoning vulnerability in Drupal's JSON:API module can lead to privilege escalation and unauthorized access to sensitive information. It is recommended to uninstall the JSON:API module and update Drupal core to a fixed version. For further support on vulnerability remediation, contact DevNack.com.
See every vulnerability recorded for drupal/core →
FAQ
Drupal versions 8.7.0 to 9.5.11 and 10.0.0 to 10.0.11 are affected by this vulnerability.
Yes, you can continue using the JSON:API module if you have updated to a fixed version of Drupal core.
Yes, Drupal provides other modules like REST and GraphQL that can be used as alternatives to JSON:API.
No, uninstalling the JSON:API module is the recommended solution. There is no specific patch available.
The vulnerability can lead to privilege escalation and unauthorized access to sensitive information, potentially compromising the security of the Drupal site.
References
Related vulnerabilities
Recent vulnerabilities recorded for drupal/core.