Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-1735

CVE-2025-1735: PHP pgsql/pdo_pgsql DOS Vulnerability

CVE-2025-1735 is a denial of service vulnerability in PHP pgsql and pdo_pgsql extensions where escaping functions fail to check for errors, potentially causing crashes. This article covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2025-1735 Overview

A denial of service vulnerability has been identified in PHP's PostgreSQL database extensions (pgsql and pdo_pgsql). The escaping functions in these extensions fail to properly check if the underlying quoting functions returned errors. When a PostgreSQL server rejects a string as invalid, this unchecked error condition can cause the PHP application to crash, resulting in service disruption.

Critical Impact

Attackers can exploit this vulnerability remotely to crash PHP applications that interact with PostgreSQL databases by sending specially crafted invalid strings, leading to denial of service conditions.

Affected Products

  • PHP 8.1.* versions before 8.1.33
  • PHP 8.2.* versions before 8.2.29
  • PHP 8.3.* versions before 8.3.23
  • PHP 8.4.* versions (check for latest patched version)

Discovery Timeline

  • 2025-07-13 - CVE-2025-1735 published to NVD
  • 2025-11-04 - Last updated in NVD database

Technical Details for CVE-2025-1735

Vulnerability Analysis

This vulnerability exists in PHP's PostgreSQL-related escaping functions within both the pgsql and pdo_pgsql extensions. When these extensions call the underlying PostgreSQL library's quoting functions to escape user-supplied strings, they do not verify whether the quoting operation completed successfully or returned an error.

PostgreSQL servers perform validation on incoming strings and may reject certain malformed or invalid character sequences. When such a rejection occurs at the database level, the quoting function returns an error state. Because PHP's escaping functions do not check for this error condition, the application continues execution with an invalid or undefined state, ultimately leading to a crash.

The vulnerability is classified under CWE-89 (Improper Neutralization of Special Elements used in an SQL Command), as the root cause relates to the improper handling of string escaping operations in the context of SQL query construction.

Root Cause

The root cause of this vulnerability is the absence of error checking after calls to PostgreSQL's internal quoting functions. The PHP pgsql and pdo_pgsql extensions assume that string quoting operations will always succeed, but the PostgreSQL server can reject strings containing invalid byte sequences or malformed encoding. When this rejection occurs, the escaping functions return error states that PHP does not handle, resulting in undefined behavior and application crashes.

Attack Vector

This vulnerability can be exploited remotely over a network. An attacker can send specially crafted input strings to a PHP application that uses PostgreSQL database connections. When the application attempts to escape these malformed strings using the vulnerable functions, and the PostgreSQL server rejects them as invalid, the PHP process crashes.

The attack requires no authentication or user interaction, making it particularly dangerous for publicly accessible web applications. The attacker only needs the ability to submit input that will be processed by the vulnerable escaping functions.

The vulnerability mechanism involves the following sequence: when a PHP application receives user input and passes it through pgsql or pdo_pgsql escaping functions before database queries, the underlying PostgreSQL client library attempts to validate and quote the string. If the PostgreSQL server determines the string is invalid (for example, due to encoding issues), it returns an error. The PHP extension fails to check for this error and continues processing, causing the application to crash.

Detection Methods for CVE-2025-1735

Indicators of Compromise

  • Unexpected PHP process crashes in applications using PostgreSQL databases
  • Repeated segmentation faults or fatal errors in web server error logs
  • Sudden application unavailability correlated with specific user input patterns
  • Error log entries indicating PostgreSQL connection or escaping failures

Detection Strategies

  • Monitor web application logs for PHP fatal errors occurring in database-related code paths
  • Implement application-level monitoring to detect crash patterns in PostgreSQL-connected services
  • Use Web Application Firewall (WAF) rules to identify and block malformed string injection attempts
  • Deploy process monitoring to alert on unexpected PHP worker restarts or crashes

Monitoring Recommendations

  • Enable verbose error logging for PHP applications using PostgreSQL extensions
  • Set up alerting thresholds for PHP process restart frequency
  • Monitor PostgreSQL server logs for rejected string validation errors
  • Implement health checks that can detect application instability

How to Mitigate CVE-2025-1735

Immediate Actions Required

  • Upgrade PHP to patched versions: 8.1.33, 8.2.29, 8.3.23, or the latest 8.4.x release
  • Review and validate all user input before passing to PostgreSQL escaping functions
  • Implement input encoding validation at the application layer
  • Consider temporary rate limiting on endpoints that process user-supplied database input

Patch Information

PHP has released security updates to address this vulnerability. Organizations should update to the following minimum versions:

  • PHP 8.1 branch: Update to 8.1.33 or later
  • PHP 8.2 branch: Update to 8.2.29 or later
  • PHP 8.3 branch: Update to 8.3.23 or later
  • PHP 8.4 branch: Check the GitHub Security Advisory for the latest patched version

Additional security information is available through the OpenWall OSS Security Notice and the Debian LTS Announcement.

Workarounds

  • Implement strict input validation to reject strings with potentially problematic encoding before they reach database functions
  • Add try-catch exception handling around database escaping operations to gracefully handle failures
  • Use parameterized queries and prepared statements as an alternative to string escaping where possible
  • Consider deploying a reverse proxy with input sanitization capabilities as a temporary protective measure
bash
# Check current PHP version and pgsql extension status
php -v
php -m | grep -E "(pgsql|pdo_pgsql)"

# Verify patched version after upgrade
php -r "echo 'PHP Version: ' . PHP_VERSION . PHP_EOL;"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechPhp

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-89
  • Technical References
  • OpenWall OSS Security Notice

  • Debian LTS Announcement
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2025-14180: PHP PDO PostgreSQL DoS Vulnerability

  • CVE-2025-6491: PHP SOAP Extension DoS Vulnerability

  • CVE-2024-2757: PHP mb_encode_mimeheader DoS Vulnerability

  • CVE-2023-0662: PHP HTTP Form Upload DoS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English