CVE-2021-41168CWE-20CWE-327CWE-400

Hash-Collision Denial-of-Service Vulnerability in snudown

Medium · published October 21, 2021

CVSS v3.1
6.5
EPSS
1%
Percentile
55.8
In the wild
Unconfirmed
What it is

Snudown is a reddit-specific fork of the Sundown Markdown parser used by GitHub, with Python integration added. In affected versions snudown was found to be vulnerable to denial of service attacks to its reference table implementation. References written in markdown ` [reference_name]: https://www.example.com` are inserted into a hash table which was found to have a weak hash function, meaning that an attacker can reliably generate a large number of collisions for it. This makes the hash table vulnerable to a hash-collision DoS attack, a type of algorithmic complexity attack. Further the hash table allowed for duplicate entries resulting in long retrieval times. Proofs of concept and further discussion of the hash collision issue are discussed on the snudown GHSA(https://github.com/reddit/snudown/security/advisories/GHSA-6gvv-9q92-w5f6). Users are advised to update to version 1.7.0.

The record
Technical detail
CVSS v3.1
6.5 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00791 · 55.8th percentile
Weaknesses
CWE-20 · Improper Input Validation; CWE-327 · Use of a Broken or Risky Cryptographic Algorithm; CWE-400 · Uncontrolled Resource Consumption
Published
2021-10-21T20:10Z
EPSS history
Timeline
  • 21 OCT 20:10Z
    Hash-Collision Denial-of-Service Vulnerability in snudown
    cvelistv5