CVE-2026-108380CWE-94code-injection

CVE-2026-108380

High · published October 13, 2026

CVSS v3.1
8.8
EPSS
0%
Percentile
38.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.65.9 through 0.70.5, PydanticFieldRepresentation.add_field_properties inserts a schema field's doc value between the quotes of a generated pydantic.Field description argument without escaping it. A crafted quote can terminate the string and inject an expression evaluated during generated class definition, allowing arbitrary Python code execution for Pydantic and AvroDantic model generation. Version 0.70.6 fixes the vulnerability by escaping the documentation value before rendering it.

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.00450 · 38.1th 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:41Z
    dataclasses-avroschema field documentation allows code injection in generated Pydantic descriptions
    cvelistv5
  • 13 OCT 17:41Z
    dataclasses-avroschema field documentation allows code injection in generated Pydantic descriptions
    cvelistv5