CVE-2025-1735

pgsql extension does not check for errors during escaping

State
Published
Severity
5.9 Medium
Published
Jul 13, 2025
Updated
Nov 4, 2025
Reserved
Feb 27, 2025

Read the record on cve.org

Description

In PHP versions:8.1.* before 8.1.33, 8.2.* before 8.2.29, 8.3.* before 8.3.23, 8.4.* pgsql and pdo_pgsql escaping functions do not check if the underlying quoting functions returned errors. This could cause crashes if Postgres server rejects the string as invalid.

Scores

CVSSScoreVectorSource
3.15.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:Hphp

Weaknesses

  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
  • CWE-476 NULL Pointer Dereference

Affected Products

ProductVersions
PHPPHP Group
  • 8.1.* to before 8.1.33Affected
  • 8.2.* to before 8.2.29Affected
  • 8.3.* to before 8.3.23Affected
  • 8.4.* to before 8.4.10Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.