# CVE-2026-108376: dataclasses-avroschema allows code injection through record names in generated default factories

- 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.48%, higher than 43% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-13T17:17:07.502Z
- Modified: 2026-10-16T23:16:58.403Z
- 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.47.3 through 0.70.5, FieldRepresentation.get_field_default inserts a schema-controlled referenced record name into the callable position of a generated default_factory lambda without validating it as an Avro name. A crafted record name can become an arbitrary Python expression that executes when an instance of the generated model consumes the field default. Version 0.70.6 fixes the vulnerability by rejecting record names that do not match the Avro name grammar.

(As written by CVE List.)

## Affected

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

## References

- <https://hackmd.io/@1ExmmukzRMWN7B4gQ4W-4Q/cve-2026-110113-publiccms-trade-address-save-cross-user-overwrite> (exploit)
- <https://github.com/marcosschroh/dataclasses-avroschema/security/advisories/GHSA-jcjg-gjg5-xp7v>
- <https://github.com/marcosschroh/dataclasses-avroschema/commit/429f3d705d2d04c0c65e2ef832daed5ff91318fc>
- <https://github.com/marcosschroh/dataclasses-avroschema/releases/tag/0.70.6>

## Sources

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

---

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