CVE-2021-22557 Code execution in SLO Generator via YAML Payload
Attackers can execute arbitrary code by providing a crafted YAML payload to the SLO Generator library.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-22557?
CVE-2021-22557 is a medium-severity code injection vulnerability in Google LLC SLO Generator, published on 4 Oct 2021. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
SLO generator allows for loading of YAML files that if crafted in a specific format can allow for code execution within the context of the SLO Generator. We recommend upgrading SLO Generator past https://github.com/google/slo-generator/pull/173
Which versions are affected by CVE-2021-22557?
3 open source packages ship an affected version, including slo-generator. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
slo-generator PyPI | All versions | 2.0.1 |
slo-generator PyPI | All versions | 2.0.1 |
slo-generator PyPI | All versions | 2.0.1 |
Products include Google Slo Generator.
How do I fix CVE-2021-22557?
Upgrade slo-generator to 2.0.1 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2021-22557 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-22557 exists.
Public exploit code: 1 Exploit-DB entry.
Sources
Also known as GHSA-j28r-j54m-gpc4, PYSEC-2021-429.