Skip to main content

CVE-2026-35171

CRITICAL
Code Injection (CWE-94)
2026-04-03 https://github.com/kedro-org/kedro GHSA-9cqf-439c-j96r
9.8
CVSS 3.1 · Vendor: https://github.com/kedro-org/kedro
View

Attack ChainAIDerived

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

  1. Access
    Set KEDRO_LOGGING_CONFIG environment variable
  2. Exploit
    Supply malicious YAML with arbitrary callable
  3. Execution
    dictConfig() instantiates attacker code
  4. Impact
    Execute arbitrary commands during startup

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
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

Kedro application with KEDRO_LOGGING_CONFIG environment variable exposed to attacker control; no validation of logging configuration file contents. Remote unauthenticated exploitation requires ability to set environment variables in application deployment environment.

Impact

This vulnerability presents critical real-world risk in containerized and cloud deployment scenarios despite no confirmed active exploitation. The CVSS 9.8 score accurately reflects the technical severity: network attack vector (AV:N), low complexity (AC:L), no privileges required (PR:N), no user interaction (UI:N), and complete impact to confidentiality, integrity, and availability (C:H/I:H/A:H). However, practical exploitation requires specific environmental conditions-attackers must control either the KEDRO_LOGGING_CONFIG environment variable or have write access to logging configuration files. In typical deployment scenarios, environment variable control is achievable through container orchestration misconfigurations, CI/CD pipeline injection, or server-side request forgery chains. The vulnerability is particularly dangerous in multi-tenant data science platforms or automated ML pipeline systems where Kedro applications may be deployed with user-influenced configurations. EPSS data not provided, but the combination of critical CVSS, clear attack path, and widespread Kedro adoption in enterprise data engineering justifies immediate prioritization. The availability of a vendor patch (version 1.3.0) and clear upgrade path reduces residual risk for organizations with mature patch management, but unpatched instances remain highly vulnerable. SSVC assessment: exploitation is not confirmed active (no KEV listing), but the attack is automatable once environmental preconditions are met, with critical technical impact (arbitrary code execution). Priority: immediate patching for internet-facing or multi-tenant Kedro deployments.

Exploit ScenarioDerived

An attacker targeting a cloud-hosted data analytics platform discovers a Kedro-based ML pipeline service where container environment variables can be influenced through a parameter injection flaw in the deployment API. The attacker crafts a malicious YAML logging configuration file hosted on an attacker-controlled server, containing an entry that uses the '()' key to instantiate os.system with a reverse shell command. By manipulating the deployment request to set KEDRO_LOGGING_CONFIG to the URL of this malicious configuration file, the attacker causes the Kedro application to download and parse the poisoned config during startup. The dictConfig() function executes the embedded command, establishing a reverse shell connection that grants the attacker full control over the container, enabling data exfiltration from connected databases, lateral movement to other services in the Kubernetes cluster, and

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Apr 03, 2026

Remote code execution in Kedro (all versions prior to 1.3.0) allows unauthenticated network attackers to execute arbitrary system commands during application startup by poisoning the KEDRO_LOGGING_CONFIG environment variable. The vulnerability stems from unsafe use of Python's logging.config.dictConfig() with the special '()' factory key that enables arbitrary callable instantiation. With CVSS 9.8 (critical severity, network-exploitable, no privileges required, low complexity), this represents a

Earlier versions of this analysis (1)
v1 Apr 03, 2026 - 04:00 CVSS 9.8

Remote code execution in Kedro (all versions prior to 1.3.0) allows unauthenticated network attackers to execute arbitrary system commands during application startup by poisoning the KEDRO_LOGGING_CONFIG environment variable. The vulnerability stems from unsafe use of Python's logging.config.dictConfig() with the special '()' factory key that enables arbitrary callable instantiation. With CVSS 9.8 (critical severity, network-exploitable, no privileges required, low complexity), this represents a severe supply chain and deployment security risk for data pipeline applications. No public exploit identified at time of analysis, though the attack mechanism is well-documented in Python security literature.

RemediationAI

Upgrade immediately to Kedro version 1.3.0 or later, which introduces validation to reject the unsafe '()' factory key in logging configurations before processing with dictConfig(). Organizations can install the patched version using pip: 'pip install --upgrade kedro>=1.3.0' and verify installation with 'pip show kedro'. For environments where immediate upgrading is not feasible, implement defense-in-depth mitigations: restrict write permissions on all logging configuration files to trusted system accounts only; prevent untrusted input from controlling the KEDRO_LOGGING_CONFIG environment variable through input validation, environment variable allowlisting in container orchestration, and least-privilege execution contexts; audit all existing logging configuration YAML files to ensure they do not contain the '()' key; and implement runtime monitoring for unexpected child processes spawned by Kedro applications. In containerized deployments, use read-only filesystems for configuration directories and explicitly set KEDRO_LOGGING_CONFIG to a known-safe path in the container image rather than accepting it from external sources. These workarounds reduce attack surface but do not provide complete protection-upgrading to the patched version remains the only definitive remediation. Consult the official GitHub advisory (https://github.com/kedro-org/kedro/security/advisories/GHSA-9cqf-439c-j96r) for additional vendor guidance and subscribe to Kedro security announcements for future updates.

Affected Packages

pypi kedro fix: 1.3.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

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

Technical ContextAI · show details

This vulnerability exploits a dangerous feature in Python's standard library logging configuration mechanism. The logging.config.dictConfig() function supports a special '()' key that dynamically instantiates arbitrary Python callables during configuration parsing. Kedro, a popular data pipeline framework (pkg:pip/kedro), reads logging configuration from a file path specified via the KEDRO_LOGGING_CONFIG environment variable without validating the configuration contents before passing to dictConfig(). An attacker who can control this environment variable or write to the referenced configuration file can inject a malicious logging configuration containing entries like '()': 'os.system' or '()': 'subprocess.Popen' with arbitrary command arguments. This triggers code execution during the logging subsystem initialization at application startup, before any application-level security controls are active. The root cause is CWE-94 (Improper Control of Generation of Code), specifically unsafe deserialization of configuration data that supports executable directives. This pattern has affected other Python frameworks and represents a broader ecosystem risk wherever dictConfig() processes untrusted input.

Know when the next one hits your stack

  • 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 (https://github.com/kedro-org/kedro) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary rating from Vendor (https://github.com/kedro-org/kedro) · only source for this CVE.

CVSS VectorVendor: https://github.com/kedro-org/kedro

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch released
Apr 03, 2026 - 08:30 nvd
Patch available
CVE Published
Apr 03, 2026 - 03:48 nvd
CRITICAL 9.8

DescriptionCVE.org

Impact

This is a critical Remote Code Execution (RCE) vulnerability caused by unsafe use of logging.config.dictConfig() with user-controlled input.

Kedro allows the logging configuration file path to be set via the KEDRO_LOGGING_CONFIG environment variable and loads it without validation. The logging configuration schema supports the special () key, which enables arbitrary callable instantiation. An attacker can exploit this to execute arbitrary system commands during application startup.

---

Patches

The vulnerability is fixed by introducing validation that rejects the unsafe () factory key in logging configurations before passing them to dictConfig().

Fixed in
  • Kedro 1.3.0

Users should upgrade to this version as soon as possible.

---

Workarounds

If upgrading is not immediately possible:

  • Do not allow untrusted input to control the KEDRO_LOGGING_CONFIG environment variable
  • Restrict write access to logging configuration files
  • Avoid using externally supplied or dynamically generated logging configs
  • Manually validate logging YAML to ensure it does not contain the () key

These mitigations reduce risk but do not fully eliminate it.

Executive ViewAI

Why It Matters

Kedro versions prior to 1.3.0 contain a critical remote code execution vulnerability in the logging configuration system that allows unauthenticated attackers to execute arbitrary commands during application startup by manipulating the KEDRO_LOGGING_CONFIG environment variable. Organizations running Kedro data pipelines face immediate risk of full system compromise through supply chain poisoning or misconfigured deployments, potentially affecting data integrity, confidentiality, and operational continuity.

Business Impact: Severe
Compensating Controls

Vendor-released patch: Kedro version 1.3.0 and later. If immediate patching is blocked, restrict environment variable injection at the container/orchestration layer by implementing read-only configurations and removing KEDRO_LOGGING_CONFIG from deployment specifications; enforce network segmentation to limit application startup communications to trusted configuration sources only.

Threat Intelligence Overview

EPSS Score
0.3%
Top 47% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GHSA GitHub

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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

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

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Affected Products (CPE)CVE.org

pkg:pip/kedro

Related Vulnerabilities in Kedro Path Traversal and RCE

View all 2

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