cve.bz

CVE-2021-41817

7.5 highExploit referenceEPSS 3.5%Fix available

High (7.5). EPSS 3.5% estimated probability of exploitation activity in the next 30 days. Fixed in date 2.0.1, 3.0.2, 3.1.2.

On this page
Date.parse in the date gem through 3.2.0 for Ruby allows ReDoS (regular expression Denial of Service) via a long string. The fixed versions are 3.2.1, 3.1.2, 3.0.2, and 2.0.1.

Severity

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
EPSS
3.5% (unchanged from 3.5% a week ago; 3.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 89th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-1333 Inefficient Regular Expression Complexity
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-41817 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-41817?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-41817?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-41817 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
ruby-lang:datebefore 2.0.1
ruby-lang:datefrom 3.0.0 before 3.0.2
ruby-lang:datefrom 3.1.0 before 3.1.2
ruby-lang:date3.2.0
ruby-lang:rubyfrom 2.6.0 before 2.6.9
ruby-lang:rubyfrom 2.7.0 before 2.7.5
ruby-lang:rubyfrom 3.0.0 before 3.0.3
redhat:enterprise_linux7.0
redhat:enterprise_linux8.0
fedoraproject:fedora34
fedoraproject:fedora35
debian:debian_linux9.0
debian:debian_linux10.0
debian:debian_linux11.0
suse:linux_enterprise12.0
suse:linux_enterprise15.0
opensuse:leap15.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-qg54-694p-wgppRubyGemsdate>=3.2.0 <3.2.13.2.1
GHSA-qg54-694p-wgppRubyGemsdate>=3.1.0 <3.1.23.1.2
GHSA-qg54-694p-wgppRubyGemsdate>=3.0.0 <3.0.23.0.2
GHSA-qg54-694p-wgppRubyGemsdate<2.0.12.0.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9ruby2.32.3.3-1+deb9u11DLA-2853-1
Debian10ruby2.52.5.5-3+deb10u4DSA-5066-1
Debian11ruby2.72.7.4-1+deb11u1DEBIAN-CVE-2021-41817 DSA-5067-1
Ubuntu18.04:LTSruby2.52.5.1-1ubuntu1.11UBUNTU-CVE-2021-41817 USN-5235-1
Ubuntu20.04:LTSruby2.72.7.0-5ubuntu1.6UBUNTU-CVE-2021-41817 USN-5235-1
Ubuntu22.04:LTSruby3.03.0.2-7ubuntu2UBUNTU-CVE-2021-41817
UbuntuPro:16.04:LTSruby2.32.3.1-2~ubuntu16.04.16+esm2UBUNTU-CVE-2021-41817 USN-5235-1
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-irb and 5 more0:2.5.9-110.module+el8.6.0+15956+aa803fc1RHSA-2022:5779
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-libs and 5 more0:2.7.6-138.module+el8.6.0+16148+54b2ba8fRHSA-2022:6447
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-libs and 5 more0:3.0.4-141.module+el8.6.0+16311+3e5e17e9RHSA-2022:6450
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-libs and 4 more0:2.6.9-108.module+el8.5.0+13719+08a8ba32RHSA-2022:0543
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.3.0-4.module+el8.1.0+3653+beb38eb0RHSA-2022:0543
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.3.0-4.module+el8.1.0+3656+f80bfa1dRHSA-2022:5779
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.4.0-1.module+el8.3.0+7192+4e3a532aRHSA-2022:6447
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.4.0-1.module+el8.5.0+11580+845038ebRHSA-2022:6450
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:1.3.4-110.module+el8.6.0+15956+aa803fc1RHSA-2022:5779
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:1.4.1-108.module+el8.5.0+13719+08a8ba32RHSA-2022:0543
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:2.0.0-138.module+el8.6.0+16148+54b2ba8fRHSA-2022:6447
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:3.0.0-141.module+el8.6.0+16311+3e5e17e9RHSA-2022:6450
189 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 19 moreruby2.52.5.9-150000.4.23.1SUSE-SU-2022:1512-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 12 moreruby2.52.5.9-150000.4.29.1SUSE-SU-2023:4176-1
openSUSELeap 15.3, Leap 15.4ruby2.52.5.9-150000.4.23.1SUSE-SU-2022:1512-1
openSUSELeap 15.4, Leap 15.5ruby2.52.5.9-150000.4.29.1SUSE-SU-2023:4176-1
openSUSETumbleweedruby2.72.7.5-1.1openSUSE-SU-2024:11657-1
openSUSETumbleweedruby3.03.0.3-1.1openSUSE-SU-2024:11658-1
openSUSETumbleweedruby3.13.1.0-1.1openSUSE-SU-2024:11786-1
openSUSETumbleweedruby3.23.2.1-1.1openSUSE-SU-2024:12712-1
openSUSETumbleweedruby3.33.3.0-1.2openSUSE-SU-2024:13623-1
openSUSETumbleweedruby3.43.4.1-1.1openSUSE-SU-2025:14621-1
openSUSETumbleweedruby4.04.0.0~preview2-1.1openSUSE-SU-2025:15819-1
AlmaLinux8ruby, ruby-doc, ruby-irb and 2 more2.5.9-110.module_el8.6.0+3074+4b08f9d4ALSA-2022:5779
AlmaLinux8ruby, ruby-doc, ruby-libs and 1 more2.6.9-108.module_el8.5.0+250+ba22dbf7ALSA-2022:0543
AlmaLinux8ruby, ruby-doc, ruby-libs and 1 more2.6.9-108.module_el8.5.0+2623+08a8ba32ALSA-2022:0543
AlmaLinux8ruby, ruby-doc, ruby-libs and 2 more2.7.6-138.module_el8.6.0+3263+904da987ALSA-2022:6447
AlmaLinux8ruby, ruby-doc, ruby-libs and 2 more3.0.4-141.module_el8.6.0+3263+41cde0c0ALSA-2022:6450
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.3.0-4.module_el8.5.0+259+8cec6917ALSA-2022:0543
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.3.0-4.module_el8.5.0+2623+08a8ba32ALSA-2022:0543
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.3.0-4.module_el8.5.0+2625+ec418553ALSA-2022:5779
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.4.0-1.module_el8.5.0+2595+0c654ebcALSA-2022:6447 ALSA-2022:6450
AlmaLinux8rubygem-bigdecimal1.3.4-110.module_el8.6.0+3074+4b08f9d4ALSA-2022:5779
AlmaLinux8rubygem-bigdecimal1.4.1-108.module_el8.5.0+250+ba22dbf7ALSA-2022:0543
AlmaLinux8rubygem-bigdecimal1.4.1-108.module_el8.5.0+2623+08a8ba32ALSA-2022:0543
69 more for AlmaLinux in the JSON.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8ruby:2.6-8050020211215144356.c5368500Fixed 2022-02-16RHSA-2022:0543
Red Hat Enterprise Linux 8ruby:2.5-8060020220715152618.ad008a3aFixed 2022-08-01RHSA-2022:5779
Red Hat Enterprise Linux 8ruby:2.7-8060020220728151401.ad008a3aFixed 2022-09-13RHSA-2022:6447
Red Hat Enterprise Linux 8ruby:3.0-8060020220810162001.ad008a3aFixed 2022-09-13RHSA-2022:6450
Red Hat Enterprise Linux 8.1 Update Services for SAP Solutionsruby:2.6-8010020220201152941.c27ad7f8Fixed 2022-02-21RHSA-2022:0581
Red Hat Enterprise Linux 8.2 Extended Update Supportruby:2.6-8020020220201131207.4cda2c84Fixed 2022-02-21RHSA-2022:0582
Red Hat Enterprise Linux 8.4 Extended Update Supportruby:2.6-8040020220131135901.522a0ee4Fixed 2022-02-16RHSA-2022:0544
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-ruby26-ruby-0:2.6.9-120.el7Fixed 2022-02-28RHSA-2022:0708
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-ruby30-ruby-0:3.0.4-149.el7Fixed 2022-10-11RHSA-2022:6855
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-ruby27-ruby-0:2.7.6-131.el7Fixed 2022-10-11RHSA-2022:6856
Red Hat Enterprise Linux 6rubyOut of support scope
Red Hat Enterprise Linux 7rubyWill not fix
Red Hat Enterprise Linux 9rubyNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-41817.

Attack patterns (CAPEC)

  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON