Every CVE Search/ Get API key

CVE-2022-24894

Symfony storing cookie headers in HttpCache

5.9 MediumPublic exploitFix available

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. The Symfony HTTP cache system, acts as a reverse proxy: It caches entire responses (including headers) and returns them to the clients. In a recent change in the AbstractSessionListener, the response might contain a Set-Cookie header. If the Symfony HTTP cache system is enabled, this response might bill stored and return to the next clients. An attacker can use this vulnerability to retrieve the victim's session. This issue has been patched and is available for branch 4.4.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
High
Privileges needed
Low
User interaction
Required

What an attacker can affect

Confidentiality
High
Integrity
Low
Availability
Low

Exploit likelihood

4.00%Up 3.1 points since Feb 4, 2023
90%50%10%1%

What each source reports

CVE List Score used 5.9

Symfony storing cookie headers in HttpCache

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. The Symfony HTTP cache system, acts as a reverse proxy: It caches entire responses (including headers) and returns them to the clients. In a recent change in the AbstractSessionListener, the response might contain a Set-Cookie header. If the Symfony HTTP cache system is enabled, this response might bill stored and return to the next clients. An attacker can use this vulnerability to retrieve the victim's session. This issue has been patched and is available for branch 4.4.

Record
CVE-2022-24894
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:L
Weakness
CWE-285
Updated
2026-11-02
EUVDEUVD-2023-0715 5.9

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. The Symfony HTTP cache system, acts as a reverse proxy: It caches entire responses (including headers) and returns them to the clients. In a recent change in the AbstractSessionListener, the response might contain a Set-Cookie header. If the Symfony HTTP cache system is enabled, this response might bill stored and return to the next clients. An attacker can use this vulnerability to retrieve the victim's session. This issue has been patched and is available for branch 4.4.

Record
EUVD-2023-0715
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:L
Updated
2026-11-02
GitHub AdvisoriesGHSA-h7vf-5wrv-9fhv 5.9

Symfony storing cookie headers in HttpCache

Description

The Symfony HTTP cache system acts as a reverse proxy: it caches HTTP responses (including headers) and returns them to clients.

In a recent AbstractSessionListener change, the response might now contain a Set-Cookie header. If the Symfony HTTP cache system is enabled, this header might be stored and returned to some other clients. An attacker can use this vulnerability to retrieve the victim's session.

Resolution

The HttpStore constructor now takes a parameter containing a list of private headers that are removed from the HTTP response headers. The default value for this parameter is Set-Cookie, but it can be overridden or extended by the application.

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

Credits

We would like to thank Soner Sayakci for reporting the issue and Nicolas Grekas for fixing it.

Record
GHSA-h7vf-5wrv-9fhv
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:L
Weakness
CWE-285
Updated
2026-11-02
NVD 5.9

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. The Symfony HTTP cache system, acts as a reverse proxy: It caches entire responses (including headers) and returns them to the clients. In a recent change in the AbstractSessionListener, the response might contain a Set-Cookie header. If the Symfony HTTP cache system is enabled, this response might bill stored and return to the next clients. An attacker can use this vulnerability to retrieve the victim's session. This issue has been patched and is available for branch 4.4.

Record
CVE-2022-24894
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:L
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-285
Updated
2026-11-02
OSV 5.9

Symfony storing cookie headers in HttpCache

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. The Symfony HTTP cache system, acts as a reverse proxy: It caches entire responses (including headers) and returns them to the clients. In a recent change in the AbstractSessionListener, the response might contain a Set-Cookie header. If the Symfony HTTP cache system is enabled, this response might bill stored and return to the next clients. An attacker can use this vulnerability to retrieve the victim's session. This issue has been patched and is available for branch 4.4.

Record
CVE-2022-24894
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:L
Weakness
CWE-285
Updated
2026-11-02
OSVDEBIAN-CVE-2022-24894 8.8

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. The Symfony HTTP cache system, acts as a reverse proxy: It caches entire responses (including headers) and returns them to the clients. In a recent change in the AbstractSessionListener, the response might contain a Set-Cookie header. If the Symfony HTTP cache system is enabled, this response might bill stored and return to the next clients. An attacker can use this vulnerability to retrieve the victim's session. This issue has been patched and is available for branch 4.4.

Record
DEBIAN-CVE-2022-24894
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-03
Show 5 moreShow less
OSVGHSA-h7vf-5wrv-9fhv 5.9

Symfony storing cookie headers in HttpCache

Description

The Symfony HTTP cache system acts as a reverse proxy: it caches HTTP responses (including headers) and returns them to clients.

In a recent AbstractSessionListener change, the response might now contain a Set-Cookie header. If the Symfony HTTP cache system is enabled, this header might be stored and returned to some other clients. An attacker can use this vulnerability to retrieve the victim's session.

Resolution

The HttpStore constructor now takes a parameter containing a list of private headers that are removed from the HTTP response headers. The default value for this parameter is Set-Cookie, but it can be overridden or extended by the application.

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

Credits

We would like to thank Soner Sayakci for reporting the issue and Nicolas Grekas for fixing it.

Record
GHSA-h7vf-5wrv-9fhv
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:L
Weakness
CWE-285
Updated
2026-11-02
OSVUBUNTU-CVE-2022-24894 5.9

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. The Symfony HTTP cache system, acts as a reverse proxy: It caches entire responses (including headers) and returns them to the clients. In a recent change in the AbstractSessionListener, the response might contain a Set-Cookie header. If the Symfony HTTP cache system is enabled, this response might bill stored and return to the next clients. An attacker can use this vulnerability to retrieve the victim's session. This issue has been patched and is available for branch 4.4.

Record
UBUNTU-CVE-2022-24894
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:L
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVBIT-symfony-2022-24894 No score

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. The Symfony HTTP cache system, acts as a reverse proxy: It caches entire responses (including headers) and returns them to the clients. In a recent change in the AbstractSessionListener, the response might contain a Set-Cookie header. If the Symfony HTTP cache system is enabled, this response might bill stored and return to the next clients. An attacker can use this vulnerability to retrieve the victim's session. This issue has been patched and is available for branch 4.4.

Record
BIT-symfony-2022-24894
Updated
2026-11-02
OSVCLSA-2026-1783386143 No score

TuxCare security update for symfony/http-kernel (1 CVE)

TuxCare rebuilt symfony/http-kernel to address 1 CVE. Fixed in v3.4.49-p1+tuxcare.

Record
CLSA-2026-1783386143
Updated
2026-11-02
OSVUSN-7272-1 No score

symfony vulnerabilities

Soner Sayakci discovered that Symfony incorrectly handled cookie storage in the web cache. An attacker could possibly use this issue to obtain sensitive information and access unauthorized resources. (CVE-2022-24894)

Marco Squarcina discovered that Symfony incorrectly handled the storage of user session information. An attacker could possibly use this issue to perform a cross-site request forgery (CSRF) attack. (CVE-2022-24895)

Pierre Rudloff discovered that Symfony incorrectly checked HTML input. An attacker could possibly use this issue to perform cross site scripting. (CVE-2023-46734)

Vladimir Dusheyko discovered that Symfony incorrectly sanitized special input with a PHP directive in URL query strings. An attacker could possibly use this issue to expose sensitive information or cause a denial of service. This issue only affected Ubuntu 24.04 LTS and Ubuntu 22.04 LTS. (CVE-2024-50340)

Oleg Andreyev, Antoine Makdessi, and Moritz Rauch discovered that Symfony incorrectly handled user authentication. An attacker could possibly use this issue to access unauthorized resources and expose sensitive information. This issue was only addressed in Ubuntu 24.04 LTS. (CVE-2024-50341, CVE-2024-51996)

Linus Karlsson and Chris Smith discovered that Symfony returned internal host information during host resolution. An attacker could possibly use this issue to obtain sensitive information. This issue only affected Ubuntu 24.04 LTS and Ubuntu 22.04 LTS. (CVE-2024-50342)

It was discovered that Symfony incorrectly parsed user input through regular expressions. An attacker could possibly use this issue to expose sensitive information. (CVE-2024-50343)

Sam Mush discovered that Symfony incorrectly parsed URIs with special characters. An attacker could possibly use this issue to perform phishing attacks. (CVE-2024-50345)

Record
USN-7272-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
symfony/http-kernel
Packagist
2.0.0 up to 4.4.50
4.4.50
symfony/http-kernel
Packagist
5.0.0 up to 5.4.20
5.4.20
symfony/http-kernel
Packagist
6.0.0 up to 6.0.20
6.0.20
symfony/http-kernel
Packagist
6.1.0 up to 6.1.12
6.1.12
symfony/http-kernel
Packagist
6.2.0 up to 6.2.6
6.2.6
symfony/symfony
Packagist
2.0.0 up to 4.4.50
4.4.50
symfony/symfony
Packagist
5.0.0 up to 5.4.20
5.4.20
symfony/symfony
Packagist
6.0.0 up to 6.0.20
6.0.20
symfony/symfony
Packagist
6.1.0 up to 6.1.12
6.1.12
symfony/symfony
Packagist
6.2.0 up to 6.2.6
6.2.6
Show 23 moreShow less
Affected packages
PackageAffectedFixed
symfony
Bitnami
2.0.0 up to 4.4.50, 5.0.0 up to 5.4.2, 6.0.0 up to 6.0.20, 6.1.0 up to 6.1.12, 6.2.0 up to 6.2.6
4.4.505.4.26.0.206.1.126.2.6
symfony/http-kernel
TuxCare:Packagist
v3.4.49 up to v3.4.49-p1+tuxcare
v3.4.49-p1+tuxcare
symfony
Debian:12
before 5.4.20+dfsg-1
5.4.20+dfsg-1
symfony
Debian:13
before 5.4.20+dfsg-1
5.4.20+dfsg-1
symfony
Debian:14
before 5.4.20+dfsg-1
5.4.20+dfsg-1
symfony
Debian:10
From an advisory covering 3 CVEs
before 3.4.22+dfsg-2+deb10u2, plus listed versions
3.4.22+dfsg-23.4.22+dfsg-2+deb10u1
3.4.22+dfsg-2+deb10u2
symfony/http-kernel
Packagist
2.0.0 up to 4.4.50, plus listed versions
2.0.42.0.52.0.62.0.7v2.0.10
Show 45 moreShow less
v2.0.12v2.0.13v2.0.14v2.0.15v2.0.16v2.0.17v2.0.18v2.0.19v2.0.20v2.0.21v2.0.22v2.0.23v2.0.24v2.0.25v2.0.9v2.1.0v2.1.1v2.1.10v2.1.11v2.1.12v2.1.13v2.1.2v2.1.3v2.1.4v2.1.5v2.1.6v2.1.7v2.1.8v2.1.9v2.2.0v2.2.1v2.2.10v2.2.11v2.2.2v2.2.3v2.2.4v2.2.5v2.2.6v2.2.7v2.2.8v2.2.9v2.3.0v2.3.1v2.3.10v2.3.11
4.4.50
symfony/http-kernel
Packagist
5.0.0 up to 5.4.20, plus listed versions
v5.0.0v5.0.1v5.0.10v5.0.11v5.0.2
Show 45 moreShow less
v5.0.3v5.0.4v5.0.5v5.0.6v5.0.7v5.0.8v5.0.9v5.1.0v5.1.0-BETA1v5.1.0-RC1v5.1.0-RC2v5.1.1v5.1.10v5.1.11v5.1.2v5.1.3v5.1.4v5.1.5v5.1.6v5.1.7v5.1.8v5.1.9v5.2.0v5.2.0-BETA1v5.2.0-BETA2v5.2.0-BETA3v5.2.0-RC1v5.2.0-RC2v5.2.1v5.2.10v5.2.11v5.2.12v5.2.13v5.2.14v5.2.2v5.2.3v5.2.4v5.2.5v5.2.6v5.2.7v5.2.8v5.2.9v5.3.0v5.3.0-BETA1v5.3.0-BETA2
5.4.20
symfony/http-kernel
Packagist
6.0.0 up to 6.0.20, plus listed versions
v6.0.0v6.0.1v6.0.10v6.0.11v6.0.12
Show 15 moreShow less
v6.0.13v6.0.14v6.0.15v6.0.16v6.0.17v6.0.18v6.0.19v6.0.2v6.0.3v6.0.4v6.0.5v6.0.6v6.0.7v6.0.8v6.0.9
6.0.20
symfony/http-kernel
Packagist
6.1.0 up to 6.1.12, plus listed versions
v6.1.0v6.1.1v6.1.10v6.1.11v6.1.2
Show 7 moreShow less
v6.1.3v6.1.4v6.1.5v6.1.6v6.1.7v6.1.8v6.1.9
6.1.12
symfony/http-kernel
Packagist
6.2.0 up to 6.2.6, plus listed versions
v6.2.0v6.2.1v6.2.2v6.2.3v6.2.4v6.2.5
6.2.6
symfony/symfony
Packagist
2.0.0 up to 4.4.50, plus listed versions
2.0.42.0.52.0.62.0.7v2.0.10
Show 45 moreShow less
v2.0.11v2.0.12v2.0.13v2.0.14v2.0.15v2.0.16v2.0.17v2.0.18v2.0.19v2.0.20v2.0.21v2.0.22v2.0.23v2.0.24v2.0.25v2.0.9v2.1.0v2.1.0-BETA1v2.1.0-BETA2v2.1.0-BETA3v2.1.0-BETA4v2.1.0-RC1v2.1.0-RC2v2.1.1v2.1.10v2.1.11v2.1.12v2.1.13v2.1.2v2.1.3v2.1.4v2.1.5v2.1.6v2.1.7v2.1.8v2.1.9v2.2.0v2.2.0-BETA1v2.2.0-BETA2v2.2.0-RC1v2.2.0-RC2v2.2.0-RC3v2.2.1v2.2.10v2.2.11
4.4.50
symfony/symfony
Packagist
5.0.0 up to 5.4.20, plus listed versions
v5.0.0v5.0.1v5.0.10v5.0.11v5.0.2
Show 45 moreShow less
v5.0.3v5.0.4v5.0.5v5.0.6v5.0.7v5.0.8v5.0.9v5.1.0v5.1.0-BETA1v5.1.0-RC1v5.1.0-RC2v5.1.1v5.1.10v5.1.11v5.1.2v5.1.3v5.1.4v5.1.5v5.1.6v5.1.7v5.1.8v5.1.9v5.2.0v5.2.0-BETA1v5.2.0-BETA2v5.2.0-BETA3v5.2.0-RC1v5.2.0-RC2v5.2.1v5.2.10v5.2.11v5.2.12v5.2.13v5.2.14v5.2.2v5.2.3v5.2.4v5.2.5v5.2.6v5.2.7v5.2.8v5.2.9v5.3.0v5.3.0-BETA1v5.3.0-BETA2
5.4.20
symfony/symfony
Packagist
6.0.0 up to 6.0.20, plus listed versions
v6.0.0v6.0.1v6.0.10v6.0.11v6.0.12
Show 15 moreShow less
v6.0.13v6.0.14v6.0.15v6.0.16v6.0.17v6.0.18v6.0.19v6.0.2v6.0.3v6.0.4v6.0.5v6.0.6v6.0.7v6.0.8v6.0.9
6.0.20
symfony/symfony
Packagist
6.1.0 up to 6.1.12, plus listed versions
v6.1.0v6.1.1v6.1.10v6.1.11v6.1.2
Show 7 moreShow less
v6.1.3v6.1.4v6.1.5v6.1.6v6.1.7v6.1.8v6.1.9
6.1.12
symfony/symfony
Packagist
6.2.0 up to 6.2.6, plus listed versions
v6.2.0v6.2.1v6.2.2v6.2.3v6.2.4v6.2.5
6.2.6
symfony
Ubuntu:16.04:LTS
All versions, plus listed versions
2.7.1+dfsg-12.7.5+dfsg-12.7.9+dfsg-12.7.9+dfsg-1ubuntu22.7.10-0ubuntu2
None known
symfony
Ubuntu:Pro:18.04:LTS
All versions, plus listed versions
2.8.7+dfsg-1.3ubuntu13.4.3+dfsg-1ubuntu43.4.6+dfsg-13.4.6+dfsg-1ubuntu0.13.4.6+dfsg-1ubuntu0.1+esm13.4.6+dfsg-1ubuntu0.1+esm2
None known
symfony
Ubuntu:Pro:20.04:LTS
before 4.3.8+dfsg-1ubuntu1+esm2, plus listed versions
4.3.4+dfsg-1ubuntu14.3.8+dfsg-1ubuntu14.3.8+dfsg-1ubuntu1+esm1
4.3.8+dfsg-1ubuntu1+esm2
symfony
Ubuntu:Pro:22.04:LTS
before 5.4.4+dfsg-1ubuntu8+esm1, plus listed versions
5.2.6+dfsg-1ubuntu75.4.4+dfsg-1ubuntu8
5.4.4+dfsg-1ubuntu8+esm1
symfony
Ubuntu:Pro:20.04:LTS
From an advisory covering 9 CVEs
before 4.3.8+dfsg-1ubuntu1+esm2, plus listed versions
4.3.4+dfsg-1ubuntu14.3.8+dfsg-1ubuntu14.3.8+dfsg-1ubuntu1+esm1
4.3.8+dfsg-1ubuntu1+esm2
symfony
Ubuntu:Pro:22.04:LTS
From an advisory covering 9 CVEs
before 5.4.4+dfsg-1ubuntu8+esm1, plus listed versions
5.2.6+dfsg-1ubuntu75.4.4+dfsg-1ubuntu8
5.4.4+dfsg-1ubuntu8+esm1
symfony
Ubuntu:Pro:24.04:LTS
From an advisory covering 9 CVEs
before 6.4.5+dfsg-3ubuntu3+esm1, plus listed versions
5.4.23+dfsg-1ubuntu15.4.35+dfsg-3ubuntu16.4.5+dfsg-3ubuntu26.4.5+dfsg-3ubuntu3
6.4.5+dfsg-3ubuntu3+esm1

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
PoC in GitHubmoften/Symfony-CVE-Scanner-PoC-2025-05-07

History

History
RecordedChangedSources
affected, factsOSV
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV, PoC in GitHub

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2022-24894 is a medium vulnerability (CVSS 5.9) in Sensiolabs Symfony, published February 1, 2023. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 4.00%, the 90th percentile. Fixed in symfony/http-kernel 4.4.50.

References

Show 16 moreShow less
This page doesn't list everything

Left out here: 973 versions. The JSON record has them.

MoveEnter Open