CVE-2026-141594: kafe2 through 2.11.0 Code Execution via Unsafe YAML Loading
kafe2 through 2.11.0 contains an unsafe deserialization vulnerability in YamlReaderMixin that allows attackers to execute Python code by supplying crafted YAML fit or data files. Attackers can embed python/object/apply tags parsed by yaml.load() via kafe2go or fromfile() to run code with the victim's privileges.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this vulnerability?
Users of kafe2 through 2.11.0 are exposed when they load YAML fit or data files through kafe2go or from_file(). The crafted file is processed with the privileges of the user running kafe2.
What does an attacker need to exploit it?
An attacker needs to supply a crafted YAML fit or data file and persuade a user to load it. The supplied YAML can contain python/object/apply tags that are processed by yaml.load().
Are default installations affected?
The issue is present in the YAML loading functionality in kafe2 through 2.11.0. Exploitation requires use of the affected YAML file-loading paths rather than merely having the package installed.
What can be done before a fix is applied?
Do not load YAML fit or data files from untrusted sources using kafe2go or from_file(). Treat externally supplied YAML files as potentially executable content and run necessary processing with minimal privileges.