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-31721

CVE-2025-31721: Jenkins Privilege Escalation Vulnerability

CVE-2025-31721 is a privilege escalation vulnerability in Jenkins that allows attackers to copy agents and access encrypted secrets. This article covers the technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2025-31721 Overview

A missing permission check vulnerability has been identified in Jenkins that allows attackers with Computer/Create permission but without Computer/Configure permission to copy an agent, gaining unauthorized access to encrypted secrets stored in the agent's configuration. This authorization bypass flaw affects Jenkins 2.503 and earlier, as well as LTS 2.492.2 and earlier versions.

Critical Impact

Attackers with limited permissions can bypass authorization controls to access encrypted secrets in agent configurations, potentially exposing sensitive credentials and enabling further compromise of CI/CD pipelines.

Affected Products

  • Jenkins 2.503 and earlier
  • Jenkins LTS 2.492.2 and earlier

Discovery Timeline

  • 2025-04-02 - CVE-2025-31721 published to NVD
  • 2025-04-29 - Last updated in NVD database

Technical Details for CVE-2025-31721

Vulnerability Analysis

This vulnerability is classified as CWE-862 (Missing Authorization), a broken access control flaw in Jenkins' agent management functionality. The security issue arises from an incomplete permission check when users attempt to copy agent configurations.

In Jenkins, the permission model separates Computer/Create (ability to create new agents) from Computer/Configure (ability to modify existing agent configurations). The vulnerability occurs because the copy agent operation only validates Computer/Create permission while failing to verify that the user also has Computer/Configure permission on the source agent being copied.

When an agent is copied, all configuration data—including encrypted secrets such as credentials, SSH keys, and authentication tokens—is transferred to the new agent. An attacker exploiting this flaw can effectively read configuration data they should not have access to by creating a duplicate agent and then accessing its configuration through legitimate means.

Root Cause

The root cause is a missing authorization check in the Jenkins agent copy functionality. The code path responsible for duplicating agent configurations does not properly enforce the Computer/Configure permission on the source agent, allowing users with only Computer/Create permission to access sensitive configuration data through the copy operation.

Attack Vector

The attack is network-accessible and requires low-privileged authenticated access to Jenkins. An attacker must have:

  1. Valid Jenkins credentials with Computer/Create permission
  2. Knowledge of existing agent names to target for copying

The exploitation flow involves the attacker initiating a copy operation on a target agent. Since the permission check is missing, Jenkins processes the request and creates a new agent with the copied configuration, including any encrypted secrets. The attacker can then access these secrets through the newly created agent's configuration that they now control.

Detection Methods for CVE-2025-31721

Indicators of Compromise

  • Unusual agent creation activity from users who do not typically manage build agents
  • Agent copy operations performed by accounts with limited administrative privileges
  • New agents appearing with configurations copied from high-privilege or production agents
  • Audit log entries showing agent duplication without corresponding Computer/Configure permission grants

Detection Strategies

  • Review Jenkins audit logs for agent copy operations and correlate with user permission levels
  • Monitor for new agent creation events that duplicate existing agent names or configurations
  • Implement alerting on bulk agent creation activities or rapid sequential agent operations
  • Cross-reference agent creation events with the permission matrix to identify anomalous access patterns

Monitoring Recommendations

  • Enable comprehensive audit logging in Jenkins to capture all agent management operations
  • Configure SIEM integration to ingest Jenkins security events for correlation analysis
  • Establish baseline metrics for normal agent creation patterns to detect anomalies
  • Regularly review the Jenkins authorization matrix to ensure proper permission segregation

How to Mitigate CVE-2025-31721

Immediate Actions Required

  • Upgrade Jenkins to version 2.504 or later (or LTS 2.492.3 or later)
  • Review current user permissions and restrict Computer/Create permission to only necessary accounts
  • Audit existing agents to identify any unauthorized copies that may have been created
  • Rotate any secrets stored in agent configurations as a precautionary measure

Patch Information

Jenkins has addressed this vulnerability in the security advisory SECURITY-3513. Organizations should upgrade to Jenkins 2.504 or later for weekly releases, or Jenkins LTS 2.492.3 or later for long-term support releases. The patch adds the missing Computer/Configure permission check to the agent copy functionality.

Workarounds

  • Restrict Computer/Create permission to only highly trusted administrators until the patch can be applied
  • Use Jenkins' matrix-based security to implement granular access controls on agent management
  • Remove sensitive credentials from agent configurations where possible and use external credential providers
  • Monitor agent creation activities manually if automated monitoring is not available
bash
# Configuration example - Review and restrict agent permissions in Jenkins
# Navigate to: Manage Jenkins -> Security -> Authorization
# Ensure Computer/Create is only granted to trusted administrators
# Consider using Role-Based Access Control plugin for granular permissions

# To check current permission assignments via Jenkins CLI:
java -jar jenkins-cli.jar -s http://your-jenkins-url/ who-am-i
java -jar jenkins-cli.jar -s http://your-jenkins-url/ list-jobs

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechJenkins

  • SeverityMEDIUM

  • CVSS Score4.3

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-862
  • Vendor Resources
  • Jenkins Security Advisory #SECURITY-3513
  • Related CVEs
  • CVE-2025-31720: Jenkins Privilege Escalation Vulnerability

  • CVE-2021-21687: Jenkins Privilege Escalation Vulnerability

  • CVE-2021-21685: Jenkins Privilege Escalation Vulnerability

  • CVE-2026-33004: Jenkins LoadNinja Information Disclosure
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