CVE-2024-34075
published medium CVSS 3.1 · 6.2kurwov vulnerable to Denial of Service due to improper data sanitization
Package status and fixes
Description
kurwov is a fast, dependency-free library for creating Markov Chains. An unsafe sanitization of dataset contents on the `MarkovData#getNext` method used in `Markov#generate` and `Markov#choose` allows a maliciously crafted string on the dataset to throw and stop the function from running properly. If a string contains a forbidden substring (i.e. `__proto__`) followed by a space character, the code will access a special property in `MarkovData#finalData` by removing the last character of the string, bypassing the dataset sanitization (as it is supposed to be already sanitized before this function is called). Any dataset can be contaminated with the substring making it unable to properly generate anything in some cases. This issue has been addressed in version 3.2.5 and all users are advised to upgrade. There are no known workarounds for this vulnerability.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.2 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| xiboon | kurwov | >= 3.1.0, < 3.2.5 (affected) | GitHub_M · cna |
| xiboon | kurwov | 3.1.0 through 3.2.5 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-502 CWE-502: Deserialization of Untrusted Data
References
3Provider assertions
3GitHub_M · cna
kurwov vulnerable to Denial of Service due to improper data sanitization
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 9482358238b4bccc2dd34eb2a06a157bf1550535fd3bc8675d99650a37461aa1
- Ingested
- 23 Sep 2026, 08:23:23 UTC
- Source record
- Official CVE record