CVE-2022-28739: There is a buffer over-read in Ruby before 2.6.10, 2.7.x before 2.7.6, 3.x before 3.0.4, and 3.1.x before 3.1.2.
Noroxi assessment
Priority: Monitor (action score 31/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 4.3% (FIRST EPSS); higher than 91.3% of all records.
- Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: ruby (AlmaLinux:8) 2.7.6-138.module_el8.6.0+3263+904da987, 3.0.4-141.module_el8.6.0+3263+41cde0c0, 2.5.9-111.module_el8.9.0+3635+c6f99506; ruby-default-gems (AlmaLinux:8) 2.7.6-138.module_el8.6.0+3263+904da987, 3.0.4-141.module_el8.6.0+3263+41cde0c0; ruby-devel (AlmaLinux:8) 2.7.6-138.module_el8.6.0+3263+904da987, 2.5.9-111.module_el8.9.0+3635+c6f99506, 3.0.4-141.module_el8.6.0+3263+41cde0c0.
Low priority for now. Upgrade to ruby (AlmaLinux:8) 2.7.6-138.module_el8.6.0+3263+904da987, 3.0.4-141.module_el8.6.0+3263+41cde0c0, 2.5.9-111.module_el8.9.0+3635+c6f99506; ruby-default-gems (AlmaLinux:8) 2.7.6-138.module_el8.6.0+3263+904da987, 3.0.4-141.module_el8.6.0+3263+41cde0c0; ruby-devel (AlmaLinux:8) 2.7.6-138.module_el8.6.0+3263+904da987, 2.5.9-111.module_el8.9.0+3635+c6f99506, 3.0.4-141.module_el8.6.0+3263+41cde0c0 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
There is a buffer over-read in Ruby before 2.6.10, 2.7.x before 2.7.6, 3.x before 3.0.4, and 3.1.x before 3.1.2. It occurs in String-to-Float conversion, including Kernel#Float and String#to_f.
- BDU:2022-03067
- ALSA-2022:6447
- ALSA-2022:6450
- ALSA-2022:6585
- ALSA-2023:7025
- DLA-3450-1
- DLA-3858-1
- openSUSE-SU-2024:12006-1
- openSUSE-SU-2024:12712-1
- openSUSE-SU-2024:13623-1
- openSUSE-SU-2025:14621-1
- openSUSE-SU-2025:15819-1
- RHSA-2022:5338
- RHSA-2022:6447
- RHSA-2022:6450
- RHSA-2022:6585
- RHSA-2022:6855
- RHSA-2022:6856
- RHSA-2023:7025
- RLSA-2022:5338
- Published
- May 9, 2022
- Updated
- Jun 17, 2026
- EPSS
- 4.3% · 91th percentile
- CWE
- CWE-125
Report tools
Action score
31
Monitor
Low priority for now.
- CVSS
- 30 / 40 · 7.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 4.3%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Running WordPress? Scan your site free with WP Lens
Noroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| ruby-lang | ruby | cpe:2.3:a:ruby-lang:ruby |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
| apple | macos | cpe:2.3:o:apple:macos |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- apple macos12.0 and later · before 12.6.1
- apple macos11.0 and later · before 11.7.1
- debian debian linux10.0
- debian debian linux11.0
- debian debian linux9.0
- ruby-lang rubybefore 2.6.10
- ruby-lang ruby3.1.0 and later · before 3.1.2
- ruby-lang ruby3.0.0 and later · before 3.0.4
- ruby-lang ruby2.7.0 and later · before 2.7.6
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:8 | ruby | before 2.7.6-138.module_el8.6.0+3263+904da987 | 2.7.6-138.module_el8.6.0+3263+904da987 |
| AlmaLinux:8 | ruby | before 3.0.4-141.module_el8.6.0+3263+41cde0c0 | 3.0.4-141.module_el8.6.0+3263+41cde0c0 |
| AlmaLinux:8 | ruby | before 2.5.9-111.module_el8.9.0+3635+c6f99506 | 2.5.9-111.module_el8.9.0+3635+c6f99506 |
| AlmaLinux:8 | ruby-default-gems | before 2.7.6-138.module_el8.6.0+3263+904da987 | 2.7.6-138.module_el8.6.0+3263+904da987 |
| AlmaLinux:8 | ruby-default-gems | before 3.0.4-141.module_el8.6.0+3263+41cde0c0 | 3.0.4-141.module_el8.6.0+3263+41cde0c0 |
| AlmaLinux:8 | ruby-devel | before 2.7.6-138.module_el8.6.0+3263+904da987 | 2.7.6-138.module_el8.6.0+3263+904da987 |
| AlmaLinux:8 | ruby-devel | before 2.5.9-111.module_el8.9.0+3635+c6f99506 | 2.5.9-111.module_el8.9.0+3635+c6f99506 |
| AlmaLinux:8 | ruby-devel | before 3.0.4-141.module_el8.6.0+3263+41cde0c0 | 3.0.4-141.module_el8.6.0+3263+41cde0c0 |
| AlmaLinux:8 | ruby-doc | before 2.7.6-138.module_el8.6.0+3263+904da987 | 2.7.6-138.module_el8.6.0+3263+904da987 |
| AlmaLinux:8 | ruby-doc | before 2.5.9-111.module_el8.9.0+3635+c6f99506 | 2.5.9-111.module_el8.9.0+3635+c6f99506 |
| AlmaLinux:8 | ruby-doc | before 3.0.4-141.module_el8.6.0+3263+41cde0c0 | 3.0.4-141.module_el8.6.0+3263+41cde0c0 |
| AlmaLinux:8 | ruby-irb | before 2.5.9-111.module_el8.9.0+3635+c6f99506 | 2.5.9-111.module_el8.9.0+3635+c6f99506 |
| AlmaLinux:8 | ruby-libs | before 2.5.9-111.module_el8.9.0+3635+c6f99506 | 2.5.9-111.module_el8.9.0+3635+c6f99506 |
| AlmaLinux:8 | ruby-libs | before 3.0.4-141.module_el8.6.0+3263+41cde0c0 | 3.0.4-141.module_el8.6.0+3263+41cde0c0 |
| AlmaLinux:8 | ruby-libs | before 2.7.6-138.module_el8.6.0+3263+904da987 | 2.7.6-138.module_el8.6.0+3263+904da987 |
| AlmaLinux:8 | rubygem-abrt | before 0.4.0-1.module_el8.5.0+2595+0c654ebc | 0.4.0-1.module_el8.5.0+2595+0c654ebc |
| AlmaLinux:8 | rubygem-abrt | before 0.3.0-4.module_el8.5.0+2625+ec418553 | 0.3.0-4.module_el8.5.0+2625+ec418553 |
| AlmaLinux:8 | rubygem-abrt-doc | before 0.3.0-4.module_el8.5.0+2625+ec418553 | 0.3.0-4.module_el8.5.0+2625+ec418553 |
| AlmaLinux:8 | rubygem-abrt-doc | before 0.4.0-1.module_el8.5.0+2595+0c654ebc | 0.4.0-1.module_el8.5.0+2595+0c654ebc |
| AlmaLinux:8 | rubygem-bigdecimal | before 2.0.0-138.module_el8.6.0+3263+904da987 | 2.0.0-138.module_el8.6.0+3263+904da987 |
| AlmaLinux:8 | rubygem-bigdecimal | before 1.3.4-111.module_el8.9.0+3635+c6f99506 | 1.3.4-111.module_el8.9.0+3635+c6f99506 |
| AlmaLinux:8 | rubygem-bigdecimal | before 3.0.0-141.module_el8.6.0+3263+41cde0c0 | 3.0.0-141.module_el8.6.0+3263+41cde0c0 |
| AlmaLinux:8 | rubygem-bson | before 4.3.0-2.module_el8.5.0+2625+ec418553 | 4.3.0-2.module_el8.5.0+2625+ec418553 |
| AlmaLinux:8 | rubygem-bson | before 4.8.1-1.module_el8.5.0+117+35d1289b | 4.8.1-1.module_el8.5.0+117+35d1289b |
+96
Same product
ruby-lang: all recordsOther highest-scoring records for the same primary product.
- CVE-2017-17405Ruby before 2.4.3 allows Net::FTP command injection.57Plan
- CVE-2008-3656Algorithmic complexity vulnerability in the WEBrick::HTTPUtils.split_header_value function in WEBrick::HTTP::DefaultFileHandler in WEBrick i52Plan
- CVE-2021-28966In Ruby through 3.0 on Windows, a remote attacker can submit a crafted path when a Web application handles a parameter with TmpDir.47Plan
Published before and after this one in the same product
- ← EarlierCVE-2021-32066Aug 1, 2021 · An issue was discovered in Ruby through 2.6.7, 2.7.x through 2.7.3, and 3.x through 3.0.1.30Monitor
- ← EarlierCVE-2022-28738May 9, 2022 · A double free was found in the Regexp compiler in Ruby 3.x before 3.0.4 and 3.1.x before 3.1.2.40Plan
- Later →CVE-2016-2338Sep 28, 2022 · An exploitable heap overflow vulnerability exists in the Psych::Emitter start_document function of Ruby.40Plan
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| almalinux:ruby | 2.7.6-138.module_el8.6.0+3263+904da987 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:ruby-default-gems | 2.7.6-138.module_el8.6.0+3263+904da987 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:ruby-devel | 2.7.6-138.module_el8.6.0+3263+904da987 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:ruby-doc | 2.7.6-138.module_el8.6.0+3263+904da987 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:ruby-libs | 2.7.6-138.module_el8.6.0+3263+904da987 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:rubygem-abrt | 0.4.0-1.module_el8.5.0+2595+0c654ebc · AlmaLinux:8 | Package registry (OSV) |
| almalinux:rubygem-abrt-doc | 0.4.0-1.module_el8.5.0+2595+0c654ebc · AlmaLinux:8 | Package registry (OSV) |
| almalinux:rubygem-bigdecimal | 2.0.0-138.module_el8.6.0+3263+904da987 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:rubygem-bson | 4.8.1-1.module_el8.5.0+117+35d1289b · AlmaLinux:8 | Package registry (OSV) |
| almalinux:rubygem-bson-doc | 4.8.1-1.module_el8.3.0+6147+d0dfc1e4 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:rubygem-bundler | 2.2.24-138.module_el8.6.0+3263+904da987 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:rubygem-io-console | 0.5.6-138.module_el8.6.0+3263+904da987 · AlmaLinux:8 | Package registry (OSV) |
| alpine:ruby | 2.7.6-r0 · Alpine:v3.12 | Package registry (OSV) |
| debian:ruby2.5 | 2.5.5-3+deb10u6 · Debian:10 | Package registry (OSV) |
| debian:ruby2.7 | 2.7.4-1+deb11u2 · Debian:11 | Package registry (OSV) |
| opensuse:ruby2.5 | 2.5.9-150000.4.23.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:ruby3.1 | 3.1.2-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:ruby3.2 | 3.2.1-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:ruby3.3 | 3.3.0-1.2 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:ruby3.4 | 3.4.1-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:ruby4.0 | 4.0.0~preview2-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| red hat:ruby | 0:2.6.10-109.module+el8.6.0+15475+c55337b4 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:ruby-debuginfo | 0:2.6.10-109.module+el8.6.0+15475+c55337b4 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:ruby-debugsource | 0:2.6.10-109.module+el8.6.0+15475+c55337b4 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:ruby-devel | 0:2.6.10-109.module+el8.6.0+15475+c55337b4 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:ruby-doc | 0:2.6.10-109.module+el8.6.0+15475+c55337b4 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:ruby-libs | 0:2.6.10-109.module+el8.6.0+15475+c55337b4 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:ruby-libs-debuginfo | 0:2.6.10-109.module+el8.6.0+15475+c55337b4 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:rubygem-abrt | 0:0.3.0-4.module+el8.1.0+3653+beb38eb0 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:rubygem-abrt-doc | 0:0.3.0-4.module+el8.1.0+3653+beb38eb0 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
+11
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
No history yet (it accumulates with the daily EPSS job).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- none
- Availability
- none
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- None
- Availability impact
- None
Weakness class (CWE)
CWE-125 · Out-of-bounds ReadCVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
—
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (14 more)Show less
- seclists.org/fulldisclosure/2022/Oct/30
- seclists.org/fulldisclosure/2022/Oct/28
- seclists.org/fulldisclosure/2022/Oct/41
- seclists.org/fulldisclosure/2022/Oct/42
- hackerone.com/reports/1248108
- lists.debian.org/debian-lts-announce/2023/06/msg00012.html
- security-tracker.debian.org/tracker/CVE-2022-28739
- security.gentoo.org/glsa/202401-27
- security.netapp.com/advisory/ntap-20220624-0002/
- support.apple.com/kb/HT213488
- support.apple.com/kb/HT213493
- support.apple.com/kb/HT213494
- www.ruby-lang.org/en/news/2022/04/12/buffer-overrun-in-string-to-float-cve-2022-28739/
- lists.debian.org/debian-lts-announce/2024/09/msg00000.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.