ZeroDay Brief
CVE-2026-108381

Because annotations are evaluated when the generated module is imported, a crafted value can execute arbitrary Python code.

CVSS
8.8High
Chance of exploitation (EPSS)
0.38%
Published
Oct 13, 2026
In the news
Not yet
More from this vendor

What to do

A serious code injection flaw in Marcosschroh Dataclasses-avroschema that can be attacked over the network without logging in, if someone is tricked into an action. No attacks are reported yet; it can go in your normal patch cycle.

Action: Check the vendor's advisory in the references and apply updates as soon as they are available.

Affected versions
Marcosschroh Dataclasses-avroschema
>= 0.44.0, < 0.70.6

Description

dataclasses-avroschema generates Avro schemas from Python dataclasses, Pydantic models, and Faust Records and generates Python code from Avro schemas. From version 0.44.0 through 0.70.5, the Pydantic and AvroDantic model generators insert a schema field's pydantic-class value after pydantic. in a generated field annotation without safely restricting the expression. Because annotations are evaluated when the generated module is imported, a crafted value can execute arbitrary Python code. Version 0.70.6 fixes the vulnerability by restricting the value to a bare name or a call to a bare name with literal arguments.

CWE-94

Affected products

Get alerts for these →

Timeline 1

Latest change: CVE-2026-108381 published (CVSS 8.8) (Oct 13, 2026)

News, advisories, exploit code, scanner detection and exploitation, newest first.

Tue, Oct 13, 2026

  1. CVECVE-2026-108381 published (CVSS 8.8)CVE Program · 18:17 UTC

References 5

  • github.com /marcosschroh/dataclasses-avroschema/commit/429f3d705d2d04c0c65e2ef832daed5ff91318fc
  • github.com /marcosschroh/dataclasses-avroschema/pull/358
  • github.com /marcosschroh/dataclasses-avroschema/releases/tag/0.70.6
  • github.com /marcosschroh/dataclasses-avroschema/security/advisories/GHSA-4jmx-9m83-vxx8
  • github.com /marcosschroh/dataclasses-avroschema/security/advisories/GHSA-4jmx-9m83-vxx8

You are leaving ZeroDay Brief

This link goes to exploit code on a third-party site. We find these links automatically and do not test, review or vouch for them. They may contain malware or fake exploits.

We are not responsible for anything that happens if you open the page or run its code. Never run exploit code on systems you care about.

↑ ↓ moveEnter openEsc closeTry “CVE-2026”, “fortinet” or “ivanti”