PHP Prior 8.4.29: pgsql/PDO_PGSQL Escaping Ignores Quoting Errors
CVE-2025-1735 Published on July 13, 2025
pgsql extension does not check for errors during escaping
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.
Vulnerability Analysis
CVE-2025-1735 can be exploited with network access, and does not require authorization privileges or user interaction. This vulnerability is consided to have a high level of attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity, and a high impact on availability.
Weakness Types
What is a SQL Injection Vulnerability?
The software constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component.
CVE-2025-1735 has been classified to as a SQL Injection vulnerability or weakness.
NULL Pointer Dereference
A NULL pointer dereference occurs when the application dereferences a pointer that it expects to be valid, but is NULL, typically causing a crash or exit. NULL pointer dereference issues can occur through a number of flaws, including race conditions, and simple programming omissions.
Products Associated with CVE-2025-1735
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2025-1735 are published in these products:
Affected Versions
PHP Group PHP:- Version 8.1.* and below 8.1.33 is affected.
- Version 8.2.* and below 8.2.29 is affected.
- Version 8.3.* and below 8.3.23 is affected.
- Version 8.4.* and below 8.4.10 is affected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.