High severity · published Oct 13, 2026
CVE-2026-108383
dataclasses-avroschema enum field defaults can inject statements into generated modules
8.8
CVSS
0.3%
EPSS
No
On KEV
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, FieldRepresentation.get_field_default renders a schema-controlled enum field default as an enum member reference after applying case conversion but without validating it as an identifier. Newlines, operators, and punctuation can escape the intended reference and inject constrained statements into the generated module, allowing namespace modification or preventing the module from loading. Version 0.70.6 fixes the vulnerability by validating enum defaults as names.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 21% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
DA
dataclasses-avroschema · marcosschroh
>= 0.38.0, < 0.70.6 · source: vendor
Affected product
DA
dataclasses-avroschema
marcosschroh
More from dataclasses-avroschema
8.8
CVE-2026-108385
dataclasses-avroschema enum symbols can inject statements through generated member names
8.8
CVE-2026-108384
dataclasses-avroschema allows code injection through fixed-type aliases supplied as a bare string
8.8
CVE-2026-108382
dataclasses-avroschema allows code injection through generated enum-symbol string literals
8.8
CVE-2026-108381
dataclasses-avroschema pydantic-class metadata allows code injection in generated annotations
8.8
CVE-2026-108380
dataclasses-avroschema field documentation allows code injection in generated Pydantic descriptions