CVE-2018-17175

MEDIUM

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").

References

https://github.com/marshmallow-code/marshmallow/issues/772

https://github.com/marshmallow-code/marshmallow/pull/777

https://github.com/marshmallow-code/marshmallow/pull/782

Details

Source: MITRE

Published: 2018-09-18

Updated: 2018-12-07

Type: CWE-254

Risk Information

CVSS v2.0

Base Score: 5

Vector: AV:N/AC:L/Au:N/C:P/I:N/A:N

Impact Score: 2.9

Exploitability Score: 10

Severity: MEDIUM

CVSS v3.0

Base Score: 5.3

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Impact Score: 1.4

Exploitability Score: 3.9

Severity: MEDIUM