SA-CORE-2026-004: SQL Injection
Drupal core includes a database abstraction API to ensure that queries executed against the database are sanitized to prevent SQL injection attacks. A vulnerability in this API allows an attacker to send specially crafted requests, resulting in arbitrary SQL injection for sites using PostgreSQL databases. This can lead to information disclosure, and in some cases privilege escalation, remote code execution, or other attacks. This vulnerability can be exploited by anonymous users. This SQL injection vulnerability only affects sites using PostgreSQL. However, the third-party dependency updates in these releases apply to all sites. Updates May 22 2026, 04:30 UTC: The risk score has been updated to reflect that exploit attempts are now being detected in the wild. Upstream security advisories The Drupal releases for supported branches (11.3, 11.2, 10.6, and 10.5) in this advisory also include security updates for Symfony and Twig. Those projects have released important Security Advisories that were coordinated with this Drupal release, and Drupal is affected by some of the vulnerabilities. Depending on your site configuration and contrib modules, you may be vulnerable to one or more of these upstream issues, so updating these dependencies is highly recommended whether the SQL Injection vulnerability affects you or not. It is also recommended to review which user roles have the ability to update Twig templates, for example via Views or contributed modules.
Credit
Affected Software
Event History
Frequently Asked Questions
What is the severity of SA-CORE-2026-004?
The severity of SA-CORE-2026-004 is rated as critical with a score of 9.
How do I fix SA-CORE-2026-004?
To fix SA-CORE-2026-004, you need to update your Drupal installation to the latest version that addresses this vulnerability.
What is the main issue in SA-CORE-2026-004?
SA-CORE-2026-004 addresses a SQL injection vulnerability in Drupal's database abstraction API specifically affecting PostgreSQL.
Which versions of Drupal are affected by SA-CORE-2026-004?
SA-CORE-2026-004 affects all supported versions of Drupal that use PostgreSQL, along with any installations that have not been updated.
What can an attacker do with SA-CORE-2026-004?
An attacker can exploit SA-CORE-2026-004 to execute arbitrary SQL queries against the database, potentially compromising site data.