# CVE-2026-108379: dataclasses-avroschema fixed namespaces allow code injection in generated annotations

- 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.34%, higher than 29% of CVEs (2026-12-01)
- Published: 2026-10-13T17:40:21.984Z
- Modified: 2026-10-16T20:04:29.760Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, 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, BaseGenerator.parse_fixed inserts a fixed type's namespace value between quotes inside a generated types.confixed annotation without escaping or validating it. A crafted quote can terminate the namespace string and alter the surrounding annotation expression, which Python evaluates when the generated class is defined, allowing arbitrary code execution. Version 0.70.6 fixes the vulnerability by requiring the namespace to be a dot-separated sequence of valid Avro names.

(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-h9q3-f96w-f88j>
- <https://github.com/marcosschroh/dataclasses-avroschema/commit/429f3d705d2d04c0c65e2ef832daed5ff91318fc>
- <https://github.com/marcosschroh/dataclasses-avroschema/releases/tag/0.70.6>

## Sources

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

---

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