Buffer Overflow Affecting brotli package, versions [,1.0.8)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.42% (62nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-BROTLI-1925013
  • published15 Sept 2020
  • disclosed15 Sept 2020
  • creditUnknown

Introduced: 15 Sep 2020

CVE-2020-8927  (opens in a new tab)
CWE-119  (opens in a new tab)

How to fix?

Upgrade brotli to version 1.0.8 or higher.

Overview

brotli is a Brotli is a generic-purpose lossless compression algorithm that compresses data using a combination of a modern variant of the LZ77 algorithm, Huffman coding and 2nd order context modeling, with a compression ratio comparable to the best currently available general-purpose compression methods. It is similar in speed with deflate but offers more dense compression.

Affected versions of this package are vulnerable to Buffer Overflow. An attacker could control the input length of a "one-shot" decompression request to a script can trigger a crash, which happens when copying over chunks of data larger than 2 GiB.

CVSS Base Scores

version 4.0
version 3.1