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
    • 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-2022-31030

CVE-2022-31030: Containerd CRI ExecSync DoS Vulnerability

CVE-2022-31030 is a denial of service vulnerability in containerd's CRI implementation that allows processes to cause unbounded memory consumption. This article covers the technical details, affected versions, and mitigation.

Published: February 17, 2026

CVE-2022-31030 Overview

A memory exhaustion vulnerability exists in containerd's Container Runtime Interface (CRI) implementation that allows programs running inside a container to cause the containerd daemon to consume unbounded memory. This denial of service vulnerability is triggered during invocation of the ExecSync API, which is commonly used by Kubernetes and crictl for running health probes and executing processes within containers via exec facilities.

Critical Impact

This vulnerability can cause containerd to consume all available system memory, leading to denial of service for legitimate workloads running on the affected host.

Affected Products

  • Linux Foundation containerd (versions prior to 1.6.6 and 1.5.13)
  • Debian Linux 11.0
  • Fedora 35 and 36

Discovery Timeline

  • 2022-06-09 - CVE-2022-31030 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-31030

Vulnerability Analysis

The vulnerability resides in containerd's CRI implementation, specifically in how the ExecSync API handles output from executed commands within containers. When a process inside a container is invoked via ExecSync, the containerd daemon reads and stores the command's output without implementing any memory bounds or limits. A malicious or misbehaving process can generate an unlimited amount of output data, causing the containerd daemon to allocate memory continuously until the host system's resources are exhausted.

This is particularly impactful in Kubernetes environments where ExecSync is used for liveness and readiness probes, as well as for kubectl exec operations. An attacker with the ability to run code inside a container can exploit this to crash the containerd daemon or starve other workloads of memory resources on the same node.

Root Cause

The root cause is a Resource Exhaustion vulnerability (CWE-400) in the containerd CRI server's exec sync functionality. The original implementation lacked any cap or limit on the amount of data that could be written to the output buffer when executing commands within containers. Without these safeguards, the daemon would continue allocating memory as long as the container process produced output.

Attack Vector

The attack requires local access with the ability to execute code within a container managed by containerd. An attacker can craft a malicious workload or container image that outputs large amounts of data when executed via the ExecSync API. This can be triggered through Kubernetes probes or direct exec operations. The attack is low complexity and does not require user interaction, making it particularly concerning for multi-tenant container environments.

go
// Security patch implementing a capped writer to limit memory consumption
// Source: https://github.com/containerd/containerd/commit/c1bcabb4541930f643aa36a2b38655e131346382

 	cioutil "github.com/containerd/containerd/pkg/ioutil"
 )
 
+type cappedWriter struct {
+	w      io.WriteCloser
+	remain int
+}
+
+func (cw *cappedWriter) Write(p []byte) (int, error) {
+	if cw.remain <= 0 {
+		return len(p), nil
+	}
+
+	end := cw.remain
+	if end > len(p) {
+		end = len(p)
+	}
+	written, err := cw.w.Write(p[0:end])
+	cw.remain -= written
+
+	if err != nil {
+		return written, err
+	}
+	return len(p), nil
+}
+
+func (cw *cappedWriter) Close() error {
+	return cw.w.Close()
+}
+

The security patch introduces a cappedWriter struct that wraps the output writer and enforces a maximum limit on the amount of data that can be written. Once the limit is reached, additional writes are silently discarded, preventing unbounded memory allocation while still allowing the operation to complete.

Detection Methods for CVE-2022-31030

Indicators of Compromise

  • Unusual memory growth in the containerd daemon process (containerd or containerd-shim)
  • System-wide memory pressure or out-of-memory (OOM) events coinciding with container exec operations
  • Kubernetes pod health check failures followed by node resource exhaustion
  • Container exec operations that produce abnormally large amounts of output data

Detection Strategies

  • Monitor containerd process memory usage for sudden spikes or continuous growth patterns
  • Implement alerting on node-level memory utilization thresholds in Kubernetes clusters
  • Audit container images for suspicious or untrusted workloads that may exploit exec functionality
  • Review Kubernetes audit logs for excessive or unusual exec operations against running pods

Monitoring Recommendations

  • Deploy runtime security monitoring to track memory allocation patterns in containerd processes
  • Configure resource quotas and limits at the Kubernetes namespace level to contain blast radius
  • Implement SentinelOne Singularity Cloud Workload Security to detect anomalous container behavior
  • Set up alerts for OOM killer events targeting containerd or related processes

How to Mitigate CVE-2022-31030

Immediate Actions Required

  • Upgrade containerd to version 1.6.6 or 1.5.13 or later immediately
  • Review and restrict which containers and users can execute commands via exec facilities
  • Implement pod security policies or admission controllers to limit exec capabilities
  • Apply OS-level security updates from Debian, Fedora, or your distribution vendor

Patch Information

The vulnerability has been fixed in containerd versions 1.6.6 and 1.5.13. The patch implements a capped writer mechanism that limits the amount of output data that can be captured during ExecSync operations, preventing unbounded memory allocation. Security advisories have been published by multiple distributions including Debian DSA-5162, Fedora, and Gentoo GLSA 202401-31. The fix is documented in the GitHub Security Advisory and the security patch commit.

Workarounds

  • Ensure that only trusted container images are deployed in your environment
  • Restrict the use of exec operations to authorized administrators only
  • Implement network policies to limit container-to-container communication
  • Deploy resource monitoring and automatic remediation for memory exhaustion scenarios
bash
# Verify containerd version and upgrade if necessary
containerd --version

# For systems using apt (Debian/Ubuntu)
sudo apt update && sudo apt install containerd

# For systems using dnf (Fedora)
sudo dnf update containerd

# Restart containerd after upgrade
sudo systemctl restart containerd

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechContainerd

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.16%

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

  • GitHub Commit Update

  • GitHub Security Advisory

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Gentoo GLSA 202401-31

  • Debian DSA-5162
  • Related CVEs
  • CVE-2025-47291: Containerd CRI DoS Vulnerability

  • CVE-2023-25173: Containerd Privilege Escalation Vulnerability

  • CVE-2021-21334: Containerd Information Disclosure Flaw

  • CVE-2020-15257: Containerd Privilege Escalation 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