製品・ソフトウェアに関する情報
Sensio LabsのSymfonyにおけるクロスサイトスクリプティングの脆弱性
Title Sensio LabsのSymfonyにおけるクロスサイトスクリプティングの脆弱性
Summary

Symfonyはウェブおよびコンソールアプリケーション向けのPHPフレームワークであり、再利用可能なPHPコンポーネントのセットです。バージョン6.4.24から6.4.40、7.4.12、および8.0.12の間で、開発プロファイラのfile_excerpt Twigフィルターは、highlight_string()を用いてPHPファイルをエスケープしますが、PHP以外のファイルの行を直接<code>要素内に挿入してしまうため、攻撃者が作成したファイル(例:var/log/dev.log)をプロファイラで開く開発者に対してStored XSS攻撃を許してしまいます。この問題はバージョン6.4.40、7.4.12、および8.0.12で修正されています。

Possible impacts ・当該ソフトウェアが扱う情報の一部が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う情報の一部が書き換えられる可能性があります。 ・当該ソフトウェアは停止しません。 
Solution

ベンダ情報を参照して適切な対策を実施してください。

Publication Date July 14, 2026, midnight
Registration Date July 17, 2026, 11:17 a.m.
Last Update July 17, 2026, 11:17 a.m.
CVSS3.0 : 警告
Score 5.4
Vector CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Affected System
Sensio Labs
Symfony 6.4.24 以上 6.4.40 未満
Symfony 7.2.9 以上 7.4.12 未満
Symfony 8.0.0 以上 8.0.12 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
1 [2026年07月17日]
  掲載
July 17, 2026, 11:17 a.m.

NVD Vulnerability Information
CVE-2026-45072
Summary

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. From 6.4.24 until 6.4.40, 7.4.12, and 8.0.12, the development profiler file_excerpt Twig filter escapes PHP files through highlight_string() but interpolates lines from non-PHP files directly into <code> elements, allowing stored XSS against a developer who opens an attacker-written file such as var/log/dev.log in the profiler. This issue is fixed in versions 6.4.40, 7.4.12, and 8.0.12.

Publication Date July 15, 2026, 4:17 a.m.
Registration Date July 16, 2026, 4:22 a.m.
Last Update July 16, 2026, 12:12 p.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:* 6.4.24 6.4.40
cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:* 7.2.9 7.4.12
cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:* 8.0.0 8.0.12
Related information, measures and tools
Common Vulnerabilities List