CVE-2022-21648: Latte is an open source template engine for PHP
CVE-2022-21648 is a high-severity flaw (CVSS 8.2) affecting latte. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
Latte is an open source template engine for PHP. Versions since 2.8.0 Latte has included a template sandbox and in affected versions it has been found that a sandbox escape exists allowing for injection into web pages generated from Latte. This may lead to XSS attacks. The issue is fixed in the versions 2.8.8, 2.9.6 and 2.10.8. Users unable to upgrade should not accept template input from untrusted sources.
Why this priority
- High severity
A fixed release or distro patch exists.
Risk facts
| CVSS score | 8.2 (High) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 0.8% (top 42%) |
| CISA exploited list | No |
| Weakness | CWE-79 |
| Published | 2022-01-04 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2022-21648?
latte: upgrade to 2.8.8, 2.9.6, 2.10.8. Exact commands for each OS are on this page.
Is CVE-2022-21648 being exploited?
CVE-2022-21648 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2022-21648 affect?
CVE-2022-21648 affects latte. Severity is high (CVSS 8.2). Latte is an open source template engine for PHP. Versions since 2.8.0 Latte has included a template sandbox and in affected versions it has been found that a sandbox escape exists allowing for injection into web pages generated from Latte.
How urgent is CVE-2022-21648?
Priority 43/100. High severity
Software pages
Related CVEs
- CVE-2021-23803 CRITICAL 9.8 UPGRADE This affects the package latte/latte before 2.10.6