← Back to search

CVE-2026-108380

8.8 HIGHpublic exploit available

Published 2026-10-13 · Updated 2026-10-16

AI risk analysis

Summary
A Python library vulnerability allows arbitrary code execution during schema generation when user-provided documentation contains unescaped quotes. This enables attackers to inject malicious expressions into generated Pydantic models.
Exploitability
Moderately difficult to exploit as it requires crafting malicious documentation with quotes that terminate string literals, but can be achieved through controlled input in schema definitions.
Blast radius
High impact across applications using dataclasses-avroschema for generating Pydantic models, especially those accepting user input in schema documentation fields.
Detection
No reliable host or network indicator is derivable from the published description.
Prioritized remediation
Upgrade to version 0.70.6 or later to fix the quote escaping vulnerability in PydanticFieldRepresentation.add_field_properties.
rcedeserializationpythonschema

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

NVD description

dataclasses-avroschema generates Avro schemas from Python dataclasses, Pydantic models, and Faust Records and generates Python code from Avro schemas. From version 0.65.9 through 0.70.5, PydanticFieldRepresentation.add_field_properties inserts a schema field's doc value between the quotes of a generated pydantic.Field description argument without escaping it. A crafted quote can terminate the string and inject an expression evaluated during generated class definition, allowing arbitrary Python code execution for Pydantic and AvroDantic model generation. Version 0.70.6 fixes the vulnerability by escaping the documentation value before rendering it.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Weaknesses

CWE-94

Public exploit & PoC references

All references

Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.

Related CVEs

Related by shared AI tags and CWE weakness class. Browse the full archive.