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-1861

CVE-2025-1861: PHP HTTP Redirect Truncation Vulnerability

CVE-2025-1861 is an HTTP redirect truncation vulnerability in PHP that causes incorrect URL handling due to limited buffer size. This article covers the technical details, affected versions, security impact, and mitigation.

Updated: January 22, 2026

CVE-2025-1861 Overview

CVE-2025-1861 is an Input Validation Error vulnerability affecting PHP's HTTP redirect handling mechanism. When PHP parses HTTP redirects in response to HTTP requests, a buffer size limitation of 1024 bytes causes URLs to be improperly truncated. According to RFC9110, the recommended limit for location values should be 8000 bytes. This discrepancy may lead to incorrect URL truncation, potentially redirecting users to unintended locations.

Critical Impact

Applications using affected PHP versions may experience incorrect redirect behavior when processing HTTP responses with long location headers, potentially leading to security issues such as open redirect vulnerabilities or misdirected traffic.

Affected Products

  • PHP versions 8.1.* before 8.1.32
  • PHP versions 8.2.* before 8.2.28
  • PHP versions 8.3.* before 8.3.19
  • PHP versions 8.4.* before 8.4.5
  • NetApp ONTAP 9

Discovery Timeline

  • 2025-03-30 - CVE-2025-1861 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2025-1861

Vulnerability Analysis

This vulnerability stems from an Improper Calculation of Buffer Size (CWE-131) within PHP's HTTP redirect parsing functionality. The issue occurs when PHP processes HTTP redirect responses containing a Location header value. The internal buffer allocated for storing the location value is limited to 1024 bytes, which falls significantly short of the 8000-byte recommendation specified in RFC9110.

When a redirect URL exceeds this 1024-byte boundary, PHP silently truncates the value, potentially resulting in malformed or incomplete URLs being used for the redirect destination. This behavior can be exploited in scenarios where attackers can influence the redirect location through long URLs.

Root Cause

The root cause is an insufficient buffer allocation in PHP's HTTP redirect handling code. The fixed 1024-byte buffer was implemented without considering the RFC9110 specification, which recommends supporting location values up to 8000 bytes. This buffer size miscalculation causes longer URLs to be silently truncated rather than being handled appropriately or generating an error.

Attack Vector

The attack vector is network-based and requires specific conditions to exploit. An attacker would need to either:

  1. Control or manipulate a server that returns HTTP redirect responses to a PHP application
  2. Craft redirect URLs that, when truncated at 1024 bytes, point to an attacker-controlled domain

The vulnerability exploitation occurs during the processing of the HTTP Location header in redirect responses. The truncation could result in the redirect pointing to a different domain than intended, particularly if an attacker can craft a URL where the truncation point falls in a way that changes the effective destination.

The vulnerability can manifest in any PHP application that follows HTTP redirects automatically, such as when using functions like file_get_contents() with HTTP stream wrappers or the cURL extension when configured to follow redirects.

Detection Methods for CVE-2025-1861

Indicators of Compromise

  • Unexpected redirect behavior in PHP applications when processing HTTP responses
  • Application logs showing truncated URLs in redirect chains
  • HTTP requests being sent to unexpected destinations after redirect processing
  • Unusual network traffic patterns from PHP applications following truncated redirect URLs

Detection Strategies

  • Monitor PHP application logs for redirect-related warnings or errors
  • Implement network monitoring to detect unexpected redirect destinations
  • Use application-level logging to track all HTTP redirects and their full location values
  • Audit PHP applications for usage of HTTP redirect functionality with external URLs

Monitoring Recommendations

  • Enable verbose logging for HTTP client operations in PHP applications
  • Deploy network monitoring to track outbound connections from PHP processes
  • Implement URL validation before and after redirect processing
  • Set up alerts for PHP applications connecting to unexpected external domains

How to Mitigate CVE-2025-1861

Immediate Actions Required

  • Upgrade PHP to patched versions: 8.1.32, 8.2.28, 8.3.19, or 8.4.5
  • Review applications that process HTTP redirects with external URLs
  • Implement input validation for redirect URLs in application code
  • Consider disabling automatic redirect following where not strictly necessary

Patch Information

The PHP development team has addressed this vulnerability in the following versions:

  • PHP 8.1.32
  • PHP 8.2.28
  • PHP 8.3.19
  • PHP 8.4.5

Organizations should upgrade to these versions or later. For detailed information, refer to the PHP Security Advisory on GitHub. Additional advisories have been published by Debian LTS and NetApp.

Workarounds

  • Implement application-level URL length validation before processing redirects
  • Use custom redirect handling that validates the full URL rather than relying on PHP's built-in behavior
  • Disable automatic redirect following and manually handle redirects with URL validation
  • Deploy network-level controls to restrict outbound connections from PHP applications
bash
# Check current PHP version
php -v

# Verify PHP version is patched (should be >= 8.1.32, 8.2.28, 8.3.19, or 8.4.5)
php -r "echo 'PHP Version: ' . PHP_VERSION . PHP_EOL;"

# Update PHP on Debian/Ubuntu systems
sudo apt update && sudo apt upgrade php

# Update PHP on RHEL/CentOS systems
sudo yum update php

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechPhp

  • SeverityMEDIUM

  • CVSS Score6.3

  • EPSS Probability0.26%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-131
  • Technical References
  • Debian LTS Announcement

  • NetApp Security Advisory
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2024-8925: PHP Multipart Form Parsing Vulnerability

  • CVE-2025-1734: PHP HTTP Header Parsing Vulnerability

  • CVE-2025-1219: PHP DOM/SimpleXML Charset Vulnerability

  • CVE-2025-22526: PHP/MySQL CPU Stats Object Injection Flaw
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