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-2025-12970

CVE-2025-12970: Fluent Bit Buffer Overflow Vulnerability

CVE-2025-12970 is a buffer overflow vulnerability in Treasuredata Fluent Bit's Docker input plugin that allows attackers to crash processes or execute arbitrary code. This article covers technical details, impact, and mitigation.

Published: April 1, 2026

CVE-2025-12970 Overview

CVE-2025-12970 is a buffer overflow vulnerability in the Fluent Bit in_docker input plugin. The extract_name function copies container names into a fixed-size stack buffer without validating the length of the input. An attacker who can create containers or control container names can supply a specially crafted long name that overflows the buffer, potentially leading to process crash or arbitrary code execution.

This vulnerability represents a classic stack-based buffer overflow (CWE-120) in a widely deployed log processing and forwarding agent used extensively in cloud-native environments and Kubernetes deployments. Given Fluent Bit's prevalence in containerized infrastructure for log aggregation, successful exploitation could compromise the integrity of monitoring systems and potentially provide a foothold for further attacks within cloud environments.

Critical Impact

Attackers with container creation privileges can overflow a stack buffer to crash the Fluent Bit process or achieve arbitrary code execution, potentially compromising cloud infrastructure monitoring and enabling lateral movement.

Affected Products

  • Treasuredata Fluent Bit version 4.1.0
  • Earlier versions of Fluent Bit with the in_docker input plugin enabled

Discovery Timeline

  • 2025-11-24 - CVE-2025-12970 published to NVD
  • 2025-11-28 - Last updated in NVD database

Technical Details for CVE-2025-12970

Vulnerability Analysis

The vulnerability exists within the extract_name function of Fluent Bit's Docker input plugin (in_docker). This plugin is responsible for collecting metadata and logs from Docker containers running on the host system. When processing container information, the function extracts the container name and copies it into a stack-allocated buffer of fixed size.

The fundamental flaw is the absence of length validation before the copy operation. Container names in Docker can be up to 255 characters, but the buffer allocated on the stack may be significantly smaller. When a container with a sufficiently long name is processed, the copy operation writes beyond the buffer boundary, corrupting adjacent stack memory.

This stack corruption can overwrite critical data including saved return addresses, frame pointers, and local variables. An attacker who carefully crafts the container name payload can potentially redirect program execution to attacker-controlled code, achieving arbitrary code execution with the privileges of the Fluent Bit process.

The network attack vector is applicable because in many cloud environments, container orchestration APIs (such as the Docker API or Kubernetes API) are accessible over the network, allowing authenticated users with container creation privileges to trigger this vulnerability remotely.

Root Cause

The root cause is improper input validation (CWE-120: Buffer Copy without Checking Size of Input) in the extract_name function. The function uses an unsafe string copy operation that does not verify whether the source container name length exceeds the destination buffer capacity. This represents a failure to implement proper boundary checking, a fundamental secure coding practice for handling variable-length input data.

Attack Vector

Exploitation requires an attacker to have the ability to create containers or influence container names within the environment where Fluent Bit is monitoring Docker activity. The attack proceeds as follows:

  1. The attacker creates a Docker container with a maliciously crafted long name designed to overflow the stack buffer
  2. Fluent Bit's in_docker plugin polls Docker for container information and processes the malicious container
  3. The extract_name function copies the oversized name into the fixed-size stack buffer
  4. The buffer overflow corrupts stack memory, potentially overwriting the return address
  5. Depending on exploitation sophistication, this results in either a denial of service (crash) or arbitrary code execution

In cloud environments with shared infrastructure, an attacker with legitimate but limited container privileges could exploit this vulnerability to escalate access or disrupt logging and monitoring capabilities.

Detection Methods for CVE-2025-12970

Indicators of Compromise

  • Unexpected Fluent Bit process crashes or restarts, particularly when new containers are created
  • Docker containers with unusually long names (approaching or exceeding typical limits)
  • Core dumps from Fluent Bit processes showing stack corruption patterns
  • Anomalous container creation patterns from unexpected sources

Detection Strategies

  • Monitor Fluent Bit process stability and investigate frequent crashes or unexpected terminations
  • Implement container name length validation policies in container orchestration platforms
  • Deploy runtime security tools to detect stack buffer overflow exploitation attempts
  • Audit container creation events for anomalous naming patterns or unauthorized sources

Monitoring Recommendations

  • Enable process monitoring for Fluent Bit instances to detect crashes and abnormal behavior
  • Configure alerting on container creation events with names exceeding normal length thresholds
  • Review Docker API access logs for unusual container creation requests
  • Implement centralized logging for Fluent Bit health metrics and error conditions

How to Mitigate CVE-2025-12970

Immediate Actions Required

  • Upgrade Fluent Bit to version 4.1.1 or later which addresses this vulnerability
  • If immediate patching is not possible, disable the in_docker input plugin if not required
  • Restrict container creation privileges to trusted users and service accounts
  • Implement container admission policies to enforce reasonable name length limits

Patch Information

Treasuredata has addressed this vulnerability in Fluent Bit. According to the Fluent Bit Security Vulnerabilities Patch, fixes have been implemented in version 4.1 and backported to the 4.0 branch. Organizations should upgrade to the latest patched version as soon as possible. Additional technical analysis is available from Oligo Security's research on critical Fluent Bit vulnerabilities.

Workarounds

  • Disable the in_docker input plugin by removing or commenting out the relevant configuration section if Docker container monitoring is not essential
  • Implement network segmentation to restrict access to Docker API endpoints
  • Use admission controllers in Kubernetes environments to enforce container name length policies
  • Deploy application-level firewall rules to filter requests with excessively long container names
bash
# Disable in_docker plugin in Fluent Bit configuration
# Comment out or remove the [INPUT] section for docker
# Example fluent-bit.conf modification:

# [INPUT]
#     Name   docker
#     Tag    docker.*

# Alternative: Restrict Docker API access
# Ensure Docker socket is not exposed over network without authentication
chmod 660 /var/run/docker.sock

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechFluent Bit

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.20%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-120
  • Technical References
  • Fluent Bit Security Vulnerabilities Patch

  • Oligo Security Blog on Critical Vulnerabilities
  • Related CVEs
  • CVE-2025-12972: Fluent Bit Path Traversal Vulnerability

  • CVE-2024-4323: Fluent Bit Memory Corruption 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