{"id":"CVE-2024-34075","published":"2024-05-03T17:51:30Z","modified":"2024-08-02T02:42:59Z","title":"kurwov vulnerable to Denial of Service due to improper data sanitization","vendor":"xiboon","product":"kurwov","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.2,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00299,"percentile":0.23146,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://github.com/xiboon/kurwov/security/advisories/GHSA-hfrv-h3q8-9jpr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/xiboon/kurwov/commit/85d63e652594f121d6656177d7a3c0d823c976c9","tags":["x_refsource_MISC"]},{"url":"https://github.com/xiboon/kurwov/blob/0d58dfa42135ab40e830e92622857282f980ca89/src/MarkovData.ts#L38-L44","tags":["x_refsource_MISC"]}],"priority":{"score":9.0,"factors":[{"name":"EPSS percentile","points":4.63},{"name":"CVSS severity","points":4.34}]},"vendorSlug":"xiboon","affectedVersions":[{"vendor":"xiboon","product":"kurwov","versions":[">= 3.1.0, < 3.2.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-05-03T20:04:26.343021Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"kurwov","vulnerableRanges":[">=3.1.0, <3.2.5"],"patched":["3.2.5"],"from":["GHSA-hfrv-h3q8-9jpr"],"provenance":"source"}],"summary":{"text":"The kurwov library (vendor xiboon) has a flaw in the sanitization of dataset contents in its MarkovData#getNext method, which is used by Markov#generate and Markov#choose. A crafted string containing a forbidden substring followed by a space can bypass the sanitization step and cause the function to throw and stop running properly, and the attack requires only local access with no privileges or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:08:43Z"},"euvd":{"id":"EUVD-2024-1647","exploited":false,"provenance":"source"}}