{"id":"CVE-2026-35171","aliases":["CVE-2026-35171","GHSA-9cqf-439c-j96r","PYSEC-2026-72"],"related":[],"kind":"vulnerability","state":"published","title":"Arbitrary Code Execution via Malicious Logging Configuration in Kedro","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nThis is a **critical remote code execution (RCE)** vulnerability caused by unsafe use of `logging.config.dictConfig()` with user-controlled input.\n\nKedro 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.\n\n---\n\n### Patches\n\nThe vulnerability is fixed by introducing validation that rejects the unsafe `()` factory key in logging configurations before passing them to `dictConfig()`.\n\n#### Fixed in\n- Kedro 1.3.0\n\nUsers should upgrade to this version as soon as possible.\n\n---\n\n### Workarounds\n\nIf upgrading is not immediately possible:\n\n- Do not allow untrusted input to control the `KEDRO_LOGGING_CONFIG` environment variable  \n- Restrict write access to logging configuration files  \n- Avoid using externally supplied or dynamically generated logging configs  \n- Manually validate logging YAML to ensure it does not contain the `()` key  \n\nThese mitigations reduce risk but do not fully eliminate it.\n\n---\n\n### References\n\n- Python logging configuration documentation: https://docs.python.org/3/library/logging.config.html#logging-config-dictschema  \n- CWE-94: Code Injection — https://cwe.mitre.org/data/definitions/94.html","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-04-03T03:48:48.000Z","modified":"2026-07-24T21:10:00.143Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-94","CWE-502"],"affected":[{"ranges":[{"version":"< 1.3.0","status":"affected"}],"vendor":"kedro-org","product":"kedro","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.3.0"}],"ecosystem":"PyPI","package":"kedro","purl":"pkg:pypi/kedro","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.3.0"}],"vendor":"linuxfoundation","product":"kedro","cpe":"cpe:2.3:a:linuxfoundation:kedro:*:*:*:*:*:python:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.3.0"}],"ecosystem":"PyPI","package":"kedro","purl":"pkg:pypi/kedro","source":"pysec"}],"references":[{"url":"https://github.com/kedro-org/kedro/security/advisories/GHSA-9cqf-439c-j96r","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35171","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/kedro-org/kedro","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/kedro/PYSEC-2026-72.yaml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-04-07T15:07:48.767Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-35171","url":"https://www.cve.org/CVERecord?id=CVE-2026-35171","licence":"CVE Terms of Use","modified":"2026-04-07T15:10:37.613Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9cqf-439c-j96r","url":"https://github.com/advisories/GHSA-9cqf-439c-j96r","licence":"CC-BY-4.0","modified":"2026-06-06T00:30:08.713Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-35171","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35171","licence":"Public domain","modified":"2026-07-24T21:10:00.143Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-72","url":"https://osv.dev/vulnerability/PYSEC-2026-72","licence":"CC-BY-4.0","modified":"2026-05-20T09:19:03.377Z"}],"updatedAt":"2026-11-25T22:59:18.047Z","epss":{"score":0.00741,"percentile":0.55866,"date":"2026-12-01T12:00:22.000Z"}}