VDB
Sign up
MEDIUM5.9

GHSA-25qh-j22f-pwp8

QOS.CH logback-core is vulnerable to Arbitrary Code Execution through file processing

Quick fix

GHSA-25qh-j22f-pwp8 — ch.qos.logback:logback-core: upgrade to the fixed version with the command below.

# pom.xml: bump <version>1.5.19</version> for ch.qos.logback:logback-core

Details

QOS.CH logback-core versions up to 1.5.18 contain an ACE vulnerability in conditional configuration file processing in Java applications. This vulnerability allows an attacker to execute arbitrary code by compromising an existing logback configuration file or by injecting a malicious environment variable before program execution.

A successful attack requires the Janino library and Spring Framework to be present on the user's class path. Additionally, the attacker must have write access to a configuration file. Alternatively, the attacker could inject a malicious environment variable pointing to a malicious configuration file. In both cases, the attack requires existing privileges.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/ch.qos.logback:logback-core
Introduced in: 1.4.0Fixed in: 1.5.19
Fix# pom.xml: bump <version>1.5.19</version> for ch.qos.logback:logback-core
Maven/ch.qos.logback:logback-core
Introduced in: 0Fixed in: 1.3.16
Fix# pom.xml: bump <version>1.3.16</version> for ch.qos.logback:logback-core

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:maven/ch.qos.logback/logback-core"]}'