# CVE-2025-1735: pgsql extension does not check for errors during escaping

- Priority: **Routine**
- Reason: Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-07-13 · Modified: 2025-11-04
- Aliases: UBUNTU-CVE-2025-1735, USN-7648-3, DEBIAN-CVE-2025-1735, ALPINE-CVE-2025-1735
- Record: https://cvemate.com/vulnerability/CVE-2025-1735 · JSON: https://cvemate.com/vulnerability/CVE-2025-1735/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 1.157%, percentile 68.136%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine php81 (Alpine Linux): \< 8.1.33-r0
- alpine php82 (Alpine Linux): \< 8.2.29-r0
- alpine php83 (Alpine Linux): \< 8.3.23-r0
- alpine php84 (Alpine Linux): \< 8.4.10-r0 \| \< 8.4.9-r0
- debian php8.2 (Debian): \< 8.2.29-1~deb12u1
- debian php8.4 (Debian): \< 8.4.10-1
- ubuntu php5 (Ubuntu): All versions (No fix recorded)
- ubuntu php7.0 (Ubuntu): \< 7.0.33-0ubuntu0.16.04.16+esm18 \| \< 7.0.33-0ubuntu0.16.04.16+esm16
- ubuntu php7.2 (Ubuntu): \< 7.2.24-0ubuntu0.18.04.17+esm11 \| \< 7.2.24-0ubuntu0.18.04.17+esm9
- ubuntu php7.4 (Ubuntu): \< 7.4.3-4ubuntu2.29+esm2 \| \< 7.4.3-4ubuntu2.29+esm1
- ubuntu php8.1 (Ubuntu): \< 8.1.2-1ubuntu2.22
- ubuntu php8.3 (Ubuntu): \< 8.3.6-0ubuntu0.24.04.5
- ubuntu php8.4 (Ubuntu): \< 8.4.11-1ubuntu1
- php group php: ≥ 8.1.\*, \< 8.1.33 \| ≥ 8.2.\*, \< 8.2.29 \| ≥ 8.3.\*, \< 8.3.23 \| ≥ 8.4.\*, \< 8.4.10
- php 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

## References

- <https://github.com/php/php-src/security/advisories/GHSA-hrwm-9436-5mv3>
- <https://lists.debian.org/debian-lts-announce/2025/07/msg00017.html>
- <http://www.openwall.com/lists/oss-security/2025/07/11/4>
- <https://ubuntu.com/security/CVE-2025-1735>
- <https://www.cve.org/CVERecord?id=CVE-2025-1735>
- <https://ubuntu.com/security/notices/USN-7648-1>
- <https://ubuntu.com/security/notices/USN-7648-2>
- <https://ubuntu.com/security/notices/USN-7648-3>
- <https://launchpad.net/bugs/2121643>
- <https://security-tracker.debian.org/tracker/CVE-2025-1735>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-1735>
- <https://security.alpinelinux.org/vuln/CVE-2025-1735>

---

Data as of 2026-12-05T02:45:50.415Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
