Expression Injection Affecting ch.qos.logback:logback-core package, versions [0.9.20,1.5.36)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Social Trends
EPSS
0.12% (3rd 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 Learn

Learn about Expression Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-CHQOSLOGBACK-17675439
  • published29 Jun 2026
  • disclosed24 Jun 2026
  • creditIcySun,yulate

Introduced: 24 Jun 2026

CVE-2026-13006  (opens in a new tab)
CWE-917  (opens in a new tab)

How to fix?

Upgrade ch.qos.logback:logback-core to version 1.5.36 or higher.

Overview

ch.qos.logback:logback-core is a logback-core module.

Affected versions of this package are vulnerable to Expression Injection in the Janino-evaluated condition attribute of <if> configuration elements, handled by IfModelHandler, whose denylist blocked only the literal new operator. A user who can modify the logback configuration can execute arbitrary code by writing an <if> condition that evades that denylist, either through references it did not cover such as Runtime or springframework, or through Unicode escape sequences like \u that reconstruct the blocked new operator. Exploitation requires write access to the logback configuration and the use of conditional <if> processing with Janino present on the classpath.

CVSS Base Scores

version 4.0
version 3.1