Skip to content
OpenAdvisories
Medium · 5.3 CVE-2018-17175 EUVD-2018-0090GHSA-9q2p-fj49-vpxjPYSEC-2018-67

In marshmallow library the schema "only" option treats an empty list as implying no "only" option

Published Sep 18, 2018 · Updated Sep 17, 2024 · Assigned by mitre

Description

In the marshmallow library before 2.15.1 and 3.x before 3.0.0b9 for Python, the schema "only" option treats an empty list as implying no "only" option, which allows a request that was intended to expose no fields to instead expose all fields (if the schema is being filtered dynamically using the "only" option, and there is a user role that produces an empty value for "only").

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-marshmallow 3.0.0b14-1 —
Debian 13 python-marshmallow 3.0.0b14-1 —
Debian 12 python-marshmallow 3.0.0b14-1 —
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS python-marshmallow 3.26.1-0.4ubuntu0.1~esm1 USN-8225-1
Ubuntu Pro 24.04 LTS python-marshmallow 3.20.1-1.1ubuntu0.1~esm1 USN-8225-1
Ubuntu Pro 22.04 LTS python-marshmallow 3.13.0-1ubuntu0.1~esm1 USN-8225-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS python-marshmallow 3.4.0-1ubuntu0.1~esm1 USN-8225-1
Ubuntu Pro 18.04 LTS python-marshmallow 3.0.0b3-1ubuntu0.1~esm1 USN-8225-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-marshmallow 3.20.2-2.2 openSUSE-SU-2026:12017-1, openSUSE-SU-2024:14147-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI marshmallow < 2.15.1 2.15.1 GHSA-9q2p-fj49-vpxj
PyPI marshmallow >= 3.0a0, < 3.0.0b9 3.0.0b9 GHSA-9q2p-fj49-vpxj
PyPI marshmallow < 2.15.1 · >= 3.0a0, < 3.0.0b9 2.15.1, 3.0.0b9 PYSEC-2018-67

Advisories 3

References