CVE-2026-108379 Details
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.
A vulnerability in dataclasses-avroschema versions 0.38.0 through 0.70.5 allows for arbitrary code execution. The issue arises in the BaseGenerator.parse_fixed method, where a fixed type's namespace value is inserted into the generated type annotation without proper validation or escaping. This oversight can be exploited by crafting a namespace value that includes quotes, terminating the string and altering the annotation expression, which is then executed by Python when the class is imported. The vulnerability has been patched in version 0.70.6 by validating the namespace to ensure it conforms to Avro naming rules before it is rendered into an annotation.
Users can upgrade to dataclasses-avroschema version 0.70.6 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 13, 2026CISA-ADP
Assessed Oct 13, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/marcosschroh/dataclasses-avroschema/commit/429f3d705d2d04c0c65e2ef832daed5ff91318fc | [email protected] | Source CodeVendor |
| https://github.com/marcosschroh/dataclasses-avroschema/releases/tag/0.70.6 | [email protected] | Release NotesVendor |
| https://github.com/marcosschroh/dataclasses-avroschema/security/advisories/GHSA-h9q3-f96w-f88j | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| dataclasses-avroschema | <= 0.70.5 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 13, 2026 | CVE Modified | CISA-ADP |
| Oct 13, 2026 | New CVE Received | [email protected] |
Volerion