CVE-2026-35171 Arbitrary Code Execution via Malicious Logging Configuration in Kedro

Critical 9.8 Published Updated

Attackers can execute arbitrary code by manipulating the logging configuration path via an environment variable in Kedro.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-35171?

CVE-2026-35171 is a critical code injection vulnerability in kedro-org kedro, published on 6 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Kedro is a toolbox for production-ready data science. Prior to 1.3.0, 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. This is a critical remote code execution (RCE) vulnerability caused by unsafe use of logging.config.dictConfig() with user-controlled input. This vulnerability is fixed in 1.3.0.

Weakness: CWE-94, CWE-502

Which versions are affected by CVE-2026-35171?

3 open source packages ship an affected version, including kedro. It affects 1 product.

PackageAffectedFixed in
kedro PyPIAll versions1.3.0
kedro PyPIAll versions1.3.0
kedro PyPIAll versions1.3.0

Products include Linuxfoundation Kedro.

How do I fix CVE-2026-35171?

Upgrade kedro to 1.3.0 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-35171 being exploited?

There is no known exploitation of CVE-2026-35171 in the wild and no public exploit code.

Sources

Also known as GHSA-9cqf-439c-j96r, PYSEC-2026-72.

Is CVE-2026-35171 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free