Live threats

All CVEs / Ruby-lang

CVE-2021-41817Ruby-lang Date

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
3.5%
probability of exploitation in 30 days · percentile 90
Auth required
No
Published
Jan 1, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1333
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Date.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
RubyGems date ≥ 3.2.0 < 3.2.1 3.2.1 gem "date", ">= 3.2.1"
RubyGems date ≥ 3.1.0 < 3.1.2 3.1.2 gem "date", ">= 3.1.2"
RubyGems date ≥ 3.0.0 < 3.0.2 3.0.2 gem "date", ">= 3.0.2"
RubyGems date < 2.0.1 2.0.1 gem "date", ">= 2.0.1"

Per OSV / GitHub Advisories (GHSA-qg54-694p-wgpp). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
ruby-langdate< 2.0.1
ruby-langdate≥ 3.0.0 < 3.0.2
ruby-langdate≥ 3.1.0 < 3.1.2
ruby-langdate3.2.0
ruby-langruby≥ 2.6.0 < 2.6.9
ruby-langruby≥ 2.7.0 < 2.7.5
ruby-langruby≥ 3.0.0 < 3.0.3
redhatsoftware_collectionsall
redhatenterprise_linux7.0
redhatenterprise_linux8.0
fedoraprojectfedora34
fedoraprojectfedora35
debiandebian_linux9.0
debiandebian_linux10.0
debiandebian_linux11.0
suselinux_enterprise12.0
suselinux_enterprise15.0
opensusefactoryall
opensuseleap15.2

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.