CVE-2025-1735: Php SQL Injection

CVE-2025-1735

NVDCVSS scored by security@php.net

Vulnerability Summary

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.
Severity Level
MEDIUM(5.9)
Published Date
Jul 13, 2025
Last Modified
Jul 22, 2025
Exploitation Status
No confirmed exploitation yet
Root Weakness (CWE)
Improper neutralization of special elements used in an SQL command, allowing attackers to modify queries.
The product dereferences a pointer that it expects to be valid but is NULL, typically causing a crash or exit.
CVSS v3.1 Base Metrics — Score 5.9 (MEDIUM)
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityNone
IntegrityNone
AvailabilityHigh

Affected & Patched Versions

Affected Versions
  • Php >= 8.1.0 and < 8.1.33
  • Php >= 8.2.0 and < 8.2.29
  • Php >= 8.3.0 and < 8.3.23
  • Php >= 8.4.0 and < 8.4.10
Patched Versions
  • Php 8.1.33
  • Php 8.2.29
  • Php 8.3.23
  • Php 8.4.10

What to do

Fix it during your normal patch cycle. No exploitation is confirmed yet.

  1. Check whether you run Php and which version.
  2. Update to a patched version listed above, then confirm the new version.

Timeline

  • Jul 13, 2025Published
  • Jul 22, 2025Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new Php CVEsYou are reading CVE-2025-1735. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Nov 29, 2026 21:13 UTC