kcve.ai취약점 정보 · 내 자산 확인

CVE-2026-108381 dataclasses-avroschema pydantic-class metadata allows code injection in generated annotations

설명

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.

영향 받는 제품 제품 1개

  • marcosschroh

    dataclasses-avroschema

    해결 버전 있음

    영향 받는 버전

    • 0.44.0 이상 0.70.6 미만

    해결 버전

    • 0.70.6 이상

참고 자료 4건

‹ 목록

점검 지원 범위 문의

도입 문의