CVE-2025-1735
PHP vulnerability analysis and mitigation

Overview

CVE-2025-1735 affects PHP versions 8.1.* before 8.1.33, 8.2.* before 8.2.29, 8.3.* before 8.3.23, and 8.4.* before 8.4.10. The vulnerability exists in the pgsql and pdo_pgsql escaping functions which do not properly check if the underlying quoting functions returned errors. This could lead to potential security issues when interacting with PostgreSQL servers (PHP Advisory, NVD).

Technical details

The vulnerability stems from PHP's improper implementation of PostgreSQL escape functions. Specifically, the error parameter is not passed to PQescapeStringConn(), preventing error reporting. Additionally, several calls to PQescapeIdentifier() do not check for NULL return values, which is the documented way for these functions to report errors. The vulnerability has received a CVSS v3.1 base score of 7.5 (HIGH) from NIST and 5.9 (MEDIUM) from PHP Group, with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (PHP Advisory, NVD).

Impact

The vulnerability can result in two primary impacts: potential SQL injection vulnerabilities and application crashes due to null pointer dereferences. If a PostgreSQL server rejects a string as invalid, the lack of proper error checking could lead to security issues or system instability (PHP Advisory).

Mitigation and workarounds

The vulnerability has been patched in PHP versions 8.1.33, 8.2.29, 8.3.23, and 8.4.10. Users are advised to upgrade to these or later versions to address the security issue (PHP Advisory, NVD).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23622HIGH8.7
  • PHPPHP
  • alextselegidis/easyappointments
NoNoJan 15, 2026
CVE-2026-23493HIGH8.6
  • PHPPHP
  • pimcore/pimcore
NoYesJan 15, 2026
CVE-2026-23496MEDIUM5.4
  • PHPPHP
  • pimcore/web2print-tools-bundle
NoYesJan 15, 2026
CVE-2026-23495MEDIUM4.3
  • PHPPHP
  • pimcore/admin-ui-classic-bundle
NoYesJan 15, 2026
CVE-2026-23494MEDIUM4.3
  • PHPPHP
  • pimcore/pimcore
NoYesJan 15, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management