CVE-2022-25872 Out-of-bounds Read
An attacker can read previously allocated memory by providing non-string input to the fast-string-search library, potentially exposing sensitive data.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2022-25872?
CVE-2022-25872 is a medium-severity vulnerability in fast-string-search, published on 17 Jun 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-125
Which versions are affected by CVE-2022-25872?
2 open source packages ship an affected version, including fast-string-search. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
fast-string-search npm | All versions to 1.4.3 | None |
fast-string-search npm | All versions to 1.4.3 | None |
Products include Fast String Search Project Fast String Search.
How do I fix CVE-2022-25872?
No fix has been published for CVE-2022-25872 yet. Limit exposure of the affected software until one is available.
Is CVE-2022-25872 being exploited?
There is no known exploitation of CVE-2022-25872 in the wild and no public exploit code.
Other vulnerabilities in fast-string-search
Sources
Also known as GHSA-hmqg-p8f8-3qrw.