{"id":2308,"cve":"CVE-2026-10036","cve_url":"https:\/\/www.cvedetails.com\/cve\/CVE-2026-10036\/","cwe":"CWE-502","cwe_number":502,"cwe_url":"https:\/\/cwe.mitre.org\/data\/definitions\/502","cvss_score":8.7,"published":"2026-08-27","owasp":"A08 Software and Data Integrity Failures","odc":"Checking","cdc":"Incorrect Check","category":"Input Validation and Sanitization","subcategory":"Insecure Parsing or Deserialization","scope":"Local","impact":"Arbitrary Code Execution","summary":"Arbitrary code execution via crafted CKPT.yaml loaded with PyYAML unsafe loader.","permalink":"https:\/\/netpack.pt\/vaitp\/vulnerability\/CVE-2026-10036\/","description":"SpeechBrain before 1.1.1 contains an arbitrary code execution vulnerability that allows attackers to execute arbitrary code by supplying a crafted CKPT.yaml checkpoint metadata file parsed with PyYAML's unsafe loader during candidate enumeration in Checkpointer.recover_if_possible(). Attackers can embed malicious Python object construction tags such as !!python\/object\/apply in any CKPT.yaml file within the configured checkpoint path to trigger code execution during candidate discovery, even if the malicious checkpoint is never selected for recovery.","solution":"Upgrade SpeechBrain to version\u202f1.1.1\u202for newer, which replaces the unsafe PyYAML loader with a safe loader to fix the arbitrary code execution issue.","affected_component":"SpeechBrain","fixed_by_upgrading":true,"vulnerable_code":"import os\nimport yaml\n\nclass Checkpointer:\n    def __init__(self, ckpt_dir):\n        self.ckpt_dir = ckpt_dir\n\n    def recover_if_possible(self):\n        # VULNERABLE: uses unsafe yaml.load allowing arbitrary object construction\n        for entry in os.listdir(self.ckpt_dir):\n            if entry.endswith('.yaml'):\n                path = os.path.join(self.ckpt_dir, entry)\n                with open(path, 'r') as f:\n                    meta = yaml.load(f, Loader=yaml.FullLoader)  # unsafe\n                if meta.get('recoverable'):\n                    return meta\n        return None\n","patched_code":"import os\nimport yaml\n\nclass Checkpointer:\n    def __init__(self, ckpt_dir):\n        self.ckpt_dir = ckpt_dir\n\n    def recover_if_possible(self):\n        # FIX: use safe_load to prevent arbitrary code execution\n        for entry in os.listdir(self.ckpt_dir):\n            if entry.endswith('.yaml'):\n                path = os.path.join(self.ckpt_dir, entry)\n                with open(path, 'r') as f:\n                    meta = yaml.safe_load(f)  # safe\n                if meta and meta.get('recoverable'):\n                    return meta\n        return None\n","payload_needed":true,"payload":null,"payload_status":"model_refused","published_fix":[{"repository":"speechbrain\/speechbrain","commit_url":"https:\/\/github.com\/speechbrain\/speechbrain\/commit\/22a616646a493871401461f80b2d5cf564cb2850","commit_subject":"Use safeloader to load checkpoint meta files (#3067)","units":[{"file":"recipes\/ESC50\/interpret\/interpreter_brain.py","function":"InterpreterBrain.on_stage_end"},{"file":"speechbrain\/utils\/checkpoints.py","function":"Checkpointer._construct_checkpoint_objects"}]}],"references":null}