Advisory

GHSA-754h-5r27-7x3r

Also known as: BIT-symfony-2020-15094, CVE-2020-15094

Summary

RCE in Symfony

Details

Description
-----------

The CachingHttpClient class from the HttpClient Symfony component relies on the HttpCache class to handle requests. HttpCache uses internal headers like X-Body-Eval and X-Body-File to control the restoration of cached responses. The class was initially written with surrogate caching and ESI support in mind (all HTTP calls come from a trusted backend in that scenario). But when used by CachingHttpClient and if an attacker can control the response for a request being made by the CachingHttpClient, remote code execution is possible.

Resolution
----------

HTTP headers designed for internal use in HttpCache are now stripped from remote responses before being passed to HttpCache.

The patch for this issue is available here for the 4.4 branch.

Credits
-------

I would like to thank Matthias Pigulla (webfactory GmbH) for reporting and fixing the issue.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2020-09-02 17:29 UTC
Modified
2026-07-08 06:29 UTC

Affected packages and fixes

symfony/http-kernel

Packagist · All systems

Affected

  • introduced 4.3.0, fixed 4.4.13 (ecosystem)

Fixed versions

4.4.13

Fix

The export has no generic command for this ecosystem.

symfony/http-kernel

Packagist · All systems

Affected

  • introduced 5.0.0, fixed 5.1.5 (ecosystem)

Fixed versions

5.1.5

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 4.3.0, fixed 4.4.13 (ecosystem)

Fixed versions

4.4.13

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 5.0.0, fixed 5.1.5 (ecosystem)

Fixed versions

5.1.5

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