# CVE-2026-108375: dataclasses-avroschema allows code injection through generated field-default literals

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-13T17:05:41.515Z
- Modified: 2026-10-16T16:00:33.533Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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 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.

(As written by CVE List.)

## Affected

- marcosschroh dataclasses-avroschema: >= 0.38.0, < 0.70.6

## References

- <https://github.com/marcosschroh/dataclasses-avroschema/security/advisories/GHSA-9h8h-264x-jcg2> (exploit)
- <https://github.com/marcosschroh/dataclasses-avroschema/commit/01e6d5e15ab0ff69faac39a340d21b85da1e852f>
- <https://github.com/marcosschroh/dataclasses-avroschema/releases/tag/0.70.6>

## Sources

- CVE List: [CVE-2026-108375](https://www.cve.org/CVERecord?id=CVE-2026-108375), CVE Terms of Use, modified 2026-10-13
- NVD: [CVE-2026-108375](https://nvd.nist.gov/vuln/detail/CVE-2026-108375), Public domain, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-108375 · Whole record: https://cve.day/CVE-2026-108375.json · Rebuilt by cve.day 2026-11-25T22:59:43.878Z
