CVE-2025-1735: pgsql extension does not check for errors during escaping
Vulnerability summary
CVE-2025-1735 is a high (CVSS 7.5) vulnerability in php group php. EPSS estimates a 1.16% chance of exploitation in the next 30 days, higher than 68.1% of scored vulnerabilities.
Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 14 · Related 7Timeline
- 13-07-2025PublishedVulnerability first disclosed.
- 04-11-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- CVE.orgCNA5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HDiffers
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
1.16%
Chance of exploitation in the next 30 days
Percentile
68%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.16% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-89Improper Neutralization of Special Elements used in an SQL CommandThe product 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. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.
- CWE-476NULL Pointer DereferenceThe product dereferences a pointer that it expects to be valid but is NULL.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu7 products
- php5All versions (No fix recorded)
- php7.0< 7.0.33-0ubuntu0.16.04.16+esm18 | < 7.0.33-0ubuntu0.16.04.16+esm16
- php7.2< 7.2.24-0ubuntu0.18.04.17+esm11 | < 7.2.24-0ubuntu0.18.04.17+esm9
- php7.4< 7.4.3-4ubuntu2.29+esm2 | < 7.4.3-4ubuntu2.29+esm1
- php8.1< 8.1.2-1ubuntu2.22
Alpine4 products
- php81< 8.1.33-r0
- php82< 8.2.29-r0
- php83< 8.3.23-r0
- php84< 8.4.10-r0 | < 8.4.9-r0
Debian2 products
- php8.2< 8.2.29-1~deb12u1
- php8.4< 8.4.10-1
Php1 product
- php≥ 8.1.0, < 8.1.33 | ≥ 8.2.0, < 8.2.29 | ≥ 8.3.0, < 8.3.23 | ≥ 8.4.0, < 8.4.10
Php group1 product
- php≥ 8.1.*, < 8.1.33 | ≥ 8.2.*, < 8.2.29 | ≥ 8.3.*, < 8.3.23 | ≥ 8.4.*, < 8.4.10
5 vendors · 15 products