Skip to main content
No exploitation reportedFix available

CVE-2021-41817

No exploitation reported by the sources we read.

  • Published2022-01-01
  • Fixed in3.2.1 · 3.1.2 · 3.0.2 · 2.0.1
  • WeaknessCWE-1333

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2022-01-0105:15CVE publishedNVD

Versions per branch

OSV · NVD
Ruby-lang date
BranchAffectedFixed in
3.2≥ 3.2.0, < 3.2.13.2.1
3.1≥ 3.1.0, < 3.1.23.1.2
3.0≥ 3.0.0, < 3.0.23.0.2
2.0< 2.0.12.0.1
3.2= 3.2.0no fix published
Debian debian linux
BranchAffectedFixed in
9.0= 9.0no fix published
10.0= 10.0no fix published
11.0= 11.0no fix published
Ruby
BranchAffectedFixed in
3.0≥ 3.0.0, < 3.0.33.0.3
2.7≥ 2.7.0, < 2.7.52.7.5
2.6≥ 2.6.0, < 2.6.92.6.9

6 more products in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • rh-ruby26-rubyRed Hat:rhel_software_collections:3::el7all versions · fixed in 0:2.6.9-120.el7and 4 other packages
  • rh-ruby26-rubygem-bigdecimalRed Hat:rhel_software_collections:3::el7all versions · fixed in 0:1.4.1-120.el7
  • rh-ruby26-rubygem-bundlerRed Hat:rhel_software_collections:3::el7all versions · fixed in 0:1.17.2-120.el7
  • rh-ruby26-rubygem-did_you_meanRed Hat:rhel_software_collections:3::el7all versions · fixed in 0:1.3.0-120.el7
  • rh-ruby26-rubygem-io-consoleRed Hat:rhel_software_collections:3::el7all versions · fixed in 0:0.4.7-120.el7
  • rh-ruby26-rubygem-irbRed Hat:rhel_software_collections:3::el7all versions · fixed in 0:1.0.0-120.el7
  • rh-ruby26-rubygem-jsonRed Hat:rhel_software_collections:3::el7all versions · fixed in 0:2.1.0-120.el7
  • rh-ruby26-rubygem-minitestRed Hat:rhel_software_collections:3::el7all versions · fixed in 0:5.11.3-120.el7

425 more package ranges on OSV.dev

Vendor advisories

  • CVE-2021-41817 Red Hat Product Security1,115 products fixed · 26 known affected

    ruby: Regular expression denial of service vulnerability of Date parsing methods

    ruby as a component of Red Hat Enterprise Linux 6 · ruby-devel as a component of Red Hat Enterprise Linux 6 · ruby-docs as a component of Red Hat Enterprise Linux 6 · +23 more

  • RHSA-2022:6856 Red Hat Product Security68 products fixed

    Red Hat Security Advisory: rh-ruby27-ruby security, bug fix, and enhancement update

  • RHSA-2022:6855 Red Hat Product Security62 products fixed

    Red Hat Security Advisory: rh-ruby30-ruby security, bug fix, and enhancement update

  • RHSA-2022:6450 Red Hat Product Security117 products fixed

    Red Hat Security Advisory: ruby:3.0 security, bug fix, and enhancement update

  • RHSA-2022:6447 Red Hat Product Security142 products fixed

    Red Hat Security Advisory: ruby:2.7 security, bug fix, and enhancement update

  • RHSA-2022:5779 Red Hat Product Security144 products fixed

    Red Hat Security Advisory: ruby:2.5 security update

5 more advisories

Full record on NVD

Fix

  1. Update Ruby-lang date to 3.2.1 · 3.1.2 · 3.0.2 · 2.0.1
  2. Vendor fix Red Hat Product Security RHSA-2022:6856 · 68 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
2022-01-01
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-qg54-694p-wgpp

Frequently asked questions

What is CVE-2021-41817?

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.

Is CVE-2021-41817 actively exploited?

Active exploitation of CVE-2021-41817 has not been confirmed. Its EPSS score was 3.5% on 2026-11-09, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2021-41817?

CVE-2021-41817 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Running date? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record