Arbitrary Code Execution in dataclasses-avroschema from Marcos Schroh
CVE-2026-108380

8.8HIGH

Key Information:

Vendor
CVE Published:
13 October 2026

What is CVE-2026-108380?

The dataclasses-avroschema library, used for generating Avro schemas from Python dataclasses and models, contains a critical issue in versions 0.65.9 to 0.70.5. Specifically, PydanticFieldRepresentation.add_field_properties improperly handles schema field's documentation strings. If a crafted quote is inserted, it can terminate the string, enabling attackers to inject arbitrary Python code during the model generation process. Version 0.70.6 rectifies this by escaping documentation values before rendering.

Affected Version(s)

dataclasses-avroschema >= 0.65.9, < 0.70.6

References

CVSS V3.1

Score:
8.8
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
Required
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.