{"id":"CVE-2026-108385","published":"2026-10-13T18:17:17.893","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_enum and EnumRepresentation.render_symbols use each schema-controlled enum symbol as a generated enum member name after case conversion but without validating it as an identifier. When generator classes are used directly, newlines and punctuation can inject constrained statements into the generated enum class body, allowing namespace modification or preventing the module from loading. Version 0.70.6 fixes the vulnerability by validating every enum symbol as a name.","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-gw6w-pvv9-2fqc","tags":[]},{"url":"https://github.com/marcosschroh/dataclasses-avroschema/security/advisories/GHSA-gw6w-pvv9-2fqc","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-gw6w-pvv9-2fqc","tags":[]},{"url":"https://github.com/marcosschroh/dataclasses-avroschema/security/advisories/GHSA-gw6w-pvv9-2fqc","tags":[]}],"hasPoc":true,"ai":{"summary":"The vulnerability allows attackers to inject arbitrary Python code into generated enum classes by using specially crafted enum symbols that contain newlines or punctuation, which can lead to remote code execution or namespace manipulation. This affects the dataclasses-avroschema library when processing user-controlled schema data.","exploitability":"Exploitation requires a user-controllable schema with enum symbols containing newlines or punctuation, making it moderately difficult but possible to trigger through schema generation workflows.","blast_radius":"If exploited, this vulnerability could allow attackers to execute arbitrary code in the context of applications using dataclasses-avroschema, potentially leading to full system compromise or data exfiltration.","remediation":"Upgrade to version 0.70.6 or later to fix the enum symbol validation vulnerability.","detection":"No reliable host or network indicator is derivable from the published description.","tags":["rce","code-injection","python"],"model":"garnet-coder","analyzedAt":"2026-10-17T08:51:06.843Z"}}