dataclasses-avroschema field documentation allows code injection in generated Pydantic descriptions
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| marcosschroh | dataclasses-avroschema | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Marcosschroh | Dataclasses-avroschema |
|
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.450% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Marcosschroh
Marcosschroh dataclasses-avroschema |
|
| Vendors & Products |
Marcosschroh
Marcosschroh dataclasses-avroschema |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | dataclasses-avroschema generates Avro schemas from Python dataclasses, Pydantic models, and Faust Records and generates Python code from Avro schemas. From version 0.65.9 through 0.70.5, PydanticFieldRepresentation.add_field_properties inserts a schema field's doc value between the quotes of a generated pydantic.Field description argument without escaping it. A crafted quote can terminate the string and inject an expression evaluated during generated class definition, allowing arbitrary Python code execution for Pydantic and AvroDantic model generation. Version 0.70.6 fixes the vulnerability by escaping the documentation value before rendering it. | |
| Title | dataclasses-avroschema field documentation allows code injection in generated Pydantic descriptions | |
| Weaknesses | CWE-94 | |
| References |
|
|
| Metrics |
cvssV3_1
|