Privilege Context Switching Error Affecting org.jenkins-ci.plugins:templating-engine package, versions [,2.5.4)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.08% (25th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGJENKINSCIPLUGINS-9634170
  • published3 Apr 2025
  • disclosed2 Apr 2025
  • creditUnknown

Introduced: 2 Apr 2025

NewCVE-2025-31722  (opens in a new tab)
CWE-270  (opens in a new tab)

How to fix?

Upgrade org.jenkins-ci.plugins:templating-engine to version 2.5.4 or higher.

Overview

Affected versions of this package are vulnerable to Privilege Context Switching Error due to the injectPrimitives() function not taking sandbox protection into account for folder-scoped libraries. A user with Item/Configure permission can bypass the sandbox to execute code in the Jenkins controller JVM.

CVSS Base Scores

version 4.0
version 3.1