{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-41168 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2021-41168 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-41168 is a medium-severity denial of service vulnerability in reddit snudown, published on 21 Oct 2021. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-41168 and fix it if it is affected.\n\nWhat it is: CVE-2021-41168 is a medium-severity denial of service vulnerability in reddit snudown, published on 21 Oct 2021. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-41168 in the wild and no public exploit code.\n\nAffected product: reddit snudown. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-41168/ (Markdown: https://insights.sbomify.com/CVE-2021-41168/index.md)","id":"CVE-2021-41168","markdown":"https://insights.sbomify.com/CVE-2021-41168/index.md","name":"CVE-2021-41168","record":{"aliases":["GHSA-6gvv-9q92-w5f6"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Markdown parser library","requires_auth":"low_privilege","summary":"An attacker can cause denial of service in snudown by exploiting weak hash functions in its reference table implementation.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"snudown","vendor":"reddit"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"},{"id":"CWE-327","name":"Use of a Broken or Risky Cryptographic Algorithm"},{"id":"CWE-20","name":"Improper Input Validation"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Hash-Collision Denial-of-Service Vulnerability in snudown","id":"CVE-2021-41168","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"denial_of_service","year":"2021"},"n_packages":0,"n_references":2,"next":{"headline":"Improper Neutralization HTML tags in sulu/sulu","id":"CVE-2021-41169"},"packages":[],"prev":{"headline":"Unlimited requests in modern-async","id":"CVE-2021-41167"},"products":["snudown"],"published":"2021-10-21","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["reddit"]},"summary":"An attacker can cause denial of service in snudown by exploiting weak hash functions in its reference table implementation.","url":"https://insights.sbomify.com/CVE-2021-41168/"}