CVE-2025-1735
pgsql extension does not check for errors during escaping
MEDIUM 5.9
At a glance
- Source
- NVD
- EPSS
- EPSS 1.16 % · percentile 67 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- php
- NVD status
- Modified
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.
Weaknesses (CWE)
- CWE-89 — Improper Neutralization of Special Elements used in an SQL Command
- CWE-476 — NULL Pointer Dereference
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H | php |
| CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD · security@php.net (Secondary) |
| CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD · nvd@nist.gov (Primary) |
European references
- ENISA EUVD · EUVD-2025-21273
- GCVE · GCVE-0-2025-1735
CERT-FR advisories
- CERTFR-2025-AVI-0558 — Multiples vulnérabilités dans PHP · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*≥ 8.1.0 < 8.1.33cpe:2.3:a:php:php:*:*:*:*:*:*:*:*≥ 8.2.0 < 8.2.29cpe:2.3:a:php:php:*:*:*:*:*:*:*:*≥ 8.3.0 < 8.3.23cpe:2.3:a:php:php:*:*:*:*:*:*:*:*≥ 8.4.0 < 8.4.10
Affected products
| Product | Versions |
|---|---|
| PHP Group · PHP | affected 8.1.* < 8.1.33 ; affected 8.2.* < 8.2.29 ; affected 8.3.* < 8.3.23 ; affected 8.4.* < 8.4.10 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |