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

- Severity: Medium 5.9 (CVSS:3.1, scored by php) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.16%, higher than 68% of CVEs (2026-12-02)
- Published: 2025-07-13T22:27:48.299Z
- Modified: 2026-09-08T08:48:24.748Z
- Also known as: BIT-LIBPHP-2025-1735, BIT-PHP-2025-1735, BIT-PHP-MIN-2025-1735, GHSA-hrwm-9436-5mv3
- Weaknesses: CWE-89, CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: php

## 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.

(As written by CVE List.)

## Affected

- PHP Group PHP: from 8.1.* before 8.1.33; from 8.2.* before 8.2.29; from 8.3.* before 8.3.23; from 8.4.* before 8.4.10
- php php: from 8.1.0 before 8.1.33; from 8.2.0 before 8.2.29; from 8.3.0 before 8.3.23; from 8.4.0 before 8.4.10
- libphp (Bitnami): before 8.1.33; from 8.2.0 before 8.2.29; from 8.3.0 before 8.3.23; from 8.4.0 before 8.4.10
- php (Bitnami): before 8.1.33; from 8.2.0 before 8.2.29; from 8.3.0 before 8.3.23; from 8.4.0 before 8.4.10
- php-min (Bitnami): before 8.1.33; from 8.2.0 before 8.2.29; from 8.3.0 before 8.3.23; from 8.4.0 before 8.4.10

## Every score

- php: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/php/php-src/security/advisories/GHSA-hrwm-9436-5mv3> (advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/07/msg00017.html> (web)
- <http://www.openwall.com/lists/oss-security/2025/07/11/4> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-1735> (web)

## Sources

- CVE List: [CVE-2025-1735](https://www.cve.org/CVERecord?id=CVE-2025-1735), CVE Terms of Use, modified 2025-11-04
- NVD: [CVE-2025-1735](https://nvd.nist.gov/vuln/detail/CVE-2025-1735), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-LIBPHP-2025-1735](https://osv.dev/vulnerability/BIT-LIBPHP-2025-1735), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PHP-2025-1735](https://osv.dev/vulnerability/BIT-PHP-2025-1735), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PHP-MIN-2025-1735](https://osv.dev/vulnerability/BIT-PHP-MIN-2025-1735), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2025-1735 · Whole record: https://cve.day/CVE-2025-1735.json · Rebuilt by cve.day 2026-11-25T22:59:01.206Z
