CVE-2021-4250: active_attr Improper Resource Shutdown or Release vulnerability
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.17095%
CWE
Published
12/19/2022
Updated
1/27/2023
KEV Status
No
Technology
Ruby
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| active_attr | rubygems | < 0.15.4 | 0.15.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the regex pattern in the BooleanTypecaster's call method. The commit diff shows the fix replaces '+' quantifiers with possessive '++' in the regex to prevent backtracking. The issue #184 explicitly identifies this regex as the ReDoS vector, and the CWE-404 classification aligns with resource exhaustion via unoptimized regex processing. The function's role in processing user-controllable 'value' arguments makes it the clear entry point for exploitation.