Remote Code Execution (RCE) Affecting symfony/http-client package, versions >=4.3.0, <4.4.0 >=4.4.0, <4.4.13 >=5.0.0, <5.1.0 >=5.1.0, <5.1.5


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.71% (81st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-PHP-SYMFONYHTTPCLIENT-609349
  • published 2 Sep 2020
  • disclosed 2 Sep 2020
  • credit Matthias Pigulla

How to fix?

Upgrade symfony/http-client to version 4.4.0, 4.4.13, 5.1.0, 5.1.5 or higher.

Overview

symfony/http-client is a Symfony HttpClient component.

Affected versions of this package are vulnerable to Remote Code Execution (RCE). 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.

References

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
9.8 critical
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    High
Expand this section

NVD

8.8 high