CRITICAL 9.8

CVE-2017-5929

QOS.ch Logback vulnerable to Deserialization of Untrusted Data

Description

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.

Affected Maven artifacts (2)

ArtifactAffected versionsFixed in
ch.qos.logback » logback-classic
< 1.2.0
1.2.0
ch.qos.logback » logback-core
< 1.2.0
1.2.0

Blast radius

2affected artifacts
164affected versions
27,885dependent artifacts (est.)
1,274,850dependent versions

100% of the dependent artifacts (27,885) still pull an affected version in their latest release.

DepthDependent versions
Direct
111,941
2 hops
268,652
3 hops
387,731
4 hops
315,520
5 hops
144,382
6 hops
46,624

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

References