CVE-2026-108384 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 interpolates a fixed type's aliases value directly into a generated types.confixed annotation. A list is represented with quoted entries, but a bare string is emitted as an unquoted Python expression and evaluated when the generated module is imported, allowing arbitrary code execution from a crafted schema. Version 0.70.6 fixes the vulnerability by rejecting aliases values that are not lists.
A code injection vulnerability has been identified in dataclasses-avroschema, a package that generates Avro schemas from Python dataclasses, Pydantic models, and Faust Records. The issue affects versions 0.38.0 through 0.70.5. The vulnerability arises in the BaseGenerator.parse_fixed method, where the 'aliases' field is improperly handled. When a schema provides a bare string instead of a list, the value is injected directly into the generated Python code as an unquoted expression. This unquoted string is evaluated upon import, leading to arbitrary code execution.
Users can upgrade to dataclasses-avroschema version 0.70.6 or later, where this vulnerability has been fixed. If using an earlier version, avoid generating models from schemas that are not controlled.
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-8j5c-xq6f-2c43 | [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