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
    • 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-2021-21697

CVE-2021-21697: Jenkins Information Disclosure Flaw

CVE-2021-21697 is an information disclosure vulnerability in Jenkins that allows agents to read and write build directories with minimal restrictions. This article covers technical details, affected versions, and mitigations.

Published: February 25, 2026

CVE-2021-21697 Overview

CVE-2021-21697 is a critical authorization bypass vulnerability affecting Jenkins automation server that allows any agent to read and write the contents of any build directory stored in Jenkins with very few restrictions. This vulnerability represents a significant security gap in Jenkins' agent-to-controller access control mechanisms, potentially allowing compromised or malicious agents to access sensitive build artifacts, credentials, and configuration data across the entire Jenkins instance.

Critical Impact

Compromised Jenkins agents can read and modify any build directory contents, potentially exposing sensitive credentials, source code, and build artifacts while enabling supply chain attacks through build manipulation.

Affected Products

  • Jenkins versions 2.318 and earlier
  • Jenkins LTS versions 2.303.2 and earlier
  • All Jenkins installations utilizing build agents

Discovery Timeline

  • 2021-11-04 - CVE-2021-21697 published to NVD
  • 2021-11-04 - Jenkins releases security advisory (SECURITY-2428)
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-21697

Vulnerability Analysis

This vulnerability exists in Jenkins' Agent-to-Controller Access Control system, which is designed to limit what agents can do on the controller. The flaw allows any connected agent to bypass intended access restrictions and gain unauthorized read and write access to build directories stored on the Jenkins controller.

Build directories in Jenkins contain highly sensitive information including build logs, archived artifacts, workspace contents, and potentially exposed credentials or secrets used during the build process. An attacker who has compromised a Jenkins agent, or an insider with access to an agent, can exploit this vulnerability to exfiltrate sensitive data from other projects' builds or inject malicious content into build artifacts.

The vulnerability is particularly dangerous in shared Jenkins environments where multiple teams or projects share the same Jenkins instance with different trust levels. A low-privilege agent associated with one project could potentially access or tamper with builds from other, more sensitive projects.

Root Cause

The root cause stems from insufficient access control enforcement in the agent-to-controller security subsystem. Jenkins failed to properly restrict file system operations initiated by agents to only the directories associated with their assigned builds. The missing authorization checks allowed agents to specify arbitrary paths within the build directory structure, bypassing the intended isolation between different builds and projects.

Attack Vector

The attack is network-based and can be executed by any connected Jenkins agent. An attacker would need to either compromise an existing agent or deploy a malicious agent that connects to the target Jenkins controller. Once connected, the malicious agent can issue requests to read or write files in any build directory.

The attack does not require user interaction and can be automated. Attack scenarios include:

  1. Data Exfiltration: Reading build artifacts, logs, or temporarily stored credentials from other projects
  2. Build Tampering: Modifying build artifacts to inject malicious code into software deliverables
  3. Credential Theft: Accessing secrets that may be written to build directories during pipeline execution
  4. Supply Chain Attacks: Manipulating build outputs to compromise downstream consumers of Jenkins-built artifacts

Detection Methods for CVE-2021-21697

Indicators of Compromise

  • Unusual file access patterns in Jenkins build directories by agents not associated with those builds
  • Agent connections from unexpected network locations or IP addresses
  • Anomalous read/write operations to build directories outside an agent's assigned workspace
  • Unexpected modifications to build artifacts or archived files

Detection Strategies

  • Monitor Jenkins controller logs for agent file operations accessing directories outside their designated workspace
  • Implement file integrity monitoring on Jenkins build directories to detect unauthorized modifications
  • Review agent connection logs for unauthorized or suspicious agent registrations
  • Deploy network monitoring to detect data exfiltration from the Jenkins controller

Monitoring Recommendations

  • Enable detailed audit logging for all agent-to-controller communications
  • Configure alerts for cross-project build directory access attempts
  • Implement periodic reviews of agent registration and their associated credentials
  • Monitor for changes to build artifacts after builds have completed

How to Mitigate CVE-2021-21697

Immediate Actions Required

  • Upgrade Jenkins to version 2.319 or later immediately
  • For LTS users, upgrade to Jenkins LTS 2.303.3 or later
  • Review and audit all connected agents for unauthorized access or compromise
  • Rotate any credentials that may have been exposed in build directories

Patch Information

Jenkins has addressed this vulnerability in the following releases:

  • Jenkins weekly: Version 2.319 and later
  • Jenkins LTS: Version 2.303.3 and later

The fix implements proper access control checks to ensure agents can only access build directories associated with their assigned builds. Administrators should consult the Jenkins Security Advisory #SECURITY-2428 for complete details on the patch and any additional configuration requirements.

Workarounds

  • Restrict network access to the Jenkins controller to limit which systems can connect as agents
  • Review and minimize the number of connected agents to reduce the attack surface
  • Implement network segmentation to isolate Jenkins infrastructure from less trusted networks
  • Consider running sensitive builds on dedicated, isolated Jenkins instances until patching is complete
  • Enable and review Agent-to-Controller Access Control settings in Jenkins configuration
bash
# Verify Jenkins version after patching
java -jar jenkins-cli.jar -s http://localhost:8080/ version
# Expected output should show 2.319+ or LTS 2.303.3+

# Review connected agents
java -jar jenkins-cli.jar -s http://localhost:8080/ list-node

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechJenkins

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.81%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • NVD-CWE-Other
  • Technical References
  • Openwall OSS Security Update
  • Vendor Resources
  • Jenkins Security Advisory #SECURITY-2428
  • Related CVEs
  • CVE-2026-42521: Jenkins Plugin Information Disclosure

  • CVE-2026-42519: Jenkins Script Security Info Disclosure

  • CVE-2026-33004: Jenkins LoadNinja Information Disclosure

  • CVE-2026-33003: Jenkins LoadNinja Plugin API Key Exposure
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