CVE-2021-41168
JSON

6.5medium

Hash-Collision Denial-of-Service Vulnerability in snudown

Severity
6.5medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.79% (higher than 57% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
reddit snudown< 1.7.0, before 1.7.0CVE List, NVD

All scores

GitHub_M6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD4.0medium CVSS:2.0AV:N/AC:L/Au:S/C:N/I:N/A:P

Classification

What each source says

CVE List

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.

NVD (es)

Snudown es una bifurcación específica de reddit del parser Sundown Markdown usado por GitHub, con integración de Python añadida. En las versiones afectadas se ha detectado que snudown es vulnerable a ataques de denegación de servicio a su implementación de tabla de referencias. Las referencias escritas en markdown "[reference_name]: https://www.example.com" se insertan en una tabla hash que es encontrada que presenta una función hash débil, lo que significa que un atacante puede generar de forma fiable un gran número de colisiones para ella. Esto hace que la tabla hash sea vulnerable a un ataque DoS de colisiones hash, un tipo de ataque de complejidad algorítmica. Además, la tabla hash permitía entradas duplicadas, resultando en largos tiempos de recuperación. Las pruebas de concepto y una mayor discusión sobre el problema de la colisión de hash se discuten en el snudown GHSA(https://github.com/reddit/snudown/security/advisories/GHSA-6gvv-9q92-w5f6). Se recomienda a usuarios que actualicen a la versión 1.7.0

References

Sources

SourceRecordLicence
CVE ListCVE-2021-41168 changed 2024-08-04CVE Terms of Use
NVDCVE-2021-41168 changed 2026-06-17Public domain