CVE-2022-25872 Out-of-bounds Read

Medium 5.3 Published Updated

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.

PackageAffectedFixed in
fast-string-search npmAll versions to 1.4.3None
fast-string-search npmAll versions to 1.4.3None

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.

Sources

Also known as GHSA-hmqg-p8f8-3qrw.

Is CVE-2022-25872 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free