CVE-2021-4250 cgriego active_attr Regex boolean_typecaster.rb call denial of service
Attackers can cause denial of service in the active_attr Ruby gem via a regex vulnerability in the boolean typecaster.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-4250?
CVE-2021-4250 is a low-severity denial of service vulnerability in cgriego active_attr, published on 18 Dec 2022. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
A vulnerability classified as problematic has been found in cgriego active_attr up to 0.15.2. This affects the function call of the file lib/active_attr/typecasting/boolean_typecaster.rb of the component Regex Handler. The manipulation of the argument value leads to denial of service. The exploit has been disclosed to the public and may be used. Upgrading to version 0.15.3 is able to address this issue. The name of the patch is dab95e5843b01525444b82bd7b336ef1d79377df. It is recommended to upgrade the affected component. The associated identifier of this vulnerability is VDB-216207.
Weakness: CWE-404
Which versions are affected by CVE-2021-4250?
2 open source packages ship an affected version, including active_attr. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
active_attr RubyGems | All versions | 0.15.4 |
active_attr RubyGems | All versions | 0.15.4 |
Products include Active Attr Project Active Attr.
How do I fix CVE-2021-4250?
Upgrade active_attr to 0.15.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-2021-4250 being exploited?
There is no known exploitation of CVE-2021-4250 in the wild and no public exploit code.
Sources
Also known as GHSA-4whf-rmx5-8frv.