CVE-2026-35171
JSON

9.8critical

Arbitrary Code Execution via Malicious Logging Configuration in Kedro

Severity
9.8critical CVSS:3.1 by GitHub_M
Exploit likelihood
0.74% (higher than 55% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-9cqf-439c-j96rPYSEC-2026-72

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.

Affected

Product or packageVersionsReported by
kedro-org kedro< 1.3.0CVE List
kedro (PyPI)before 1.3.0GitHub Advisory Database, PyPA Advisory Database
linuxfoundation kedrobefore 1.3.0NVD

All scores

GitHub_M9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
PyPA Advisory Database9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-94CWE-502

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

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.

GitHub Advisory Database
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.


References
NVD (es)

Kedro es una caja de herramientas para ciencia de datos lista para producción. Antes de la versión 1.3.0, Kedro permite que la ruta del archivo de configuración de registro se establezca a través de la variable de entorno KEDRO_LOGGING_CONFIG y la carga sin validación. El esquema de configuración de registro admite la clave especial (), que permite la instanciación arbitraria de elementos invocables. Un atacante puede explotar esto para ejecutar comandos de sistema arbitrarios durante el inicio de la aplicación. Esta es una vulnerabilidad crítica de ejecución remota de código (RCE) causada por el uso inseguro de logging.config.dictConfig() con entrada controlada por el usuario. Esta vulnerabilidad está corregida en la versión 1.3.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-35171 changed 2026-04-07CVE Terms of Use
GitHub Advisory DatabaseGHSA-9cqf-439c-j96r changed 2026-06-06CC-BY-4.0
NVDCVE-2026-35171 changed 2026-07-24Public domain
PyPA Advisory DatabasePYSEC-2026-72 changed 2026-05-20CC-BY-4.0