{"id":"CVE-2026-108379","published":"2026-10-13T18:17:17.000","lastModified":"2026-10-16T20:04:29.760","description":"dataclasses-avroschema generates Avro schemas from Python dataclasses, Pydantic models, and Faust Records and generates Python code from Avro schemas. From version 0.38.0 through 0.70.5, BaseGenerator.parse_fixed inserts a fixed type's namespace value between quotes inside a generated types.confixed annotation without escaping or validating it. A crafted quote can terminate the namespace string and alter the surrounding annotation expression, which Python evaluates when the generated class is defined, allowing arbitrary code execution. Version 0.70.6 fixes the vulnerability by requiring the namespace to be a dot-separated sequence of valid Avro names.","cvssScore":8.8,"cvssSeverity":"HIGH","cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","cwes":["CWE-94"],"vendors":[],"products":[],"references":[{"url":"https://github.com/marcosschroh/dataclasses-avroschema/commit/429f3d705d2d04c0c65e2ef832daed5ff91318fc","tags":[]},{"url":"https://github.com/marcosschroh/dataclasses-avroschema/releases/tag/0.70.6","tags":[]},{"url":"https://github.com/marcosschroh/dataclasses-avroschema/security/advisories/GHSA-h9q3-f96w-f88j","tags":[]}],"exploitRefs":[{"url":"https://github.com/marcosschroh/dataclasses-avroschema/commit/429f3d705d2d04c0c65e2ef832daed5ff91318fc","tags":[]},{"url":"https://github.com/marcosschroh/dataclasses-avroschema/releases/tag/0.70.6","tags":[]},{"url":"https://github.com/marcosschroh/dataclasses-avroschema/security/advisories/GHSA-h9q3-f96w-f88j","tags":[]}],"hasPoc":true,"ai":{"summary":"The vulnerability allows arbitrary code execution during schema generation when processing fixed types with unescaped namespace values. An attacker can inject malicious code into generated configuration files by crafting quotes in namespace strings.","exploitability":"Exploitation requires a user to process a crafted Avro schema through the dataclasses-avroschema library, which is moderately difficult but possible if the application accepts untrusted schema inputs or generates code from user-provided schemas.","blast_radius":"If exploited, attackers could execute arbitrary code on systems that generate Python classes from Avro schemas, potentially leading to full system compromise where such code generation is used.","remediation":"Upgrade to version 0.70.6 or later to fix the namespace validation issue in BaseGenerator.parse_fixed.","detection":"No reliable host or network indicator is derivable from the published description.","tags":["rce","code-injection","schema"],"model":"garnet-coder","analyzedAt":"2026-10-17T08:50:32.068Z"}}