NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

CVE-2024-50340: Symfony allows changing the environment through a query

mediumCVSS 4.0 6.9 · 3.1 7.3GHSA-x8vp-gf4q-mw5j

Description When the registerargcargv 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. Resolution The SymfonyRuntime now ignores the argv values for non-cli SAPIs PHP runtimes The patch for this issue is available here for branch 5.4.

Published Nov 6, 2024

Affected packages

symfony/runtime

Ecosystem
Composer (PHP)
Affected
>= 5.3.0, < 5.4.46
Fixed in
5.4.46
Check
composer show symfony/runtime

symfony/runtime

Ecosystem
Composer (PHP)
Affected
>= 6.0.0, < 6.4.14
Fixed in
6.4.14
Check
composer show symfony/runtime

symfony/runtime

Ecosystem
Composer (PHP)
Affected
>= 7.0.0, < 7.1.7
Fixed in
7.1.7
Check
composer show symfony/runtime

symfony/symfony

Ecosystem
Composer (PHP)
Affected
>= 5.3.0, < 5.4.46
Fixed in
5.4.46
Check
composer show symfony/symfony

symfony/symfony

Ecosystem
Composer (PHP)
Affected
>= 6.0.0, < 6.4.14
Fixed in
6.4.14
Check
composer show symfony/symfony

symfony/symfony

Ecosystem
Composer (PHP)
Affected
>= 7.0.0, < 7.1.7
Fixed in
7.1.7
Check
composer show symfony/symfony

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Description

When the register_argc_argv 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.

Resolution

The SymfonyRuntime now ignores the argv values for non-cli SAPIs PHP runtimes

The patch for this issue is available here for branch 5.4.

Credits

We would like to thank Vladimir Dusheyko for reporting the issue and Wouter de Jong for providing the fix.

Credited to wouterj.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Composer (PHP) vulnerabilities

All Composer (PHP) entries