CVE-2026-108375

8.8High

Published Oct 13, 2026 · NVD status: Awaiting Analysis · AI triage by gemini-3.8-flash

8.8CVSS

High

0CVSS v3.110

Attack vector
Network
Complexity
Low
Privileges
None
User action
Required
Impact
Full C/I/A compromise
Weakness
CWE-94

What an attacker gets

Attackers can achieve arbitrary code execution when your application imports generated Python source code. They need you to process or generate code from a maliciously crafted Avro schema containing poisoned field defaults.

Root cause

FieldRepresentation.get_field_default inserts schema default values into generated Python code without escaping, allowing literal escapes and code injection.

Affected versions

dataclasses-avroschema 0.38.0 through 0.70.5

CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Fix & remediation

Upgrade dataclasses-avroschema to version 0.70.6 or higher. If upgrading must wait, do not generate code from untrusted Avro schemas or do not import the generated Python modules.

remediation — bash
$ pip install --upgrade 'dataclasses-avroschema>=0.70.6'

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

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.38.0 through 0.70.5, FieldRepresentation.get_field_default inserts schema-controlled string, UUID, bytes, and fixed field defaults into quoted literals in generated Python source without escaping them. A crafted default can terminate the literal and inject statements into the generated module, which execute when the module is imported. Version 0.70.6 fixes the vulnerability by escaping schema values rendered into generated string literals.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-108375

More fully triaged vulnerabilities you may want to check next.