Skip to main content
← All vulnerabilities
CVE-2026-108383GHSA-4XXF-MV22-HCR8

dataclasses-avroschema enum field defaults can inject statements into generated modules

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.70.6
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • marcosschroh dataclasses-avroschema

    From 0.38.0 · fixed in 0.70.6

References 3

GitHub · marcosschroh/dataclasses-avroschema