CVE-2026-108381CWE-94code-injection

CVE-2026-108381

High · published October 13, 2026

CVSS v3.1
8.8
EPSS
0%
Percentile
21.2
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
8.8 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00297 · 21.2th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2026-10-13T22:17Z
References (5)
EPSS history
Timeline
  • 15 OCT 03:28Z
    EPSS moved — → 0%
    epss
  • 13 OCT 17:43Z
    dataclasses-avroschema pydantic-class metadata allows code injection in generated annotations
    cvelistv5
  • 13 OCT 17:43Z
    dataclasses-avroschema pydantic-class metadata allows code injection in generated annotations
    cvelistv5