CVE-2025-1735
PHP vulnerability analysis and mitigation

Overview

CVE-2025-1735 is a critical security vulnerability discovered in PHP's PostgreSQL extension that affects versions prior to 8.1.33, 8.2.29, 8.3.23, and 8.4.10. The vulnerability was discovered in February 2025 and stems from inadequate error checking during string escaping operations in the pgsql extension (Cyber Security News, GBHackers).

Technical details

The vulnerability occurs when PHP's pgsql extension fails to properly check for errors during the escaping of user-supplied data. Specifically, the extension does not pass error parameters to the PQescapeStringConn() function, preventing it from reporting encoding errors. Additionally, multiple calls to PQescapeIdentifier() fail to check for NULL return values, which represents the documented method for error reporting. The vulnerability carries a CVSS score of 9.1, indicating critical severity (Cyber Security News).

Impact

The vulnerability can lead to SQL injection attacks, allowing attackers to potentially gain unauthorized access to sensitive data or manipulate the database. Additionally, the improper error handling can result in application crashes due to null pointer dereferences, leading to service disruptions (GBHackers).

Mitigation and workarounds

Administrators and developers are urged to update their PHP installations to the patched versions: 8.1.33, 8.2.29, 8.3.23, or 8.4.10. These updates address the vulnerability by restoring proper error-handling mechanisms in the affected extensions. Additionally, it is recommended to audit applications for unsafe use of database escaping (GBHackers).

Additional resources


SourceThis report was generated using AI

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