← Back to search

CVE-2026-108377

8.8 HIGHpublic exploit available

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

AI risk analysis

Summary
The vulnerability allows attackers to inject arbitrary Python code into generated classes by manipulating schema names, leading to remote code execution when the generated modules are imported. This affects applications using dataclasses-avroschema to generate Python code from Avro schemas.
Exploitability
Exploitation requires a malicious schema name that can terminate string literals and inject code, with no additional preconditions needed beyond having the vulnerable library version installed.
Blast radius
The vulnerability could impact any application that generates Python classes from Avro schemas using the affected library version, potentially allowing attackers to execute arbitrary code on systems where generated modules are 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 string escaping vulnerability in ClassRepresentation.render_metaclass.
rcecode-injectionpythondata-processing

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.62.3 through 0.70.5, ClassRepresentation.render_metaclass inserts a schema-controlled Avro record name into the quoted Meta.schema_name field of generated Python source without escaping it. A crafted name can terminate the string literal and inject statements into the generated class body, which execute when the generated module is imported. Version 0.70.6 fixes the vulnerability by escaping schema values rendered into generated string literals.

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.