CVE-2023-28756: A ReDoS issue was discovered in the Time component through 0.2.1 in Ruby through 3.2.1.
Medium CVSS 5.3
- CVE id
- CVE-2023-28756
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Ruby Runtimes and servers |
<= 2.7.7 | after 2.7.7 |
How to fix it
Upgrade Ruby to a release newer than 2.7.7.
ruby --version
- Install the patched Ruby release of your minor line (rbenv, the ruby image tag) and update .ruby-version.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.
References
- CVE-2023-28756 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2023-28756
- Web: https://github.com/ruby/time/releases/
- Web: https://lists.debian.org/debian-lts-announce/2023/04/msg00033.html
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FFZANOQA4RYX7XCB42OO3P24DQKWHEKA/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G76GZG3RAGYF4P75YY7J7TGYAU7Z5E2T/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WMIOPLBAAM3FEQNAXA2L7BDKOGSVUT5Z/
- Web: https://security.gentoo.org/glsa/202401-27
- Web: https://security.netapp.com/advisory/ntap-20230526-0004/
- Web: https://www.ruby-lang.org/en/downloads/releases/
- Web: https://www.ruby-lang.org/en/news/2022/12/25/ruby-3-2-0-released/
- Web: https://www.ruby-lang.org/en/news/2023/03/30/redos-in-time-cve-2023-28756/
- Web: https://github.com/ruby/time/releases/
- Web: https://lists.debian.org/debian-lts-announce/2023/04/msg00033.html
- Web: https://lists.debian.org/debian-lts-announce/2024/09/msg00000.html
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FFZANOQA4RYX7XCB42OO3P24DQKWHEKA/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G76GZG3RAGYF4P75YY7J7TGYAU7Z5E2T/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WMIOPLBAAM3FEQNAXA2L7BDKOGSVUT5Z/
- Web: https://security.gentoo.org/glsa/202401-27
- Web: https://security.netapp.com/advisory/ntap-20230526-0004/
- Web: https://www.ruby-lang.org/en/downloads/releases/
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.