The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2022-28739

CVE-2022-28739: Ruby-lang Ruby Buffer Overflow Vulnerability

CVE-2022-28739 is a buffer over-read vulnerability in Ruby-lang Ruby affecting String-to-Float conversions. This flaw impacts multiple Ruby versions and can lead to memory disclosure. This article covers technical details, affected versions, impact analysis, and mitigation strategies.

Published: February 17, 2026

CVE-2022-28739 Overview

CVE-2022-28739 is a buffer over-read vulnerability affecting multiple versions of the Ruby programming language. The flaw exists in Ruby's String-to-Float conversion functionality, specifically impacting the Kernel#Float and String#to_f methods. When processing specially crafted input strings, Ruby fails to properly validate buffer boundaries during the conversion process, allowing attackers to read memory beyond the intended buffer limits.

This out-of-bounds read vulnerability (CWE-125) can be exploited remotely without authentication, potentially exposing sensitive information stored in adjacent memory regions. The vulnerability affects Ruby versions 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.

Critical Impact

Attackers can exploit this buffer over-read to extract sensitive data from process memory, potentially including cryptographic keys, authentication tokens, or other confidential information processed by Ruby applications.

Affected Products

  • Ruby-lang Ruby (versions before 2.6.10, 2.7.x before 2.7.6, 3.x before 3.0.4, 3.1.x before 3.1.2)
  • Debian Linux 9.0, 10.0, 11.0
  • Apple macOS (multiple versions)

Discovery Timeline

  • April 12, 2022 - Ruby-lang releases security advisory
  • May 9, 2022 - CVE-2022-28739 published to NVD
  • November 4, 2025 - Last updated in NVD database

Technical Details for CVE-2022-28739

Vulnerability Analysis

This vulnerability stems from improper bounds checking in Ruby's floating-point number parsing routines. When a Ruby application converts a string to a floating-point number using either Kernel#Float() or the String#to_f method, the underlying C implementation fails to properly validate the length of the input string against the allocated buffer size.

The buffer over-read condition occurs during the parsing phase where Ruby iterates through string characters to construct the floating-point representation. Without adequate boundary validation, the parser can continue reading past the end of the allocated string buffer, accessing adjacent memory regions.

This type of vulnerability is particularly concerning in web applications and services that process user-supplied data, as attackers can craft malicious input strings designed to trigger the over-read and potentially leak sensitive information from the application's memory space.

Root Cause

The root cause is inadequate bounds checking in Ruby's internal String-to-Float conversion implementation. The parsing routine does not properly verify that memory access operations remain within the bounds of the input string buffer, allowing reads beyond the intended data boundary. This represents a classic CWE-125 (Out-of-bounds Read) vulnerability pattern in native code handling.

Attack Vector

The attack vector is network-based, requiring no privileges or user interaction. An attacker can exploit this vulnerability by sending specially crafted string values to any Ruby application endpoint that performs String-to-Float conversion on user-controlled input.

Exploitation scenarios include:

  • Web applications processing numeric form inputs
  • API endpoints parsing JSON/XML with numeric string values
  • Ruby-based services processing configuration or data files

The vulnerability can be triggered by passing malicious strings to functions like Float("malicious_string") or "malicious_string".to_f where the string is designed to cause the parser to read beyond buffer boundaries.

Detection Methods for CVE-2022-28739

Indicators of Compromise

  • Unusual memory access patterns in Ruby processes during string conversion operations
  • Unexpected application crashes or errors related to floating-point parsing
  • Anomalous network traffic containing malformed numeric strings targeting Ruby applications
  • Memory disclosure in application responses or logs

Detection Strategies

  • Monitor Ruby application logs for errors related to String-to-Float conversion or memory access violations
  • Implement application-layer firewalls to detect and block malformed numeric string payloads
  • Deploy memory safety monitoring tools to detect out-of-bounds read operations in Ruby processes
  • Conduct regular vulnerability scanning to identify unpatched Ruby installations

Monitoring Recommendations

  • Enable verbose logging for Ruby applications to capture conversion errors and potential exploitation attempts
  • Monitor system memory usage patterns for anomalies that may indicate memory disclosure attacks
  • Implement intrusion detection rules for network traffic containing suspicious numeric string patterns
  • Review application inputs that undergo String-to-Float conversion for potential abuse

How to Mitigate CVE-2022-28739

Immediate Actions Required

  • Upgrade Ruby to patched versions: 2.6.10+, 2.7.6+, 3.0.4+, or 3.1.2+
  • Inventory all systems running vulnerable Ruby versions across your infrastructure
  • Prioritize patching internet-facing Ruby applications that process user input
  • Apply vendor patches for affected operating systems including Debian Linux and Apple macOS

Patch Information

Ruby-lang has released patched versions addressing this vulnerability. Organizations should upgrade to Ruby 2.6.10, 2.7.6, 3.0.4, or 3.1.2 or later depending on their current version branch. The official security advisory is available at the Ruby Language News page.

Additional patches are available from operating system vendors:

  • Debian CVE Tracker provides updates for Debian Linux
  • Apple has released fixes documented in HT213488, HT213493, and HT213494
  • Gentoo GLSA 202401-27 addresses this vulnerability for Gentoo users
  • NetApp Security Advisory NTAP-20220624-0002 provides guidance for NetApp products

Workarounds

  • Implement strict input validation on all strings before conversion to floating-point numbers
  • Limit the length and character set of numeric string inputs at the application layer
  • Use web application firewalls to filter potentially malicious numeric string payloads
  • Consider containerization or sandboxing for Ruby applications to limit memory disclosure impact
bash
# Check Ruby version and upgrade
ruby --version
# Upgrade via package manager (example for Debian/Ubuntu)
sudo apt update && sudo apt upgrade ruby
# Or use rbenv/rvm to install patched version
rbenv install 3.1.2
rbenv global 3.1.2

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechRuby

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.33%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-125
  • Technical References
  • Full Disclosure Post - Oct 28, 2022

  • Full Disclosure Post - Oct 29, 2022

  • Full Disclosure Post - Oct 30, 2022

  • Full Disclosure Post - Oct 41, 2022

  • Full Disclosure Post - Oct 42, 2022

  • HackerOne Report #1248108

  • Debian LTS Announcement - Jun 2023

  • Debian CVE Tracker - CVE-2022-28739

  • Gentoo GLSA 202401-27

  • NetApp Security Advisory - NTAP-20220624-0002

  • Apple Support Article HT213488

  • Apple Support Article HT213493

  • Apple Support Article HT213494

  • Debian LTS Announcement - Sep 2024
  • Vendor Resources
  • Ruby Language News - CVE-2022-28739
  • Related CVEs
  • CVE-2024-27280: Ruby StringIO Buffer Overflow Vulnerability

  • CVE-2025-61594: Ruby-lang Uri Information Disclosure Bug

  • CVE-2024-27282: Ruby Regex Information Disclosure Flaw

  • CVE-2023-36617: Ruby-lang URI DoS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English