GitHub Advisoryadvisory · npm
GHSA-hmqg-p8f8-3qrw Out-of-bounds Read in fast-string-search
MEDIUM
Official page ↗
- Aliases
- CVE-2022-25872
- Ecosystem
- npm
- Packages
- fast-string-search
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- Weaknesses
- CWE-125
- Reviewed
- 2022-06-20
Affected packages
• npm fast-string-search: <= 1.4.3 (no fix yet)
Description
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.
Related
Alias · CVE (1)
- CVE-2022-25872 All versions of package fast-string-search are vulnerable to Out-of-bounds Read due to incorrect memory freeing and length calculation for… vulnerability
Weakness · CWE (1)
- CWE-125 Out-of-bounds Read weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-25872 advisory
- https://github.com/magiclen/node-fast-string-search package
- https://github.com/magiclen/node-fast-string-search/blob/c8dd9fc966abc80b327f509e63360f59e0de9fb5/src/fast-string-search.c%23L192 web
- https://snyk.io/vuln/SNYK-JS-FASTSTRINGSEARCH-2392368 web