CVE-2025-31722
Java vulnerability analysis and mitigation

Overview

CVE-2025-31722 affects the Jenkins Templating Engine Plugin versions 2.5.3 and earlier. The vulnerability was discovered and disclosed on April 2, 2025. This security issue exists in the plugin's handling of libraries defined in folders, where these libraries are not subject to sandbox protection (Jenkins Advisory, NVD).

Technical details

The vulnerability stems from a security control bypass in the Jenkins Templating Engine Plugin. The plugin allows libraries to be defined both in global configuration and in folders containing pipelines. While globally configured libraries require administrator privileges and are considered trusted, folder-defined libraries can be configured by users with Item/Configure permission. The critical security flaw is that these folder-defined libraries bypass sandbox protection, leading to potential code execution vulnerabilities. The vulnerability has been assigned a CVSS v3.1 Base Score of 8.8 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (Jenkins Advisory).

Impact

The vulnerability allows attackers with Item/Configure permission to execute arbitrary code in the context of the Jenkins controller JVM. This represents a significant security risk as it could lead to complete system compromise within the Jenkins environment (Jenkins Advisory).

Mitigation and workarounds

The vulnerability has been fixed in Jenkins Templating Engine Plugin version 2.5.4, which implements proper sandbox protection for libraries defined in folders. Users are strongly advised to upgrade to this version to mitigate the security risk (Jenkins Advisory).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-41243CRITICAL10
  • JavaJava
  • org.springframework.cloud:spring-cloud-gateway-server-webflux
NoYesSep 16, 2025
CVE-2025-43801MEDIUM6.9
  • JavaJava
  • cpe:2.3:a:liferay:liferay_portal
NoYesSep 16, 2025
GHSA-3wfh-36rx-9537MEDIUM6.6
  • JavaJava
  • com.ongres.scram:scram-common
NoYesSep 16, 2025
CVE-2025-43797MEDIUM5.3
  • JavaJava
  • com.liferay:com.liferay.site.admin.web
NoYesSep 15, 2025
CVE-2025-43802MEDIUM4.8
  • JavaJava
  • cpe:2.3:a:liferay:liferay_portal
NoYesSep 15, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management