CVE-2023-28756
Ruby Time component ReDoS issue
Reported by mitre · Published March 31, 2023
time is fixed in 0.2.2 and 0.1.1 (RubyGems)
A ReDoS issue was discovered in the Time component through 0.2.1 in Ruby through 3.2.1. The Time parser mishandles invalid URLs that have specific characters. It causes an increase in execution time for parsing strings to Time objects. The fixed versions are 0.1.1 and 0.2.2.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| time | RubyGems | 0.2.2, 0.1.1 |
| rubygem-bson-doc | errata.rockylinux.org | 0:4.3.0-2.module+el8.9.0+1536+5f79634e.noarch |
| ruby-devel | errata.rockylinux.org | 0:2.5.9-111.module+el8.9.0+1536+5f79634e.aarch64 |
| rubygem-minitest | Amazon Linux | 4.3.2-36.amzn2.0.4 |
| rubygem-mongo | errata.rockylinux.org | 0:2.5.1-2.module+el8.9.0+1536+5f79634e.src, 0:2.5.1-2.module+el8.9.0+1536+5f79634e.noarch |
| rubygem-bigdecimal | errata.rockylinux.org | 0:1.3.4-111.module+el8.9.0+1536+5f79634e.aarch64 |
| rubygem-openssl-debuginfo | errata.rockylinux.org | 0:2.1.2-111.module+el8.9.0+1536+5f79634e.x86_64, 0:2.1.2-111.module+el8.9.0+1536+5f79634e.i686 |
| rubygem-json-debuginfo | errata.rockylinux.org | 0:2.1.0-111.module+el8.9.0+1536+5f79634e.aarch64 |
| rubygem-minitest | errata.rockylinux.org | 0:5.10.3-111.module+el8.9.0+1536+5f79634e.noarch |
| ruby3.2-rubygem-rss | Amazon Linux | 0.2.9-180.amzn2023.0.1 |
| ruby3.2-libs | Amazon Linux | 3.2.2-180.amzn2023.0.1 |
| rubygem-json | Amazon Linux | 1.7.7-36.amzn2.0.4 |
52 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| amazon:2 | rubygem-minitest | 0 |
| amazon:2023 | ruby3.2-rubygem-rss | 0 |
| amazon:2023 | ruby3.2-libs | 0 |
| amazon:2 | rubygem-json | 0 |
| amazon:2023 | ruby3.2-rubygem-psych | 0 |
| wolfi | ruby-3.2 | 0 |
| amazon:2023 | ruby3.2 | 0 |
| amazon:2023 | ruby3.2-rubygem-power_assert | 0 |
| amazon:2 | rubygem-io-console | 0 |
| amazon:2023 | ruby3.2-default-gems | 0 |
| amazon:2 | ruby-irb | 0 |
| amazon:2023 | ruby3.2-bundled-gems | 0 |
| RubyGems | time | 0.2.0, 0 |
| amazon:2 | rubygems-devel | 0 |
| amazon:2 | ruby-tcltk | 0 |
| amazon:2023 | ruby3.2-rubygem-io-console | 0 |
| amazon:2 | rubygem-bigdecimal | 0 |
| amazon:2023 | ruby3.2-rubygem-test-unit | 0 |
| amazon:2023 | ruby3.2-rubygem-typeprof | 0 |
…and 28 more
Timeline
- Mar 31, 2023 CVE Published
- Mar 31, 2023 EPSS Score (30 in total, the first dated here)
- Apr 26, 2023 PoC Published (2 in total, the first dated here)
- Mar 17, 2026 Security Advisory (21 in total, the first dated here)
- Apr 15, 2026 Distribution Patch (18 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-28756
vulnetix vdb fixes CVE-2023-28756
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-28756/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2023-6b924d3b75 vendor-advisory
- FEDORA-2023-a7be7ea1aa vendor-advisory
- FEDORA-2023-f58d72c700 vendor-advisory
- [debian-lts-announce] 20230430 [SECURITY] [DLA 3408-1] jruby security update mailing-list
- GLSA-202401-27 vendor-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2023-28756 advisory
- https://github.com/advisories/GHSA-fg7x-g82r-94qc advisory
- https://www.ruby-lang.org/en/news/2023/03/30/redos-in-time-cve-2023-28756 url
- https://www.ruby-lang.org/en/news/2022/12/25/ruby-3-2-0-released url
- https://www.ruby-lang.org/en/downloads/releases url
- https://security.netapp.com/advisory/ntap-20230526-0004 advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WMIOPLBAAM3FEQNAXA2L7BDKOGSVUT5Z url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/G76GZG3RAGYF4P75YY7J7TGYAU7Z5E2T url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FFZANOQA4RYX7XCB42OO3P24DQKWHEKA url
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WMIOPLBAAM3FEQNAXA2L7BDKOGSVUT5Z url
…and 6 more