CVE-2023-23925 Switcher Client contains Regular Expression Denial of Service (ReDoS)
An attacker can cause a denial of service in the Switcher Client SDK by exploiting a Regular Expression Denial of Service vulnerability in strategy matching.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-23925?
CVE-2023-23925 is a high-severity denial of service vulnerability in switcherapi switcher-client-master, published on 3 Feb 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Switcher Client is a JavaScript SDK to work with Switcher API which is cloud-based Feature Flag. Unsanitized input flows into Strategy match operation (EXIST), where it is used to build a regular expression. This may result in a Regular expression Denial of Service attack (reDOS). This issue has been patched in version 3.1.4. As a workaround, avoid using Strategy settings that use REGEX in conjunction with EXIST and NOT_EXIST operations.
Which versions are affected by CVE-2023-23925?
2 open source packages ship an affected version, including switcher-client. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
switcher-client npm | All versions | 3.1.4 |
switcher-client npm | All versions | 3.1.4 |
Products include Switcherapi Switcher Client.
How do I fix CVE-2023-23925?
Upgrade switcher-client to 3.1.4 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2023-23925 being exploited?
There is no known exploitation of CVE-2023-23925 in the wild and no public exploit code.
Sources
Also known as GHSA-wqxw-8h5g-hq56.