cgriego active_attr Regex boolean_typecaster.rb call denial of service
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.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
active_attrRubyGems | < 0.15.4 | 0.15.4 |
Affected products
1- Range: 0.15.0
Patches
1dab95e5843b0fix ReDoS vulnerability (#185)
1 file changed · +1 −1
lib/active_attr/typecasting/boolean_typecaster.rb+1 −1 modified@@ -42,7 +42,7 @@ def call(value) case value when *FALSE_VALUES then false when *NIL_VALUES then nil - when Numeric, /\A[-+]?(0+\.?0*|0*\.?0+)\z/ then !value.to_f.zero? + when Numeric, /\A[-+]?(0++\.?0*|0*+\.?0+)\z/ then !value.to_f.zero? else value.present? end end
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
9- github.com/cgriego/active_attr/commit/dab95e5843b01525444b82bd7b336ef1d79377dfghsamitigationpatchWEB
- github.com/cgriego/active_attr/issues/184ghsaexploitissue-trackingWEB
- github.com/advisories/GHSA-4whf-rmx5-8frvghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-4250ghsaADVISORY
- github.com/cgriego/active_attr/pull/185ghsarelatedWEB
- github.com/cgriego/active_attr/releases/tag/v0.15.3ghsamitigationWEB
- github.com/cgriego/active_attr/releases/tag/v0.15.4ghsaWEB
- github.com/rubysec/ruby-advisory-db/blob/master/gems/active_attr/CVE-2021-4250.ymlghsaWEB
- vuldb.comghsatechnical-descriptionvdb-entryWEB
News mentions
0No linked articles in our index yet.