critical CVSS 9.8

CVE-2026-47767·PHP vulnerability

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. From 5.4.46 until 5.4.52, 6.4.40, 7.4.12, and 8.0.12, the CVE-2024-50340 fix gated runtime argv parsing on empty($_GET), but parse_str() and the web SAPI can disagree, allowing a crafted query string to leave $_GET empty while $_SERVER['argv'] still carries attacker-controlled --env or --no-debug flags that change APP_ENV or APP_DEBUG. This issue is fixed in versions 5.4.52, 6.4.40, 7.4.12, and 8.0.12.

Severity
critical
Software
PHP
Fixed in
8.0.12
Published
2026-07-14

Affected versions

From: 8.0.0

Until: 8.0.12

Fixed in: 8.0.12

How to fix this CVE

Update PHP and Symfony to patch a critical argument injection vulnerability that allows attackers to bypass security controls through malformed query strings. Systems running PHP 8.0.0 through 8.0.11 must be upgraded to 8.0.12 or later. This fix ensures that query string parsing cannot be exploited to inject runtime flags that alter application environment settings.

sudo dnf update php

Defensia detects this vulnerability

What an exploitation attempt looks like

Sample log line indicative of exploitation attempts:

POST/GET requests containing query parameters with unusual encoding or whitespace followed by --env or --no-debug flags; pattern: (?:\?|&).*?(?:\-\-env|\-\-no-debug)=(?!.*\s)|query strings where $_GET appears empty but argv contains environment manipulation flags

WAF mitigation (if patching is not yet possible)

Add this rule to your WAF to block exploitation attempts while you schedule the patch.

Block or sanitize query strings containing the substrings '--env' or '--no-debug'; implement strict whitelist validation on query parameter names to reject parameters resembling command-line flags; consider rate-limiting requests with malformed or suspicious query syntax.

How to check if you are affected

  1. Check installed PHP version: php -v
  2. Verify Symfony version in composer.lock or vendor/symfony/symfony/VERSION file if installed via Composer
  3. Search application logs for unusual query strings containing --env or --no-debug flags: grep -r '\-\-env\|\-\-no-debug' /var/log/
  4. Confirm patch by running php -v again and verify the version is 8.0.12 or higher; check Symfony release tags at https://github.com/symfony/symfony/releases

FAQ

What is CVE-2026-47767?

This is a critical argument injection vulnerability in Symfony that allows attackers to inject malicious command-line flags (--env, --no-debug) through crafted query strings, bypassing prior security patches and potentially exposing sensitive application settings or enabling debug mode in production environments.

Is CVE-2026-47767 being actively exploited?

No, this vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog and no public exploits are currently available, though the critical CVSS score of 9.8 warrants immediate patching.

What versions of PHP are affected by CVE-2026-47767?

PHP 8.0.0 through 8.0.11 are affected. Earlier versions 5.4.46–5.4.51, 6.4.0–6.4.39, and 7.4.0–7.4.11 are also vulnerable depending on Symfony version.

How do I check if my server is vulnerable to CVE-2026-47767?

Run php -v to check your PHP version; if it is 8.0.11 or lower, your server is vulnerable. Cross-reference with your Symfony version in composer.lock to confirm exposure.

Does Defensia detect CVE-2026-47767?

Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If PHP is installed on a monitored server, CVE-2026-47767 will appear in your dashboard with remediation steps.

Related PHP CVEs

CVE-2025-25174CVSS 10Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in beeteam368 BeeTeam368 Extensions beeteam368-extensions allows PHP Local File Inclusion.This issue affects BeeTeam368 Extensions: from n/a through <= 1.9.4.
CVE-2024-5932CVSS 10The GiveWP – Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all versions up to, and including, 3.14.1 via deserialization of untrusted input from the 'give_title' parameter. This makes it possible for unauthenticated attackers to inject a PHP Object. The additional presence of a POP chain allows attackers to execute code remotely, and to delete arbitrary files.
CVE-2025-62521CVSS 10ChurchCRM is an open-source church management system. Prior to version 5.21.0, a pre-authentication remote code execution vulnerability in ChurchCRM's setup wizard allows unauthenticated attackers to inject arbitrary PHP code during the initial installation process, leading to complete server compromise. The vulnerability exists in `setup/routes/setup.php` where user input from the setup form is directly concatenated into a PHP configuration template without any validation or sanitization. Any parameter in the setup form can be used to inject PHP code that gets written to `Include/Config.php`, which is then executed on every page load. This is more severe than typical authenticated RCE vulnerabilities because it requires no credentials and affects the installation process that administrators must complete. Version 5.21.0 patches the issue.
CVE-2025-46348CVSS 10YesWiki is a wiki system written in PHP. Prior to version 4.5.4, the request to commence a site backup can be performed and downloaded without authentication. The archives are created with a predictable filename, so a malicious user could create and download an archive without being authenticated. This could result in a malicious attacker making numerous requests to create archives and fill up the file system, or by downloading the archive which contains sensitive site information. This issue has been patched in version 4.5.4.
CVE-2026-39337CVSS 10ChurchCRM is an open-source church management system. Prior to 7.1.0, critical pre-authentication remote code execution vulnerability in ChurchCRM's setup wizard allows unauthenticated attackers to inject arbitrary PHP code during the initial installation process, leading to complete server compromise. The "$dbPassword" variable is not sanitized. This vulnerability exists due to an incomplete fix for CVE-2025-62521. This vulnerability is fixed in 7.1.0.

References

Track CVEs across your fleet automatically

Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-47767. Free for 1 server.

Get started free