CVE-2024-34075
kurwov vulnerable to Denial of Service due to improper data sanitization
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
0Exploited in Wild
-Decision
Descriptions
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.
kurwov es una librería rápida y libre de dependencias para crear cadenas de Markov. Una sanitización insegura del contenido del conjunto de datos en el método `MarkovData#getNext` usado en `Markov#generate` y `Markov#choose` permite que una cadena creada con fines malintencionados en el conjunto de datos lance y detenga la función para que no se ejecute correctamente. Si una cadena contiene una subcadena prohibida (es decir, `__proto__`) seguida de un carácter de espacio, el código accederá a una propiedad especial en `MarkovData#finalData` eliminando el último carácter de la cadena, evitando la desinfección del conjunto de datos (como se supone). ya debe estar desinfectado antes de llamar a esta función). Cualquier conjunto de datos puede estar contaminado con la subcadena, lo que hace que en algunos casos no pueda generar nada correctamente. Este problema se solucionó en la versión 3.2.5 y se recomienda a todos los usuarios que actualicen. No se conocen workarounds para esta vulnerabilidad.
CVSS Scores
SSVC
- Decision:Track
Timeline
- 2024-04-30 CVE Reserved
- 2024-05-03 CVE Published
- 2024-05-04 EPSS Updated
- 2024-08-02 CVE Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
- ---------- First Exploit
CWE
- CWE-502: Deserialization of Untrusted Data
CAPEC
References (3)
URL | Tag | Source |
---|---|---|
https://github.com/xiboon/kurwov/blob/0d58dfa42135ab40e830e92622857282f980ca89/src/MarkovData.ts#L38-L44 | X_refsource_misc | |
https://github.com/xiboon/kurwov/commit/85d63e652594f121d6656177d7a3c0d823c976c9 | X_refsource_misc | |
https://github.com/xiboon/kurwov/security/advisories/GHSA-hfrv-h3q8-9jpr | X_refsource_confirm |
URL | Date | SRC |
---|
URL | Date | SRC |
---|
URL | Date | SRC |
---|
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Xiboon Search vendor "Xiboon" | Kurwov Search vendor "Xiboon" for product "Kurwov" | >= 3.1.0 < 3.2.5 Search vendor "Xiboon" for product "Kurwov" and version " >= 3.1.0 < 3.2.5" | en |
Affected
|