Problem/Motivation

As a follow-up to https://www.drupal.org/project/drupal/issues/3605792 add SQLi protection to /core/lib/Drupal/Core/Entity/Query/Sql/pgsql/Condition.php

This can be done in public, same as that issue was; it's mostly a hardening to ensure consistency and avoid reports by security code scanners identifying this deprecated class as a remaining vector for SA-CORE-2026-004 or similar.

Analysis suggests that the missing fixes in the deprecated class would only really be a problem in two quite unlikely scenarios:

The deprecated class was removed in D12.

Issue fork drupal-3614837

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mcdruid created an issue. See original summary.

mcdruid’s picture

Status: Active » Needs review

Tests passing in the MR.

daffie’s picture

Status: Needs review » Reviewed & tested by the community

Is the same fix as in the main branch.

  • longwave committed 002ac383 on 11.3.x
    fix: #3614837 add SQLi protections to deprecated pgsql entity query...

  • longwave committed 9230bcec on 11.4.x
    fix: #3614837 add SQLi protections to deprecated pgsql entity query...

  • longwave committed daaad28a on 11.x
    fix: #3614837 add SQLi protections to deprecated pgsql entity query...
longwave’s picture

Version: 11.x-dev » 11.3.x-dev
Status: Reviewed & tested by the community » Fixed

Backported down to 11.3.x as a security fix as that branch still receives security support. 10.6.x already has this in place (because it only has the old driver).

Committed and pushed daaad28aba6 to 11.x and 9230bcecc30 to 11.4.x and 002ac383019 to 11.3.x. Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.