High severity · published Oct 13, 2026
CVE-2026-108377
dataclasses-avroschema allows code injection through generated Meta.schema_name
8.8
CVSS
0.4%
EPSS
No
On KEV
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
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 31% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
DA
dataclasses-avroschema · marcosschroh
>= 0.62.3, < 0.70.6 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-108377
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-108377
x_refsource_CONFIRM
https://github.com/marcosschroh/dataclasses-avroschema/security/advisories/GHSA-57hr-pcm8-p9j9
x_refsource_MISC
https://github.com/marcosschroh/dataclasses-avroschema/commit/429f3d705d2d04c0c65e2ef832daed5ff91318fc
x_refsource_MISC
https://github.com/marcosschroh/dataclasses-avroschema/commit/919d3e07c8938369cfc2c0569007ba373247e74a
x_refsource_MISC
https://github.com/marcosschroh/dataclasses-avroschema/releases/tag/0.70.6
More from dataclasses-avroschema
8.8
CVE-2026-108385
dataclasses-avroschema enum symbols can inject statements through generated member names
8.8
CVE-2026-108384
dataclasses-avroschema allows code injection through fixed-type aliases supplied as a bare string
8.8
CVE-2026-108383
dataclasses-avroschema enum field defaults can inject statements into generated modules
8.8
CVE-2026-108382
dataclasses-avroschema allows code injection through generated enum-symbol string literals
8.8
CVE-2026-108381
dataclasses-avroschema pydantic-class metadata allows code injection in generated annotations
