Skip to main content

kafe2 EUVDEUVD-2026-140788

| CVE-2026-141594 HIGH
Deserialization of Untrusted Data (CWE-502)
2026-12-02 VulnCheck GHSA-cvx9-8qhg-658w
8.5
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious YAML with python/object/apply tags
  2. Delivery
    Deliver fit/data file to victim
  3. Exploit
    Victim loads file via kafe2go or from_file()
  4. Execution
    yaml.load() deserializes tags
  5. Impact
    Execute arbitrary Python as victim

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the victim to open/process an attacker-crafted YAML fit or data file through kafe2's kafe2go command-line entry point or the from_file() API, which routes through YamlReaderMixin's yaml.load() with the unsafe yaml.Loader - the default loader in versions through 2.11.0, so no non-default configuration is needed. The attacker embeds python/object/apply tags that yaml.load() resolves into code execution. Limiting factors: the vector is LOCAL (AV:L) and requires user interaction (UI:P) - the attacker must deliver the file and the victim must load it, so successful attacks depend on social engineering or trusted file-sharing workflows rather than remote network reachability. No authentication or privilege is needed to craft the file (PR:N), and the code runs with the loading user's privileges.

Impact

This is a genuine, high-severity code-execution flaw (CVSS 4.0 base 8.5) but its real-world urgency is tempered by the attack vector. The vendor-supplied CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H) describes unauthenticated, low-complexity full-impact compromise, yet it is LOCAL with passive user interaction (UI:P): the victim must obtain and load an attacker-crafted YAML fit/data file - it is not a remotely reachable service flaw. CWE-502 (unsafe deserialization) is confirmed by the description and the patch diff, which replaces yaml.Loader with yaml.SafeLoader in _yaml_base.py, so the mechanism is well established. KEV status is NOT indicated (not confirmed actively exploited), and no EPSS score was provided, so exploitation probability cannot be quantified from the input. A GitHub issue reference (#264) and a VulnCheck advisory exist, but the input does not confirm working exploit code. The vuln.today decision label is 'this_week' (not act_now/emergency), which aligns with high technical impact but a user-interaction-gated local vector. Net: a real priority for kafe2 users who ingest shared fit/data files, but not an internet-facing mass-exploitation emergency; the low-footprint, academic nature of the product further bounds aggregate risk.

Exploit ScenarioDerived

An attacker shares a malicious kafe2 YAML fit or data file (e.g., via a research collaboration, repository, or email), where python/object/apply tags are embedded. When the victim loads it with kafe2go or from_file(), yaml.load() deserializes the tags and executes arbitrary Python code with the victim's privileges. No confirmed working exploit code is identified in the input, though a GitHub issue reference and VulnCheck advisory exist; the low attack complexity (AC:L) makes crafting such a file straightforward.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Dec 02, 2026

Python code execution in kafe2 through 2.11.0 occurs when a crafted YAML fit or data file is loaded, because YamlReaderMixin uses the unsafe yaml.Loader instead of yaml.SafeLoader. The unsafe loader is the default in every version through 2.11.0, so no non-default configuration is required: an attacker supplies a file containing python/object/apply tags that is processed through the kafe2go command-line entry point or the from_file() API, and the embedded code runs with the victim's privileges. The vector is local and requires the victim to open the file (CVSS 4.0 base 8.5), which limits reachability to social engineering or trusted file-sharing workflows rather than remote network access; no public exploit code was identified at time of analysis, and the upstream fix is a one-line loader change in commit 3f63e79407dac85c562cf8d1b5a3a6ff8c5be053.

RemediationAI

Apply upstream commit 3f63e79407dac85c562cf8d1b5a3a6ff8c5be053, which changes LOADER from yaml.Loader to yaml.SafeLoader in kafe2/fit/representation/_yaml_base.py, or upgrade to a published kafe2 release that contains this commit (verify by checking that the mixin references yaml.SafeLoader) - vendor patch status is 'available from vendor' via https://github.com/PhiLFitters/kafe2/commit/3f63e79407dac85c562cf8d1b5a3a6ff8c5be053, tracked in https://github.com/PhiLFitters/kafe2/issues/264. Until a patched build is deployed, treat kafe2 YAML fit and data files as executable content: do not open untrusted files with kafe2go or from_file(), and pre-screen incoming files for python/object or python/object/apply tags before loading. The trade-off of the SafeLoader change (and of pre-screening) is that files which legitimately round-trip arbitrary Python objects through the unsafe loader will no longer deserialize and may need to be regenerated; because exploitation requires the victim to load a supplied file (AV:L, UI:P), restricting kafe2 file intake to trusted, internally produced files removes the exposure without affecting fitting workflows.

Affected VersionsENISA

kafe2 0 ≤2.11.0

Affected Packages

euvd kafe2 no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

kafe2 is a Python library for fitting and representing data (a common tool in physics/teaching labs), and it serializes fit objects and datasets to YAML through the YamlReaderMixin defined in kafe2/fit/representation/_yaml_base.py. In versions through 2.11.0 that mixin sets LOADER = yaml.Loader (line 41 of the v2.11.0 tag), and PyYAML's non-safe loader resolves arbitrary Python object construction tags such as python/object/apply, turning a data file into executable code. This is classic CWE-502 (deserialization of untrusted data): the parser does not distinguish data from object construction, so any file passed to kafe2go or from_file() is fully trusted. The upstream patch replaces the loader with yaml.SafeLoader, which rejects these tags. CPE cpe:2.3:a:philfitters:kafe2:*:*:*:*:*:*:*:* confirms the affected package is PhiLFitters' kafe2, not a downstream application. Impact is bounded by the deployment model: the CVSS 4.0 vector is AV:L with UI:P and PR:N, so the attacker must deliver the file and persuade the victim to load it, and the resulting code executes under the loading user's privileges rather than over a network service.

Know when Kafe2 gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.5 HIGH
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.8 HIGH

AV:L and UI:R because the victim must load an attacker-supplied YAML file; AC:L and PR:N since no special conditions or privileges are needed; C/I/A:H for arbitrary code execution at user privilege.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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 from_file() to run code with the victim's privileges.

Executive ViewAI

Why It Matters

CVE-2026-141594 is a high-severity vulnerability in kafe2, a Python library used for data fitting and analysis, versions through 2.11.0. The flaw allows arbitrary code execution when a user opens a malicious YAML file, potentially compromising the user's workstation and any connected systems. Organizations relying on kafe2 for scientific or engineering analysis face risks from social engineering or shared files, making patch prioritization and user awareness critical.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

Prevalence
Low
niche academic physics data-fitting Python library, limited enterprise footprint
Social Media
2
Sightings
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy