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 package | Versions | Reported by |
|---|---|---|
| kedro-org kedro | < 1.3.0 | CVE List |
| kedro (PyPI) | before 1.3.0 | GitHub Advisory Database, PyPA Advisory Database |
| linuxfoundation kedro | before 1.3.0 | NVD |
All scores
| GitHub_M | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| PyPA Advisory Database | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
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_CONFIGenvironment 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
- Python logging configuration documentation: https://docs.python.org/3/library/logging.config.html#logging-config-dictschema
- CWE-94: Code Injection — https://cwe.mitre.org/data/definitions/94.html
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-35171 changed 2026-04-07 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-9cqf-439c-j96r changed 2026-06-06 | CC-BY-4.0 |
| NVD | CVE-2026-35171 changed 2026-07-24 | Public domain |
| PyPA Advisory Database | PYSEC-2026-72 changed 2026-05-20 | CC-BY-4.0 |