VYPR
Unrated severityNVD Advisory· Published Feb 14, 2021· Updated Aug 3, 2024

CVE-2021-27213

CVE-2021-27213

Description

config.py in pystemon before 2021-02-13 allows code execution via YAML deserialization because SafeLoader and safe_load are not used.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Pystemon before 2021-02-13 allows code execution via YAML deserialization due to unsafe loading.

Vulnerability

In pystemon before commit dbeb87afefdb63de2f4cff69b6f10c5965d14b54 (2021-02-13), the _load_yamlconfig function in config.py used yaml.load() with Loader=yaml.FullLoader (or the default Loader for older PyYAML) instead of yaml.safe_load() or yaml.load(..., Loader=yaml.SafeLoader). This allowed arbitrary code execution via deserialization of untrusted YAML data [1].

Exploitation

An attacker who can provide a malicious YAML configuration file to pystemon (e.g., by controlling the configuration input or supply-chain attack) can craft a YAML payload that executes arbitrary Python code when parsed by the vulnerable yaml.load(). No authentication is required if the attacker has file write access to the configuration path [1].

Impact

Successful exploitation yields arbitrary code execution on the server running pystemon with the privileges of the process, potentially leading to full system compromise [1].

Mitigation

The fix was committed on 2021-02-13 in commit dbeb87afefdb63de2f4cff69b6f10c5965d14b54, replacing yaml.load() with yaml.safe_load() and yaml.load(..., Loader=yaml.SafeLoader). Users should update to the latest version of pystemon containing this commit. No workaround is available other than upgrading [1].

AI Insight generated on May 27, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

1

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

2

News mentions

0

No linked articles in our index yet.