---
id: CVE-2026-108375
title: >-
  dataclasses-avroschema generates Avro schemas from Python dataclasses,
  Pydantic models, and Faust Records and generates Python code from Avro schemas
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 inserts sche…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cwe:
  - CWE-94
vendor: marcosschroh
product: dataclasses-avroschema
affected:
  - 'dataclasses-avroschema >= 0.38.0, < 0.70.6'
published: '2026-10-13'
updated: '2026-10-16'
sourceUpdated: '2026-10-16T16:00:33.533'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-108375'
references:
  - url: >-
      https://github.com/marcosschroh/dataclasses-avroschema/commit/01e6d5e15ab0ff69faac39a340d21b85da1e852f
    label: security-advisories@github.com
  - url: 'https://github.com/marcosschroh/dataclasses-avroschema/releases/tag/0.70.6'
    label: security-advisories@github.com
  - url: >-
      https://github.com/marcosschroh/dataclasses-avroschema/security/advisories/GHSA-9h8h-264x-jcg2
    label: security-advisories@github.com
  - url: >-
      https://github.com/marcosschroh/dataclasses-avroschema/security/advisories/GHSA-9h8h-264x-jcg2
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
  - cve.org
  - exploit-available
epss: 0.00464
epssPercentile: 0.40055
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-10-13T17:26:36.130286Z'
ingestedAt: '2026-10-13T18:41:42.737Z'
---

## Overview

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 inserts schema-controlled string, UUID, bytes, and fixed field defaults into quoted literals in generated Python source without escaping them. A crafted default can terminate the literal and inject statements into the generated module, which execute when the module is imported. Version 0.70.6 fixes the vulnerability by escaping schema values rendered into generated string literals.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
