# CVE-2022-25872: Out-of-bounds Read

- Severity: Medium 5.3 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.14%, higher than 67% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-06-17T20:05:23.831Z
- Modified: 2026-06-17T04:34:25.413Z
- Also known as: GHSA-hmqg-p8f8-3qrw
- Weaknesses: CWE-125
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- fast-string-search: before unspecified
- fast-string-search (npm): up to 1.4.3
- fast_string_search_project fast_string_search: no versions given

## Every score

- snyk: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://snyk.io/vuln/SNYK-JS-FASTSTRINGSEARCH-2392368> (exploit, third-party-advisory, web)
- <https://github.com/magiclen/node-fast-string-search/blob/c8dd9fc966abc80b327f509e63360f59e0de9fb5/src/fast-string-search.c%23L192> (broken-link, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-25872> (advisory)
- <https://github.com/magiclen/node-fast-string-search> (package)

## Sources

- CVE List: [CVE-2022-25872](https://www.cve.org/CVERecord?id=CVE-2022-25872), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-hmqg-p8f8-3qrw](https://github.com/advisories/GHSA-hmqg-p8f8-3qrw), CC-BY-4.0, modified 2026-03-16
- NVD: [CVE-2022-25872](https://nvd.nist.gov/vuln/detail/CVE-2022-25872), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-25872 · Whole record: https://cve.day/CVE-2022-25872.json · Rebuilt by cve.day 2026-11-25T22:58:12.449Z
