Skip to main content
VulnerabilityPublished Updated

CVE-2025-1735: PHP · SQL Injection

Affects PHPSource CVE Database V5

0

Not known to be exploited · CVSS 5.9 Medium · fixed in 8.5.0 : update PHP when convenient.

Data as of 26 Oct 2026, 10:12 UTC

CVSS 3.1 base score
5.9Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
1.1% chance of exploitation in 30 days – higher than 66% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 8.5.0, 8.4.0, 8.3.0 +1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 13 Jul 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade php/php-src to 8.5.0, 8.4.0, 8.3.0 or 8.2.0.

Affected software

ProductAffectedFixed in
GitHubphp/php-srcpkg:github/php/php-srcOther threatsAffected
  • >=8.1.0 <8.2.0
  • >=8.2.0 <8.3.0
  • >=8.3.0 <8.4.0
  • >=8.4.0 <8.5.0
Fixed in
  • 8.2.0
  • 8.3.0
  • 8.4.0
  • 8.5.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

1. 2. Implement strict input validation and sanitization on all user inputs before they reach database escaping functions to minimize malformed or malicious strings. 3. Enhance error handling in PHP applications to detect and gracefully manage errors returned by PostgreSQL quoting functions, preventing crashes. 4. Monitor application logs and PostgreSQL logs for unusual error patterns or crashes that may indicate attempted exploitation. 5. Employ Web Application Firewalls (WAFs) with rules targeting malformed SQL inputs or known attack vectors against PostgreSQL. 6. Conduct regular security assessments and penetration testing focusing on database interaction layers. 7. For critical services, consider deploying failover or redundancy mechanisms to maintain availability during potential crash events. 8. Educate developers and DevOps teams about this vulnerability and best practices for secure database interaction and error handling.

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.

References

Community reviews

Loading reviews…