CVE-2024-50340
HIGH NUCLEIsymfony/runtime 5.3.0-5.4.45, 6.0.0-6.4.13, 7.0.0-7.1.6 - Environment Manipulation via Crafted Query String
Title source: llmExploitation Summary
EIP tracks 1 public exploit for CVE-2024-50340. PoCs published by Nyamort. A Nuclei detection template is also available.
AI-analyzed exploit summary The repository provides a detailed explanation of CVE-2024-50340, a vulnerability in Symfony where command-line arguments can be injected via query parameters to manipulate environment variables like APP_ENV and APP_DEBUG. It includes a proof-of-concept example demonstrating how to exploit this via a crafted URL.
Description
symfony/runtime is a module for the Symphony PHP framework which enables decoupling PHP applications from global state. When the `register_argv_argc` php directive is set to `on` , and users call any URL with a special crafted query string, they are able to change the environment or debug mode used by the kernel when handling the request. As of versions 5.4.46, 6.4.14, and 7.1.7 the `SymfonyRuntime` now ignores the `argv` values for non-SAPI PHP runtimes. All users are advised to upgrade. There are no known workarounds for this vulnerability.
Exploits (1)
The repository provides a detailed explanation of CVE-2024-50340, a vulnerability in Symfony where command-line arguments can be injected via query parameters to manipulate environment variables like APP_ENV and APP_DEBUG. It includes a proof-of-concept example demonstrating how to exploit this via a crafted URL.
Nuclei Templates (1)
body="<div id=\"symfony\">" || header="Set-Cookie: symfony"
References (2)
Scores
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L