Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2022-21648: Latte is an open source template engine for PHP

43
This month
HIGH 8.2UPGRADE

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 score8.2 (High)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionRequired
EPSS exploit chance0.8% (top 42%)
CISA exploited listNo
WeaknessCWE-79
Published2022-01-04
Last modified2026-06-17
Publisher (CNA): GitHub, Inc. · Vendor: nette

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

nette latte UPGRADE
Affected: >= 2.8.0 and < 2.8.8 · >= 2.9.0 and < 2.9.6 · >= 2.10.0 and < 2.10.8
Fixed in: 2.8.8, 2.9.6, 2.10.8
Safe to downgrade to: a release before 2.8.0
1. Check installed version
apt-cache policy latte || rpm -q latte || latte --version
2. UPGRADE to 2.8.8 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade latte
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade latte
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 2.8.0 (Debian / Ubuntu)
apt-cache madison latte sudo apt install latte=<VERSION_BEFORE_2.8.0> sudo apt-mark hold latte
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list latte sudo dnf downgrade latte-<VERSION_BEFORE_2.8.0> sudo dnf versionlock add latte
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
Verify at the official source NVD · CVE Program · Report a problem with this page
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

PHP vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.