Bug 1109179 (CVE-2018-17175)

Summary: VUL-1: CVE-2018-17175: python-marshmallow: Information leak due to invalid usage of the schema "only" option
Product: [openSUSE] openSUSE Distribution Reporter: Alexander Bergmann <abergmann>
Component: SecurityAssignee: Dirk Mueller <dmueller>
Status: NEW --- QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P4 - Low CC: wolfgang.frisch
Version: Leap 15.1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/215034/
Whiteboard: CVSSv3:RedHat:CVE-2018-17175:5.9:(AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Alexander Bergmann 2018-09-20 15:41:06 UTC
rh#1631411

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://bugzilla.redhat.com/show_bug.cgi?id=1631411
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-17175
http://people.canonical.com/~ubuntu-security/cve/2018/CVE-2018-17175.html
https://github.com/marshmallow-code/marshmallow/issues/772
https://github.com/marshmallow-code/marshmallow/pull/777
https://github.com/marshmallow-code/marshmallow/pull/782