CVE-2025-24374twigphp Twig
Medium 4.3 No auth needed
Follow: this CVE · twigphp · twigphp Twig We alert you by email or Slack (account required).
- Priority
- 41
- CVSS 3.1
- 4.3
- EPSS
- —
- Auth required
- No
- Published
- Jan 29, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-74
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
What happens
Twig is a template language for PHP. When using the ?? operator, output escaping was missing for the expression on the left side of the operator. This vulnerability is fixed in 3.19.0.
What to do
- Apply the vendor's security update for Twig.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | twig/twig |
≥ 3.16.0 < 3.19.0 |
3.19.0 |
composer require "twig/twig:^3.19.0" |
Per OSV / GitHub Advisories (GHSA-3xg3-cgvq-2xwr). Check the version in your lockfile before upgrading.
Affected products
- twigphp · Twig
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.