← Back to search

CVE-2026-108381

8.8 HIGHpublic exploit available

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

AI risk analysis

Summary
The vulnerability allows remote code execution through unsafe evaluation of Pydantic class annotations in generated Avro schemas. An attacker can inject malicious Python code that executes during module import when using dataclasses-avroschema with Pydantic models.
Exploitability
Exploitation requires a crafted schema with malicious annotation values that get evaluated during import, making it moderately difficult to exploit without user interaction or specific deployment conditions.
Blast radius
The vulnerability affects any application using dataclasses-avroschema with Pydantic models in versions 0.44.0 through 0.70.5, potentially leading to full system compromise when generated code is imported.
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 unsafe annotation evaluation vulnerability.
rcedeserializationpythoncode-injection

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.44.0 through 0.70.5, the Pydantic and AvroDantic model generators insert a schema field's pydantic-class value after pydantic. in a generated field annotation without safely restricting the expression. Because annotations are evaluated when the generated module is imported, a crafted value can execute arbitrary Python code. Version 0.70.6 fixes the vulnerability by restricting the value to a bare name or a call to a bare name with literal arguments.

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.