5.3medium
Marshmallow has DoS in Schema.load(many)
- Severity
- 5.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.32% (higher than 26% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-428g-f7cq-pgp5PYSEC-2026-1605
Description
Marshmallow is a lightweight library for converting complex objects to and from simple Python datatypes. In versions from 3.0.0rc1 to before 3.26.2 and from 4.0.0 to before 4.1.2, Schema.load(data, many=True) is vulnerable to denial of service attacks. A moderately sized request can consume a disproportionate amount of CPU time. This issue has been patched in version 3.26.2 and 4.1.2.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| marshmallow-code marshmallow | >= 3.0.0rc1, < 3.26.2, >= 4.0.0, < 4.1.2 | CVE List |
| marshmallow (PyPI) | from 3.0.0rc1 before 3.26.2, from 4.0.0 before 4.1.2 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| GitHub_M | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| PyPA Advisory Database | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
Marshmallow is a lightweight library for converting complex objects to and from simple Python datatypes. In versions from 3.0.0rc1 to before 3.26.2 and from 4.0.0 to before 4.1.2, Schema.load(data, many=True) is vulnerable to denial of service attacks. A moderately sized request can consume a disproportionate amount of CPU time. This issue has been patched in version 3.26.2 and 4.1.2.
GitHub Advisory Database
Impact
Schema.load(data, many=True) is vulnerable to denial of service attacks. A moderately sized request can consume a disproportionate amount of CPU time.
Patches
4.1.2, 3.26.2
Workarounds
# Fail fast
def load_many(schema, data, **kwargs):
if not isinstance(data, list):
raise ValidationError(['Invalid input type.'])
return [schema.load(item, **kwargs) for item in data]
NVD (es)
Marshmallow es una biblioteca ligera para convertir objetos complejos a y desde tipos de datos simples de Python. En versiones desde 3.0.0rc1 hasta la versión 3.26.2 anterior y desde 4.0.0 hasta la versión 4.1.2 anterior, Schema.load(data, many=True) es vulnerable a ataques de denegación de servicio. Una solicitud de tamaño moderado puede consumir una cantidad desproporcionada de tiempo de CPU. Este problema se ha corregido en la versión 3.26.2 y 4.1.2.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-68480 changed 2025-12-22 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-428g-f7cq-pgp5 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-68480 changed 2026-10-19 | Public domain |
| PyPA Advisory Database | PYSEC-2026-1605 changed 2026-07-07 | CC-BY-4.0 |