BuzzPHP
LightDarkSystem

Symfony Security Release: Five Fixes and Who They Affect

Symfony fixed five security issues on 25 November 2026, from CSV crashes to leaked error dumps. Check the fixed versions and whether your setup is affected.

PHP SecurityBy BuzzPHPPublished

On this page

Symfony published five security advisories on 25 November 2026, covering the Serializer, FrameworkBundle, Security HTTP, HttpClient and ExpressionLanguage components. The fixes shipped the same day: 5.4.57, 6.4.51, 7.4.24 and 8.1.12, depending on the component, so one composer update covers everything if you track a supported branch. Two of the five only affect newer branches, so check the list before deciding how urgent each one is for your app.

A small CSV file can crash PHP (CVE-2026-133761)

CsvEncoder::decode() splits each header cell on the key separator (. by default) and nests the decoded rows one level per separator. A crafted header with many separators makes it nest without limit: a 448 KB payload can crash PHP with a stack overflow, and a 2 KB body can allocate over 128 MB. Anything that decodes untrusted CSV is affected, including #[MapRequestPayload] on Symfony 7.4. Fixed in Serializer 5.4.57, 6.4.51, 7.4.24 and 8.1.12. If you accept CSV uploads, update first and treat this as the most urgent of the five.

Workers can leak full exception dumps (CVE-2026-133762)

Since Symfony 7.4, FrameworkBundle picks the error renderer from the application's runtime mode, which comes from APP_RUNTIME_MODE. HTTP workers running under the CLI SAPI without that variable set returned full exception dumps — messages, file paths, stack traces and even environment variables — as production error responses. RoadRunner, Swoole and ReactPHP runners are affected; FrankenPHP is not, because it does not run under the CLI SAPI. Fixed in FrameworkBundle 7.4.24 and 8.1.12. Setting APP_RUNTIME_MODE=prod also closes the hole, but upgrading is the durable fix.

Login redirects can reach another host (CVE-2026-134790)

The fix for CVE-2017-16652 restricts login redirects to the host of the request. When framework.session.cookie_domain is set, a crafted target such as https://evil.test?.example.com passed the host check, sending users to another site right after login — a ready-made phishing step. Fixed in Security HTTP 5.4.57, 6.4.51, 7.4.24 and 8.1.12. Upgrade if you set a session cookie domain; if you never set one, this does not affect you.

A Proxy header can hijack HttpClient's proxy (CVE-2026-134792)

When no proxy is configured, HttpClient takes the proxy from environment variables such as http_proxy. In CLI-SAPI HTTP workers, a client-sent Proxy header could choose the proxy for the app's outgoing requests instead, handing full http:// requests — credentials included — to an attacker-controlled proxy. RoadRunner, php-pm and similar runners are affected. Fixed in HttpClient 5.4.57, 6.4.51, 7.4.24 and 8.1.12. Upgrade if you run workers under the CLI SAPI.

Unclosed comments slow the ExpressionLanguage lexer (CVE-2026-134791)

Since Symfony 7.2, expressions can contain comments, and the lexer used a regular expression to find the end of a comment. An unclosed /* made it scan the rest of the expression again for every comment marker, so linting 192 KB of /* took 9 to 11 seconds, and 96 KB took 34 seconds without PCRE JIT. Anything that lints or parses untrusted expressions is affected, including the ExpressionSyntax validation constraint. Fixed in ExpressionLanguage 7.4.24 and 8.1.12; unclosed comments now throw a SyntaxError instead. This one needs untrusted expression input to matter, so it is the least urgent of the five.

What to do

  1. Run composer update symfony/* on a supported branch and confirm the locked versions are at or above the fixed ones for the components you use.
  2. If you run RoadRunner, Swoole, ReactPHP or php-pm, prioritise the FrameworkBundle and HttpClient fixes — those two leak data or credentials from production workers.
  3. If you accept CSV uploads or set a session cookie domain, prioritise the Serializer and Security HTTP fixes.
  4. Set APP_RUNTIME_MODE=prod for workers if you have not already; it is good hygiene even after the upgrade.

All five advisories were published on 25 November 2026 with patches available the same day, so there is no reason to wait for a maintenance window to start: update, run your test suite, and deploy.

Sources: CVE-2026-133761, CVE-2026-133762, CVE-2026-134790, CVE-2026-134791, CVE-2026-134792.

FAQ

Do I need to update if I run Symfony on PHP-FPM behind nginx?

The two worker issues (CVE-2026-133762 and CVE-2026-134792) only affect HTTP workers running under the CLI SAPI, so a classic PHP-FPM setup is not exposed to them. The CSV, login-redirect and ExpressionLanguage issues depend on your code, not your server setup, so check those three.

I already set APP_RUNTIME_MODE=prod. Am I safe from CVE-2026-133762?

Setting the variable closes that hole, because FrameworkBundle then picks the production error renderer. Upgrade anyway: the fixed releases also cover the other advisories, and the variable alone does not fix them.

Which versions fix everything?

Update each component you use to 5.4.57, 6.4.51, 7.4.24 or 8.1.12 on your branch. FrameworkBundle and ExpressionLanguage only ship fixes in 7.4.24 and 8.1.12, so if you run an older branch, check whether your component is affected at all.

Related guides