{"id":"CVE-2026-14535","aliases":["CVE-2026-14535","PYSEC-2026-2150","GHSA-cffv-grgg-g429"],"related":[],"kind":"vulnerability","state":"published","title":"Fickling MLAllowlist analysis pass rendered inoperative by shared mutable state in AnalysisContext.shorten_code()","summary":"In Trail of Bits fickling versions up to and including 0.1.11, the UnsafeImportsML analysis pass unconditionally calls AnalysisContext.shorten_code(node) on every import node it inspects, regardless of whether the import is flagged as unsafe. This call registers the shortened code representation in the shared AnalysisContext.reported_shortened_code set. When the MLAllowlist analysis pass subsequently runs, it calls the same shorten_code() method, receives already_reported=True for every import, and executes a continue statement that skips its allowlist check entirely. This renders MLAllowlist dead code for all imports — it never evaluates whether an import is in the ML allowlist or not. The MLAllowlist pass was designed to catch imports of modules outside the known-safe ML ecosystem (torch, numpy, transformers, etc.) that slip past the UnsafeImports denylist. With MLAllowlist inoperative, any standard library module not in the UNSAFE_IMPORTS denylist can be invoked via pickle deserialization while fickling's check_safety() returns LIKELY_SAFE. The fickling.load() API chains check_safety() into pickle.loads() as an explicit security gate, meaning a LIKELY_SAFE verdict causes the payload to be deserialized and executed. The root cause is shared mutable state between independently-correct analysis passes — UnsafeImportsML works as designed in isolation, MLAllowlist works as designed in isolation, but the shared reported_shortened_code set causes UnsafeImportsML to poison MLAllowlist's deduplication logic.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In Trail of Bits fickling versions up to and including 0.1.11, the UnsafeImportsML analysis pass unconditionally calls AnalysisContext.shorten_code(node) on every import node it inspects, regardless of whether the import is flagged as unsafe. This call registers the shortened code representation in the shared AnalysisContext.reported_shortened_code set. When the MLAllowlist analysis pass subsequently runs, it calls the same shorten_code() method, receives already_reported=True for every import, and executes a continue statement that skips its allowlist check entirely. This renders MLAllowlist dead code for all imports — it never evaluates whether an import is in the ML allowlist or not. The MLAllowlist pass was designed to catch imports of modules outside the known-safe ML ecosystem (torch, numpy, transformers, etc.) that slip past the UnsafeImports denylist. With MLAllowlist inoperative, any standard library module not in the UNSAFE_IMPORTS denylist can be invoked via pickle deserialization while fickling's check_safety() returns LIKELY_SAFE. The fickling.load() API chains check_safety() into pickle.loads() as an explicit security gate, meaning a LIKELY_SAFE verdict causes the payload to be deserialized and executed. The root cause is shared mutable state between independently-correct analysis passes — UnsafeImportsML works as designed in isolation, MLAllowlist works as designed in isolation, but the shared reported_shortened_code set causes UnsafeImportsML to poison MLAllowlist's deduplication logic.","source":"cvelist"},{"lang":"es","text":"En las versiones de fickling de Trail of Bits hasta la 0.1.11 inclusive, la pasada de análisis UnsafeImportsML llama incondicionalmente a AnalysisContext.shorten_code(node) en cada nodo de importación que inspecciona, independientemente de si la importación está marcada como insegura. Esta llamada registra la representación de código acortada en el conjunto compartido AnalysisContext.reported_shortened_code. Cuando la pasada de análisis MLAllowlist se ejecuta posteriormente, llama al mismo método shorten_code(), recibe already_reported=True para cada importación y ejecuta una sentencia continue que omite completamente su verificación de lista de permitidos. Esto convierte a MLAllowlist en código muerto para todas las importaciones - nunca evalúa si una importación está en la lista de permitidos de ML o no. La pasada MLAllowlist fue diseñada para detectar importaciones de módulos fuera del ecosistema de ML conocido como seguro (torch, numpy, transformers, etc.) que escapan a la lista de denegados de UnsafeImports. Con MLAllowlist inoperativa, cualquier módulo de la biblioteca estándar que no esté en la lista de denegados UNSAFE_IMPORTS puede ser invocado a través de la deserialización de pickle mientras que check_safety() de fickling devuelve LIKELY_SAFE. La API fickling.load() encadena check_safety() en pickle.loads() como una puerta de seguridad explícita, lo que significa que un veredicto LIKELY_SAFE hace que la carga útil sea deserializada y ejecutada. La causa raíz es el estado mutable compartido entre pasadas de análisis independientemente correctas - UnsafeImportsML funciona según lo diseñado de forma aislada, MLAllowlist funciona según lo diseñado de forma aislada, pero el conjunto compartido reported_shortened_code hace que UnsafeImportsML envenene la lógica de deduplicación de MLAllowlist.","source":"nvd"}],"published":"2026-07-04T13:31:14.937Z","modified":"2026-10-25T15:10:00.147Z","severity":{"scorer":"BombadilSystems","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"BombadilSystems","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","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-693"],"affected":[{"ranges":[{"type":"custom","introduced":"0","lastAffected":"0.1.11","status":"affected"},{"type":"custom","version":"0.1.12","status":"unaffected"}],"vendor":"trailofbits","product":"fickling","package":"fickling","source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"0.1.11"}],"vendor":"trailofbits","product":"fickling","cpe":"cpe:2.3:a:trailofbits:fickling:*:*:*:*:*:python:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.1.12"}],"ecosystem":"PyPI","package":"fickling","purl":"pkg:pypi/fickling","source":"pysec"}],"references":[{"url":"https://github.com/trailofbits/fickling/security/advisories/GHSA-cffv-grgg-g429","tags":["evidence","exploit","third-party-advisory"],"sources":["cvelist","nvd","pysec"]},{"url":"https://github.com/trailofbits/fickling/pull/278","tags":["fix","issue-tracking","patch"],"sources":["cvelist","nvd","pysec"]},{"url":"https://github.com/trailofbits/fickling/commit/41ce7cb01edd97072994039574a2301ebb3f463d","tags":["fix","patch"],"sources":["cvelist","nvd","pysec"]},{"url":"https://github.com/trailofbits/fickling/releases/tag/v0.1.12","tags":["advisory","release-notes"],"sources":["cvelist","nvd","pysec"]}],"credits":["Christopher Aziz (Bombadil Systems LLC)"],"assigner":"BombadilSystems","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-07-06T14:58:30.612Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-14535","url":"https://www.cve.org/CVERecord?id=CVE-2026-14535","licence":"CVE Terms of Use","modified":"2026-07-06T14:58:34.718Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-14535","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-14535","licence":"Public domain","modified":"2026-10-25T15:10:00.147Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2150","url":"https://osv.dev/vulnerability/PYSEC-2026-2150","licence":"CC-BY-4.0","modified":"2026-07-13T07:15:25.026Z"}],"updatedAt":"2026-11-25T22:59:27.143Z","epss":{"score":0.00332,"percentile":0.28473,"date":"2026-12-01T12:00:22.000Z"}}