Bug 1908451 (CVE-2020-35381) - CVE-2020-35381 jsonparser: GET call can lead to a slice bounds out of range
Summary: CVE-2020-35381 jsonparser: GET call can lead to a slice bounds out of range
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2020-35381
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1908452 1908948 1910042 1938032
Blocks: 1908454
TreeView+ depends on / blocked
 
Reported: 2020-12-16 17:56 UTC by Guilherme de Almeida Suckevicz
Modified: 2021-10-28 05:04 UTC (History)
9 users (show)

Fixed In Version: jsonparser 1.1.1
Clone Of:
Environment:
Last Closed: 2021-10-28 05:04:41 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github buger jsonparser issues 219 0 None closed panic: runtime error: slice bounds out of range 2021-02-04 13:56:24 UTC

Description Guilherme de Almeida Suckevicz 2020-12-16 17:56:38 UTC
jsonparser 1.0.0 allows attackers to cause a denial of service (panic: runtime error: slice bounds out of range) via a GET call.

Reference:
https://github.com/buger/jsonparser/issues/219

Comment 1 Guilherme de Almeida Suckevicz 2020-12-16 17:56:55 UTC
Created golang-github-buger-jsonparser tracking bugs for this issue:

Affects: fedora-all [bug 1908452]

Comment 2 Doran Moppert 2020-12-18 02:28:48 UTC
Triggering this issue requires attempting to index using a malformed path.  This is a less significant attack surface than malformed JSON, since common usage of the GetString interface is with only the first argument attacker-controlled.  jsonparser still should not crash in this instance, but this attack vector reduces impact to Low.

An initial patch proposal is given on the upstream ticket.  This probably needs refinement, as well as test cases.

Comment 4 lnacshon 2020-12-22 12:35:40 UTC
Seems like management platform are using https://github.com/buger/jsonparser the vulnerable package..


Note You need to log in before you can comment on or make changes to this bug.