Skip to content
Heist/ feed
High

dataclasses-avroschema allows code injection through record names in generated default factories

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2026-108376

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-108376

dataclasses-avroschema

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "vendor": "marcosschroh",
    "product": "dataclasses-avroschema",
    "versions": [
      {
        "status": "affected",
        "version": ">= 0.47.3, < 0.70.6"
      }
    ]
  }
]
Related CVEs
CVE-2026-108376

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#34499 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement