# CVE-2021-41168: Hash-Collision Denial-of-Service Vulnerability in snudown

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.79%, higher than 57% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-10-21T20:10:12.000Z
- Modified: 2026-06-17T04:08:00.800Z
- Weaknesses: CWE-20, CWE-327, CWE-400, CWE-407
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- reddit snudown: < 1.7.0; before 1.7.0

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:N/I:N/A:P`

## References

- <https://github.com/reddit/snudown/security/advisories/GHSA-6gvv-9q92-w5f6> (exploit, third-party-advisory)
- <https://github.com/reddit/snudown/commit/1ac2c130b210539ee1e5d67a7bac93f9d8007c0e> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2021-41168](https://www.cve.org/CVERecord?id=CVE-2021-41168), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-41168](https://nvd.nist.gov/vuln/detail/CVE-2021-41168), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-41168 · Whole record: https://cve.day/CVE-2021-41168.json · Rebuilt by cve.day 2026-11-25T22:58:04.723Z
