CVE-2022-21648 json
Sandbox bypass in Latte templates
published 2022-01-04 4 y ago modified 2026-06-17 4 mo ago also GHSA-36m2-8rhx-f36j , EUVD-2022-0431
- cvss
- 8.2
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 58%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist latte/latte 2.8.8, 2.9.6, 2.10.8
- nette latte 2.8.8, 2.9.6, 2.10.8
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
0.84% chance of exploitation in the next 30 days, higher than 58% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.1 | 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | latte/latte | >=2.10.0, <2.10.8 >=2.9.0, <2.9.6 >=2.8.0, <2.8.8 |
2.10.8 2.9.6 2.8.8 |
Affected products
- nette latte
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/nette/latte/commit/9e1b4f7d70f7a9c3fa6753ffa7d7e450a3d4abb0
web, patch, third-party-advisory
-
github.com
/nette/latte/security/advisories/GHSA-36m2-8rhx-f36j
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-21648
advisory
-
github.com
/nette/latte
package
Sources
- CVE List CVE-2022-21648
- GitHub Advisory GHSA-36m2-8rhx-f36j
- NVD CVE-2022-21648
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.