CVE-2026-108382CWE-94code-injection

CVE-2026-108382

High · published October 13, 2026

CVSS v3.1
8.8
EPSS
0%
Percentile
29.1
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.38.0 through 0.70.5, EnumRepresentation.render_symbols concatenates each schema-controlled enum symbol between double quotes in a generated enum assignment. When generator classes are used directly, a quote can terminate the string literal and inject arbitrary Python code into the enum class body, which executes when the generated module is imported. Version 0.70.6 fixes the vulnerability by escaping enum symbol values before rendering them.

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.00365 · 29.1th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2026-10-13T22:17Z
References (4)
EPSS history
Timeline
  • 15 OCT 03:28Z
    EPSS moved — → 0%
    epss
  • 13 OCT 17:44Z
    dataclasses-avroschema allows code injection through generated enum-symbol string literals
    cvelistv5
  • 13 OCT 17:44Z
    dataclasses-avroschema allows code injection through generated enum-symbol string literals
    cvelistv5