CVE-2022-37767 Pebble Templates protection mechanism bypass can lead to arbitrary code execution
Attackers can execute arbitrary code via Pebble Templates if untrusted input is passed to the engine without application-level restrictions.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2022-37767?
CVE-2022-37767 is a critical code injection vulnerability in n/a, published on 12 Sep 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Pebble Templates 3.1.5 allows attackers to bypass a protection mechanism and implement arbitrary code execution with springbok. NOTE: the vendor disputes this because input to the Pebble templating engine is intended to include arbitrary Java code, and thus either the input should not arrive from an untrusted source, or else the application using the engine should apply restrictions to the input. The engine is not responsible for validating the input.
Weakness: CWE-863
Which versions are affected by CVE-2022-37767?
2 open source packages ship an affected version, including io.pebbletemplates:pebble. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
io.pebbletemplates:pebble Maven | All versions to 3.1.5 | None |
io.pebbletemplates:pebble Maven | All versions to 3.1.5 | None |
Products include Pebbletemplates Pebble Templates.
How do I fix CVE-2022-37767?
No fix has been published for CVE-2022-37767 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2022-37767 being exploited?
There is no known exploitation of CVE-2022-37767 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-wxx5-w9jc-48wx.