CVE-2021-4250 json
cgriego active_attr Regex boolean_typecaster.rb call denial of service
published 2022-12-18 3 y ago modified 2026-06-17 4 mo ago also GHSA-4whf-rmx5-8frv , EUVD-2022-7508
- cvss
- 3.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.2%
- EPSS 1.2% chance of exploitation in 30 days, percentile 67%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- rubygems active_attr 0.15.4
- active_attr_project active_attr 0.15.3
Exploit prediction
1.18% chance of exploitation in the next 30 days, higher than 67% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/cgriego/active_attr/issues/184 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 3.5 | CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L |
| CNA | 3.0 | 3.5 | CVSS:3.0/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | active_attr | <0.15.4 |
0.15.4 |
Affected products
- cgriego active_attr
Classification
- Weakness
-
- CWE-404 Improper Resource Shutdown or Release
References
-
github.com
/cgriego/active_attr/pull/185
related, web, patch, third-party-advisory
-
github.com
/cgriego/active_attr/commit/dab95e5843b01525444b82bd7b336ef1d79377df
mitigation, patch, web, third-party-advisory
-
github.com
/cgriego/active_attr/issues/184
exploit, issue-tracking, web, patch, third-party-advisory
-
vuldb.com
/?id.216207
technical-description, vdb-entry, web, third-party-advisory
-
github.com
/cgriego/active_attr/releases/tag/v0.15.3
mitigation, web, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-4250
advisory
-
github.com
/cgriego/active_attr
package
-
github.com
/cgriego/active_attr/releases/tag/v0.15.4
web
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/active_attr/CVE-2021-4250.yml
web
Sources
- CVE List CVE-2021-4250
- GitHub Advisory GHSA-4whf-rmx5-8frv
- NVD CVE-2021-4250
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.