The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2024-5458

CVE-2024-5458: PHP Information Disclosure Vulnerability

CVE-2024-5458 is an information disclosure vulnerability in PHP that causes filter_var to incorrectly validate URLs, allowing invalid user credentials to be accepted. This article covers technical details, affected versions, and mitigation.

Published: January 28, 2026

CVE-2024-5458 Overview

CVE-2024-5458 is an input validation vulnerability affecting PHP's filter_var() function when used with the FILTER_VALIDATE_URL flag. Due to a code logic error in PHP versions 8.1.* before 8.1.29, 8.2.* before 8.2.20, and 8.3.* before 8.3.8, certain malformed URLs containing invalid user information (username and password components) are incorrectly treated as valid. This flaw may cause downstream applications to accept and parse URLs that should have been rejected, potentially leading to security bypass scenarios.

Critical Impact

Applications relying on PHP's URL validation may accept malformed URLs with invalid credentials, enabling potential URL parsing inconsistencies, SSRF attacks, or authentication bypass depending on how validated URLs are subsequently processed.

Affected Products

  • PHP 8.1.* versions before 8.1.29
  • PHP 8.2.* versions before 8.2.20
  • PHP 8.3.* versions before 8.3.8
  • Fedora 40

Discovery Timeline

  • 2024-06-09 - CVE-2024-5458 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2024-5458

Vulnerability Analysis

This vulnerability stems from insufficient verification of data authenticity (CWE-345) within PHP's URL filtering mechanism. When developers use filter_var($url, FILTER_VALIDATE_URL) to sanitize user-supplied URLs, the function is expected to reject malformed or potentially dangerous URL structures. However, due to a code logic error in the validation routine, certain URLs containing malformed user information components (the username:password@ portion of a URL) are incorrectly accepted as valid.

The impact of this vulnerability depends heavily on how applications process validated URLs. Common attack scenarios include:

  • URL Parsing Discrepancies: Different URL parsers may interpret the malformed user information differently, leading to inconsistent behavior between validation and actual use
  • SSRF Potential: If validated URLs are used in server-side requests, attackers may be able to craft URLs that bypass validation but redirect to unintended destinations
  • Authentication Confusion: Applications parsing user credentials from URLs may extract incorrect or attacker-controlled values

Root Cause

The vulnerability exists due to a code logic error in PHP's ext/filter/logical_filters.c file, specifically in the URL validation logic. The filter implementation fails to properly validate the user information component of URLs according to RFC 3986 specifications. This allows specially crafted URLs with invalid characters or malformed structures in the username and password fields to pass validation when they should be rejected.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by submitting malformed URLs to any PHP application that relies on filter_var() with FILTER_VALIDATE_URL for input validation. The exploitation process involves:

  1. Identifying a PHP application that validates URLs using filter_var($input, FILTER_VALIDATE_URL)
  2. Crafting a URL with malformed user information that exploits the validation bypass
  3. Submitting the malformed URL to the target application
  4. The application accepts the invalid URL as valid and processes it according to its intended purpose

The specific impact depends on how the application uses the validated URL—whether for redirects, server-side requests, display, or further parsing.

Detection Methods for CVE-2024-5458

Indicators of Compromise

  • Web application logs showing unusual URL patterns with malformed user information components (e.g., URLs with special characters in the username/password section)
  • Unexpected SSRF-like behavior in applications that process user-supplied URLs
  • Application errors or anomalies when parsing URLs that were previously validated

Detection Strategies

  • Audit PHP applications for use of filter_var() with FILTER_VALIDATE_URL flag and assess downstream URL processing logic
  • Implement additional URL validation layers using parse_url() and manual verification of URL components
  • Monitor web server logs for URL submissions containing unusual characters in the authority component

Monitoring Recommendations

  • Enable verbose logging for applications that process user-supplied URLs to capture potential exploitation attempts
  • Implement web application firewall (WAF) rules to flag URLs with suspicious patterns in user information fields
  • Review application behavior when processing URLs from external sources

How to Mitigate CVE-2024-5458

Immediate Actions Required

  • Upgrade PHP to version 8.1.29, 8.2.20, or 8.3.8 or later immediately
  • Audit all applications using filter_var() with FILTER_VALIDATE_URL to assess exposure
  • Implement defense-in-depth by adding secondary URL validation logic until patches can be applied
  • Review downstream URL processing to understand potential impact of accepting malformed URLs

Patch Information

PHP has released security patches addressing this vulnerability in versions 8.1.29, 8.2.20, and 8.3.8. The fix corrects the code logic error in the URL validation routine to properly reject URLs with invalid user information components. Detailed information is available in the GitHub Security Advisory.

Distribution-specific patches are available:

  • Fedora Package Updates
  • Debian LTS Security Updates
  • NetApp Security Advisory

Workarounds

  • Implement additional validation using parse_url() to manually verify URL components after filter_var() validation
  • Use allowlists for URL schemes and hosts where possible to limit the attack surface
  • Consider using third-party URL validation libraries that provide stricter parsing until PHP can be upgraded
  • Deploy WAF rules to filter potentially malformed URLs at the network perimeter
bash
# Check current PHP version and verify if vulnerable
php -v

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

# Update PHP on RHEL/Fedora-based systems
sudo dnf update php

# Verify the updated version is patched (8.1.29+, 8.2.20+, or 8.3.8+)
php -v

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechPhp

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability4.30%

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

  • Debian LTS Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • NetApp Security Advisory

  • Debian LTS Announcement
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2025-52023: Gems CMS Information Disclosure Vulnerability

  • CVE-2025-52022: GemS Loyalty Error Message Disclosure Flaw

  • CVE-2025-14177: PHP getimagesize() Info Disclosure Bug

  • CVE-2024-9026: PHP-FPM Information Disclosure 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