Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2025-30153

CVE-2025-30153: kin-openapi DOS Vulnerability

CVE-2025-30153 is a denial of service vulnerability in kin-openapi that allows attackers to upload crafted ZIP bombs via multipart/form-data, exhausting system memory. This article covers technical details, impact, and patches.

Updated: January 22, 2026

CVE-2025-30153 Overview

CVE-2025-30153 is a resource exhaustion vulnerability in kin-openapi, a Go project for handling OpenAPI files. Prior to version 0.131.0, when validating a request with a multipart/form-data schema, if the OpenAPI schema allows it, an attacker can upload a crafted ZIP file (e.g., a ZIP bomb), causing the server to consume all available system memory. The root cause comes from the ZipFileBodyDecoder, which is registered automatically by the module contrary to what the documentation states.

Critical Impact

This vulnerability allows unauthenticated remote attackers to cause complete denial of service by uploading a malicious ZIP bomb that exhausts all available system memory, potentially crashing the application and affecting system availability.

Affected Products

  • kin-openapi versions prior to 0.131.0
  • Go applications using kin-openapi with multipart/form-data request validation
  • Services accepting ZIP file uploads through OpenAPI-validated endpoints

Discovery Timeline

  • 2025-03-19 - CVE-2025-30153 published to NVD
  • 2025-03-19 - Last updated in NVD database

Technical Details for CVE-2025-30153

Vulnerability Analysis

This vulnerability falls under CWE-409 (Improper Handling of Highly Compressed Data), commonly known as a decompression bomb or ZIP bomb attack. The kin-openapi library automatically registers a ZipFileBodyDecoder for handling application/zip content types during request validation. When processing multipart form data, the decoder attempts to decompress uploaded ZIP files without implementing proper safeguards against highly compressed malicious archives.

A ZIP bomb is a maliciously crafted archive file designed to crash or render useless the program or system reading it. These files can achieve extreme compression ratios, with archives of just a few kilobytes expanding to petabytes of data when decompressed. When the vulnerable ZipFileBodyDecoder processes such a file, it attempts to read the entire decompressed content into memory, leading to memory exhaustion.

Root Cause

The vulnerability originates from the automatic registration of zipFileBodyDecoder in the init() function of req_resp_decoder.go. Despite documentation suggesting that custom content type decoders need to be explicitly registered, the ZIP decoder was registered by default. This decoder lacks proper bounds checking or streaming limits when decompressing ZIP archives, allowing maliciously crafted compressed files to consume unbounded memory during the validation process.

Attack Vector

An attacker can exploit this vulnerability remotely without authentication by sending a multipart/form-data request containing a ZIP bomb to any endpoint that:

  1. Uses kin-openapi for request validation
  2. Has an OpenAPI schema that permits ZIP file uploads
  3. Runs a vulnerable version of the library (prior to 0.131.0)

The attack requires only network access to the target application and a crafted ZIP file, making it highly accessible to potential attackers.

go
// Security patch in openapi3filter/req_resp_decoder.go
// The fix removes automatic registration of zipFileBodyDecoder

	RegisterBodyDecoder("application/vnd.api+json", JSONBodyDecoder)
	RegisterBodyDecoder("application/octet-stream", FileBodyDecoder)
	RegisterBodyDecoder("application/problem+json", JSONBodyDecoder)
-	RegisterBodyDecoder("application/x-www-form-urlencoded", urlencodedBodyDecoder)
-	RegisterBodyDecoder("application/x-yaml", yamlBodyDecoder)
-	RegisterBodyDecoder("application/yaml", yamlBodyDecoder)
-	RegisterBodyDecoder("application/zip", zipFileBodyDecoder)
-	RegisterBodyDecoder("multipart/form-data", multipartBodyDecoder)
-	RegisterBodyDecoder("text/csv", csvBodyDecoder)
-	RegisterBodyDecoder("text/plain", plainBodyDecoder)
+	RegisterBodyDecoder("application/x-www-form-urlencoded", UrlencodedBodyDecoder)
+	RegisterBodyDecoder("application/x-yaml", YamlBodyDecoder)
+	RegisterBodyDecoder("application/yaml", YamlBodyDecoder)
+	RegisterBodyDecoder("multipart/form-data", MultipartBodyDecoder)
+	RegisterBodyDecoder("text/csv", CsvBodyDecoder)
+	RegisterBodyDecoder("text/plain", PlainBodyDecoder)
}

Source: GitHub Commit Reference

Detection Methods for CVE-2025-30153

Indicators of Compromise

  • Sudden spikes in memory consumption on servers handling file uploads
  • Application crashes or out-of-memory errors coinciding with file upload requests
  • Abnormally small ZIP files (few KB) in upload logs that trigger high resource usage
  • Server unresponsiveness following multipart/form-data requests

Detection Strategies

  • Monitor application memory usage patterns and alert on rapid, unexplained increases during request processing
  • Implement request logging that captures file sizes and content types for multipart uploads
  • Audit Go dependencies using go list -m all | grep kin-openapi to identify vulnerable versions
  • Use software composition analysis (SCA) tools to detect vulnerable kin-openapi versions in your dependency tree

Monitoring Recommendations

  • Configure memory limits and OOM kill thresholds for services processing file uploads
  • Implement application performance monitoring (APM) with memory usage alerts
  • Enable detailed logging for multipart/form-data request handlers to track upload patterns
  • Set up automated vulnerability scanning in CI/CD pipelines to catch vulnerable dependencies

How to Mitigate CVE-2025-30153

Immediate Actions Required

  • Upgrade kin-openapi to version 0.131.0 or later immediately
  • Review OpenAPI schemas to identify endpoints accepting ZIP file uploads
  • Implement request body size limits at the web server or reverse proxy level
  • Consider temporarily disabling ZIP file upload functionality until patches are applied

Patch Information

The vulnerability is fixed in kin-openapi version 0.131.0. The fix removes the automatic registration of zipFileBodyDecoder and makes several decoders public, allowing developers to explicitly register only the decoders they need. The security patch is available via the GitHub Commit. For detailed information about this vulnerability, refer to the GitHub Security Advisory.

Workarounds

  • If immediate upgrade is not possible, manually unregister the ZIP decoder using UnregisterBodyDecoder("application/zip")
  • Implement request body size limits at the infrastructure level (reverse proxy, load balancer)
  • Add server-side validation to reject ZIP files before they reach kin-openapi validation
  • Use custom content type handlers as described in the kin-openapi documentation
bash
# Update kin-openapi to the patched version
go get github.com/getkin/kin-openapi@v0.131.0
go mod tidy

# Verify the installed version
go list -m github.com/getkin/kin-openapi

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechKin Openapi

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.28%

  • 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-409
  • Technical References
  • GitHub Code Snippet

  • GitHub Code Snippet

  • GitHub Commit Reference

  • GitHub Security Advisory

  • GitHub README Documentation
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected XSS 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