Advisory

GHSA-x8vp-gf4q-mw5j

Also known as: CVE-2024-50340

Summary

Symfony allows changing the environment through a query

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-11-06 15:11 UTC
Modified
2024-11-07 00:01 UTC

Affected packages and fixes

symfony/runtime

Packagist · All systems

Affected

  • introduced 5.3.0, fixed 5.4.46 (ecosystem)

Fixed versions

5.4.46

Fix

The export has no generic command for this ecosystem.

symfony/runtime

Packagist · All systems

Affected

  • introduced 6.0.0, fixed 6.4.14 (ecosystem)

Fixed versions

6.4.14

Fix

The export has no generic command for this ecosystem.

symfony/runtime

Packagist · All systems

Affected

  • introduced 7.0.0, fixed 7.1.7 (ecosystem)

Fixed versions

7.1.7

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 5.3.0, fixed 5.4.46 (ecosystem)

Fixed versions

5.4.46

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 6.0.0, fixed 6.4.14 (ecosystem)

Fixed versions

6.4.14

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 7.0.0, fixed 7.1.7 (ecosystem)

Fixed versions

7.1.7

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences