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-2023-3635

CVE-2023-3635: Squareup Okio DOS Vulnerability

CVE-2023-3635 is a denial of service vulnerability in Squareup Okio caused by improper exception handling in GzipSource when parsing malformed GZIP archives. This article covers technical details, affected versions, and mitigation.

Published: February 11, 2026

CVE-2023-3635 Overview

CVE-2023-3635 is a denial of service vulnerability affecting Squareup Okio, a popular I/O library for Java and Kotlin applications. The vulnerability exists in the GzipSource class, which fails to properly handle exceptions raised when parsing malformed GZIP buffers. An attacker can exploit this flaw by crafting a malicious GZIP archive that triggers an unhandled exception, leading to denial of service of the Okio client.

Critical Impact

Applications using Okio's GzipSource class for GZIP decompression are vulnerable to denial of service attacks through specially crafted malformed GZIP archives, potentially disrupting services that process compressed data.

Affected Products

  • Squareup Okio (versions prior to the security patch)
  • Applications and libraries dependent on vulnerable Okio versions
  • Android applications using Okio for GZIP handling

Discovery Timeline

  • 2023-07-12 - CVE-2023-3635 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-3635

Vulnerability Analysis

This vulnerability stems from improper input validation when processing GZIP headers in the GzipSource class. The root cause involves two related weaknesses: CWE-195 (Signed to Unsigned Conversion Error) and CWE-681 (Incorrect Conversion between Numeric Types). When parsing the GZIP header's extra field length (xlen), the code incorrectly handles values where the unsigned 16-bit integer exceeds 0x7fff (32,767). This causes a signed short value to be incorrectly interpreted, resulting in an unhandled exception that crashes the application.

The vulnerability is remotely exploitable without requiring authentication or user interaction. The impact is limited to availability, as successful exploitation causes denial of service but does not compromise confidentiality or integrity.

Root Cause

The root cause is a numeric type conversion error in the GZIP header parsing logic. The readShortLe() method returns a signed short value, which when converted directly to a long, preserves the sign bit. For values where the unsigned representation exceeds 0x7fff, this results in a negative number, causing the subsequent require() call to fail with an exception. The fix properly masks the short value with 0xffff to ensure correct unsigned interpretation.

Attack Vector

The attack vector is network-based, requiring an attacker to deliver a malformed GZIP archive to an application using Okio's GzipSource class. This could occur through:

  1. Uploading a malicious compressed file to a web application
  2. Sending crafted compressed data through API endpoints
  3. Man-in-the-middle attacks on unencrypted data streams containing GZIP content
  4. Supplying malicious compressed archives to applications that process user-provided compressed data
text
// Security patch from okio/src/jvmMain/kotlin/okio/GzipSource.kt
// Fix a bug where xlen larger than 0x7fff was rejected (#1280)

     if (flags.getBit(FEXTRA)) {
       source.require(2)
       if (fhcrc) updateCrc(source.buffer, 0, 2)
-      val xlen = source.buffer.readShortLe().toLong()
+      val xlen = (source.buffer.readShortLe().toInt() and 0xffff).toLong()
       source.require(xlen)
       if (fhcrc) updateCrc(source.buffer, 0, xlen)
       source.skip(xlen)

Source: GitHub Commit

Detection Methods for CVE-2023-3635

Indicators of Compromise

  • Application crashes or unhandled exceptions in code paths handling GZIP decompression
  • Abnormal error rates in services processing compressed data
  • Log entries showing exceptions in GzipSource or related Okio classes
  • Sudden service unavailability following receipt of compressed data

Detection Strategies

  • Monitor application logs for unhandled exceptions originating from GzipSource class
  • Implement dependency scanning to identify vulnerable Okio versions in your software supply chain
  • Use software composition analysis (SCA) tools to detect affected library versions
  • Set up alerting for unusual patterns of GZIP parsing failures

Monitoring Recommendations

  • Configure application performance monitoring (APM) to track exception rates in GZIP processing components
  • Enable detailed logging for data decompression operations to capture malformed input attempts
  • Implement health checks that can detect service degradation from repeated crashes
  • Monitor for unusual network traffic patterns involving compressed data payloads

How to Mitigate CVE-2023-3635

Immediate Actions Required

  • Update Squareup Okio to the patched version that includes commit 81bce1a30af244550b0324597720e4799281da7b
  • Audit your dependency tree to identify all applications using vulnerable Okio versions
  • Implement input validation to reject suspicious GZIP archives before processing
  • Consider rate limiting on endpoints that accept compressed data to reduce DoS impact

Patch Information

The vulnerability has been addressed by Square in the Okio library. The fix modifies the GzipSource.kt file to properly handle unsigned 16-bit values in the GZIP extra field length by applying a bitmask (and 0xffff) to convert the signed short to an unsigned representation. The security patch is available in the GitHub commit. Organizations should update to the latest stable release of Okio that includes this fix.

Workarounds

  • Implement exception handling around GzipSource usage to gracefully handle parsing failures
  • Add pre-validation of GZIP headers before passing to GzipSource for processing
  • Deploy web application firewalls (WAF) rules to inspect and filter potentially malicious compressed payloads
  • Consider wrapping GzipSource operations in a timeout mechanism to limit crash impact
bash
# Configuration example - Maven dependency update
# Update your pom.xml to use the patched Okio version
# Check https://github.com/square/okio/releases for the latest patched version
# Example: mvn versions:use-latest-releases -Dincludes=com.squareup.okio:okio

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechSquareup Okio

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.42%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-195

  • CWE-681
  • Vendor Resources
  • GitHub Commit Update

  • JFrog Vulnerability Report
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal Vulnerability
Default Legacy - Prefooter | 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