CVE-2022-25872
MEDIUM 5.3CVSS 3.1Out-of-bounds Read in fast-string-search
All versions of package fast-string-search are vulnerable to Out-of-bounds Read due to incorrect memory freeing and length calculation for any non-string input as the source. This allows the attacker to read previously allocated memory.
- Published
- 17 Jun 2022
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-125
- Also known as
- GHSA-hmqg-p8f8-3qrw
- Sources
- NVDJSONOSV GHSA-hmqg-p8f8-3qrwJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | fast_string_search_project | fast_string_searchcpe:2.3:a:fast_string_search_project:fast_string_search:*:*:*:*:*:node.js:*:* |
all versions | |
| OSV | npm | fast-string-search | <= 1.4.3 |
References
- https://github.com/magiclen/node-fast-string-search/blob/c8dd9fc966abc80b327f509e63360f59e0de9fb5/src/fast-string-search.c%23L192 · Broken Link, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-FASTSTRINGSEARCH-2392368 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-25872 · ADVISORY
- https://github.com/magiclen/node-fast-string-search · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 17 Jun 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 18 Jun 2022)