# CVE-2021-4250: cgriego active_attr Regex boolean_typecaster.rb call denial of service

- Severity: Low 3.5 (CVSS:3.1, scored by VulDB) `CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.20%, higher than 69% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-12-18T00:00:00.000Z
- Modified: 2026-06-17T04:19:21.180Z
- Also known as: GHSA-4whf-rmx5-8frv
- Weaknesses: CWE-404
- Assigned by: VulDB

## 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.

(As written by CVE List.)

## Affected

- cgriego active_attr: 0.15.0; 0.15.1; 0.15.2
- active_attr (RubyGems): before 0.15.4
- active_attr_project active_attr: before 0.15.3

## Every score

- VulDB: CVSS:3.1 3.5 Low `CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- VulDB: CVSS:3.0 3.5 Low `CVSS:3.0/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/cgriego/active_attr/issues/184> (exploit, issue-tracking, patch, third-party-advisory, web)
- <https://vuldb.com/?id.216207> (technical-description, third-party-advisory, vdb-entry, web)
- <https://github.com/cgriego/active_attr/pull/185> (patch, related, third-party-advisory, web)
- <https://github.com/cgriego/active_attr/commit/dab95e5843b01525444b82bd7b336ef1d79377df> (mitigation, patch, third-party-advisory, web)
- <https://github.com/cgriego/active_attr/releases/tag/v0.15.3> (mitigation, release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-4250> (advisory)
- <https://github.com/cgriego/active_attr> (package)
- <https://github.com/cgriego/active_attr/releases/tag/v0.15.4> (web)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/active_attr/CVE-2021-4250.yml> (web)

## Sources

- CVE List: [CVE-2021-4250](https://www.cve.org/CVERecord?id=CVE-2021-4250), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-4whf-rmx5-8frv](https://github.com/advisories/GHSA-4whf-rmx5-8frv), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-4250](https://nvd.nist.gov/vuln/detail/CVE-2021-4250), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-4250 · Whole record: https://cve.day/CVE-2021-4250.json · Rebuilt by cve.day 2026-11-25T22:58:07.950Z
