Loading...
Skip to main content

CVE-2026-45077 — Vulnerability in symfony/monolog-bridge — CVE Details

HIGH

Symfony has Unauthenticated PHP Object Deserialization in MonologBridge server:log Listener

Published May 27, 2026Updated September 10, 2026Source: osv

Summary

### Description `Symfony\Bridge\Monolog\Command\ServerLogCommand` (the `server:log` console command) is a development-time helper that opens a TCP listener and displays log records pushed to it by the application's logging pipeline. Two unsafe defaults combine into a remotely reachable PHP object-deserialization sink: 1. The listener binds to `0.0.0.0:9911` by default; it accepts connections on every interface, not only loopback. 2. Each received frame is processed as `unserialize(base64_decode($message))` without an `allowed_classes` allowlist, without authentication, and without any integrity check. The decoded value is then passed to `displayLog(..., array $record)` which assumes (without validating) that the result is an array. Any host that can reach TCP port 9911 on a machine running `server:log` can therefore submit attacker-chosen serialized PHP payloads. The minimum impact is an unauthenticated denial of service (sending a non-array, e.g. `serialize(new stdClass())`, crashes the listener with a type error). Object injection with magic-method side effects (`__wakeup()` / `__destruct()` / etc.) is reachable before the array type-check fires; full remote code execution is environment-dependent and contingent on usable gadget chains in the autoload set of the target process. ### Resolution The `server:log` command no longer binds to all interfaces by default: the default `--host` is now `127.0.0.1:9911`, requiring explicit opt-in to accept off-host traffic. Message decoding is gated by an `unserialize()` allowlist restricted to the `Symfony\Component\VarDumper\Caster\*` and `Symfony\Component\VarDumper\Cloner\*` classes that legitimately appear inside dumped log records; any other class is rejected and the record discarded. The patch for this issue is available [here](https://github.com/symfony/symfony/commit/0891b2f293896c488e26943dc034334364b77fc4) for branch 5.4. ### Credits Symfony would like to thank Toàn Thắng and Sam Sanoop for reporting the issue and Nicolas Grekas for fixing it.

Advisory Timeline

  • First published May 27, 2026 (138 days ago).
  • Last revised September 10, 2026 — 105 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update symfony/monolog-bridge to 5.4.52 or later
composer require "symfony/monolog-bridge:^5.4.52"
Composer
Update symfony/symfony to 7.4.12 or later
composer require "symfony/symfony:^7.4.12"
Composer
Update symfony/symfony to 6.4.40 or later
composer require "symfony/symfony:^6.4.40"
Composer
Update symfony/symfony to 8.0.12 or later
composer require "symfony/symfony:^8.0.12"
Composer
Update symfony/monolog-bridge to 8.0.12 or later
composer require "symfony/monolog-bridge:^8.0.12"
Composer
Update symfony/symfony to 5.4.52 or later
composer require "symfony/symfony:^5.4.52"
Composer
Update symfony/monolog-bridge to 7.4.12 or later
composer require "symfony/monolog-bridge:^7.4.12"
Composer
Update symfony/monolog-bridge to 6.4.40 or later
composer require "symfony/monolog-bridge:^6.4.40"

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (8)

Affects 1 ecosystem: packagist (2).

PackageEcosystemAffectedFixed In
symfony/monolog-bridge
packagist
2.0.7, v2.0.10, v2.0.12, v2.0.13 (+519 more)5.4.52
symfony/symfony
packagist
v7.0.0, v7.0.1, v7.0.10, v7.0.2 (+66 more)7.4.12
symfony/symfony
packagist
v6.0.0, v6.0.1, v6.0.10, v6.0.11 (+116 more)6.4.40
symfony/symfony
packagist
v8.0.0, v8.0.1, v8.0.10, v8.0.11 (+8 more)8.0.12
symfony/monolog-bridge
packagist
v8.0.0, v8.0.4, v8.0.6, v8.0.8 (+1 more)8.0.12
symfony/symfony
packagist
2.0.4, 2.0.5, 2.0.6, 2.0.7 (+627 more)5.4.52
symfony/monolog-bridge
packagist
v7.0.0, v7.0.3, v7.0.7, v7.0.8 (+24 more)7.4.12
symfony/monolog-bridge
packagist
v6.0.0, v6.0.1, v6.0.10, v6.0.17 (+41 more)6.4.40

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
—
Confidentiality
—
Integrity
—
Availability
—

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U

Frequently Asked Questions

What is CVE-2026-45077?
Symfony has Unauthenticated PHP Object Deserialization in MonologBridge server:log Listener This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2026-45077?
CVE-2026-45077 affects symfony/monolog-bridge and symfony/symfony. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-45077 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-m7v2-7gxm-vc2v

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies