csirt@kutim:~/threat-intel/cve/CVE-2026-54653

Katalog CVE

CVSS 8.8 · High EPSS 0,71%

Kerentanan Improper Control of Generation of Code ('Code Injection') pada koxudaxi datamodel-code-generator. Skor CVSS 3.1 8.8 (High) menurut github.com.

Deskripsi (NVD)

datamodel-code-generator generates Pydantic v2 models, dataclasses, TypedDict, and msgspec.Struct from OpenAPI, JSON Schema, GraphQL, Avro, Protobuf, and raw JSON, YAML, or CSV. From 0.17.0 until 0.60.2, datamodel-code-generator preserves attacker-controlled default_factory values in src/datamodel_code_generator/parser/jsonschema.py through JsonSchemaObject.init and get_field_extras and emits them into Field(default_factory=...) or field(default_factory=...), allowing Python expression execution when the generated model is imported. This issue is fixed in version 0.60.2.

Rincian

Terbit di NVD
28 Juli 2026
Terakhir diubah
6 Agustus 2026
Status NVD
Analyzed
CVSS 3.1
8.8 (High), sumber github.com
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H · uraikan di kalkulator
Jenis kelemahan (CWE)
CWE-94: Improper Control of Generation of Code ('Code Injection')
CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine
EPSS (30 hari)
0,71% peluang dieksploitasi; lebih tinggi dari 52,3% CVE lain

Produk dan versi terdampak

VendorProdukVersi terdampak
koxudaxi datamodel-code-generator Versi 0.17.0 hingga sebelum 0.60.2

> Data dari konfigurasi CPE di NVD.

Referensi dan perbaikan

Sumber: NVD · CVE.org · EPSS. Halaman ini disusun otomatis dari data tersebut; pembaruan terakhir 5 Okt 2026, 20:11 WITA. Kalau sistem di Perangkat Daerah memakai produk ini dan butuh bantuan, laporkan lewat kanal pelaporan.