VDB
Sign up
CRITICAL9.8

GHSA-vmfg-rjjm-rjrj

QOS.ch Logback vulnerable to Deserialization of Untrusted Data

Quick fix

GHSA-vmfg-rjjm-rjrj — ch.qos.logback:logback-classic: upgrade to the fixed version with the command below.

# pom.xml: bump <version>1.2.0</version> for ch.qos.logback:logback-classic

Details

QOS.ch Logback before 1.2.0 has a serialization vulnerability affecting the SocketServer and ServerSocketReceiver components. The RemoteStreamAppenderClient class in logback-classic and the SocketNode classes in logback-classic and logback-access allow data to be deserialized over a Java Socket, via an ObjectInputStream, without validating the data beforehand. When data is received from the Socket, to be logged, it is deserialized into Java objects.An attacker can exploit this vulnerability by sending malicious, serialized Java objects over the connection to the Socket, which may result in execution of arbitrary code when those objects are deserialized. Note that although logback-core is implicated by the Logback project here, the Sonatype Security Research team discovered that the vulnerability is actually present in the logback-classic and logback-access components. Versions prior to 1.2.0 are vulnerable, as stated in the advisory.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/ch.qos.logback:logback-classic
Introduced in: 0Fixed in: 1.2.0
Fix# pom.xml: bump <version>1.2.0</version> for ch.qos.logback:logback-classic
Maven/ch.qos.logback:logback-core
Introduced in: 0Fixed in: 1.2.0
Fix# pom.xml: bump <version>1.2.0</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-classic"]}'