CVE-2026-108376

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 execute arbitrary Python code when your application parses an untrusted Avro schema and instantiates the resulting model. They only need to supply a crafted Avro schema to trigger execution.

Root cause

FieldRepresentation.get_field_default injects unvalidated, schema-supplied record names directly into a generated default_factory lambda.

Affected versions

dataclasses-avroschema 0.47.3 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 you cannot immediately patch, stop generating Python models from untrusted or user-supplied Avro schemas.

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.47.3 through 0.70.5, FieldRepresentation.get_field_default inserts a schema-controlled referenced record name into the callable position of a generated default_factory lambda without validating it as an Avro name. A crafted record name can become an arbitrary Python expression that executes when an instance of the generated model consumes the field default. Version 0.70.6 fixes the vulnerability by rejecting record names that do not match the Avro name grammar.

References

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

More fully triaged vulnerabilities you may want to check next.