Skip to main content
← All vulnerabilities
CVE-2026-108384GHSA-8J5C-XQ6F-2C43

dataclasses-avroschema allows code injection through fixed-type aliases supplied as a bare string

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, BaseGenerator.parse_fixed interpolates a fixed type's aliases value directly into a generated types.confixed annotation. A list is represented with quoted entries, but a bare string is emitted as an unquoted Python expression and evaluated when the generated module is imported, allowing arbitrary code execution from a crafted schema. Version 0.70.6 fixes the vulnerability by rejecting aliases values that are not lists.

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