Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian cookies and tracking notice, (opens new window)
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
🔍 Discover Our Product Documentation

Barracuda Web Application Firewall
Results will update as you type.
  • How to Update Your Notification Email Addresses
  • What's New in the Barracuda Web Application Firewall
  • 30-Day Evaluation Guide - Barracuda Web Application Firewall
  • Getting Started
  • Deployment
  • Services
  • Securing HTTP/HTTPS Traffic
  • Advanced Bot Protection
  • Client-Side Protection
  • API Security
  • Advanced Security
  • IP Reputation-Based Filters
  • Tuning Security Rules
  • Barracuda Active Threat Intelligence
  • Access Control
  • Traffic Management
  • Configuring User-Defined Patterns
  • Logging, Reporting and Monitoring
  • High Availability
  • Networking
  • System Administration and Maintenance
  • Certificate Management
  • Centralized Management of the Barracuda Web Application Firewall
  • Attacks Description - Action Policy
  • REST API
  • Common Web Application Attacks
  • How to Set Up Barracuda Cloud Control
  • End of Support and End of Life Information
  • Critical Vulnerabilities in Web Application
    • Apache Log4j Critical Vulnerabilities - December 2021
    • Atlassian Confluence RCE: Critical Vulnerability
    • Claroty JSON SQLi Vulnerabilities
    • ManageEngine CVE-2022-47966 Vulnerability
    • OpenSSL Vulnerabilities
    • Spring Framework: Critical Vulnerability Spring4Shell
    • Zero-Day Microsoft Exchange Server: Critical Vulnerabilities - OWASSRF and ProxyNotShell
    • PHP-CGI Vulnerability - CVE-2024-4577
    • React2Shell CVE-2025-55182 - React and Next.js Remote Code Execution Vulnerabilities
    • PHP Vulnerability Mitigation – CVE-2026-109618, & CVE-2026-109619, and CVE-2026-115560
    • Command Injection Vulnerability in Certain Barracuda Networks Products
    • NGINX2Root Vulnerabilities
  • Barracuda Advanced Bot Protection Cloud Infrastructure Upgrade Information
  • Barracuda WAF 12.2 Firmware Hardened to Augment Security of Product Features

    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    PHP-CGI Vulnerability - CVE-2024-4577
    Published Jan 20

    PHP-CGI Vulnerability - CVE-2024-4577

    Subscribe

    This article provides information on the recently discovered PHP-CGI Argument Injection Vulnerability CVE-2024-4577. The vulnerability allows an attacker to remotely execute code (RCE) on targeted vulnerable systems.

    CVE-2024-4577

    Description
    The vulnerability is tracked, and stems from errors in the way PHP converts Unicode characters into ASCII. A feature built into Windows known as Best Fit allows attackers to use a technique known as argument injection to pass user-supplied input into commands executed by an application.

    Exploit

    CVE-2024-4577 affects PHP only when it runs in a mode known as CGI, in which a web server parses HTTP requests and passes them to a PHP script for processing. Even when PHP is not set to CGI mode, however, the vulnerability may still be exploitable when PHP executables such as php.exe and php-cgi.exe are in directories that are accessible by the web server. This configuration is set by default in XAMPP for Windows, making the platform vulnerable unless it has been modified. The "Best-Fit" method fails to escape the soft-hyphen (with the Unicode value 0xAD), and instead converts it to an unescaped regular hyphen (0x2D), a character that is instrumental in many code syntaxes.

    Mitigation

    By default, the pattern "php://" mentioned in the POC can be blocked by enabling "Remote File Inclusion" in Parameter Protection.

    Barracuda WAF Manual Mitigation Configuration:

    1. Go to the ADVANCED > Libraries page, Attack Types section.

      1. Create a new attack group and add the pattern with the "\xAD” regex.

    2. Go to the SECURITY POLICIES > Parameter Protection page, and select the pattern you created under Custom Blocked Attack Types.

    Links:

    NVD - Home
    No Way, PHP Strikes Again! (CVE-2024-4577)
    Nasty bug with very simple exploit hits PHP just in time for the weekend


    We value your feedback.
    If you have questions, suggestions, or feedback on our documentation, contact the Campus Product Documentation team.
    For general product inquiries or technical support, please contact the global Barracuda Support team.

    {"serverDuration": 32, "requestCorrelationId": "faecbe2d1603479c8d1e1c372c8f130b"}