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)
| Artifact | Affected versions | Fixed 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
100% of the dependent artifacts (27,885) still pull an affected version in their latest release.
| Depth | Dependent 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
- org.sonatype.plugins » nexus-staging-maven-plugin36,701 usages
- ch.qos.logback » logback-classic35,217 usages
- org.springframework.boot » spring-boot-starter-test20,993 usages
- org.springframework.boot » spring-boot-starter-web19,081 usages
- org.springframework.boot » spring-boot-starter12,901 usages
- org.springframework.boot » spring-boot-starter-actuator6,564 usages
- org.reflections » reflections5,225 usages
- org.springframework.boot » spring-boot-starter-validation4,721 usages
- org.springframework.boot » spring-boot-starter-aop4,662 usages
- org.springframework.boot » spring-boot-starter-data-jpa4,154 usages
- org.springframework.boot » spring-boot-starter-security3,606 usages
- io.netty » netty-all3,584 usages
- org.codehaus.mojo » cobertura-maven-plugin3,365 usages
- org.apache.spark » spark-sql3,174 usages
- org.springframework.boot » spring-boot-starter-data-redis3,154 usages
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
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2017-5929
- Webhttps://github.com/qos-ch/logback/commit/f46044b805bca91efe5fd6afe52257cd02f775f8
- Webhttps://logback.qos.ch/news.html
- Webhttps://lists.apache.org/thread.html/re9b787727291786dfe088e3cd078c7d195c0b5781e15d3cd24a3b2fc@%3Cdev.mnemonic.apache.org%3E
- Webhttps://lists.apache.org/thread.html/rd2227af3c9ada2a72dc72ed05517f5857a34d487580e1f2803922ff9@%3Ccommits.cassandra.apache.org%3E
- Webhttps://lists.apache.org/thread.html/rc5f0cc2f3b153bdf15ee7389d78585829abc9c7af4d322ba1085dd3e@%3Ccommits.cassandra.apache.org%3E
- Webhttps://lists.apache.org/thread.html/rbb4dfca2f7e3e8f3570eec21c79832d33a51dfde6762725660b60169@%3Cdev.mnemonic.apache.org%3E
- Webhttps://lists.apache.org/thread.html/ra007cec726a3927c918ec94c4316d05d1829c49eae8dc3648adc35e2@%3Ccommits.cassandra.apache.org%3E
- Webhttps://lists.apache.org/thread.html/r967953a14e05016bc4bcae9ef3dd92e770181158b4246976ed8295c9@%3Cdev.brooklyn.apache.org%3E
- Webhttps://lists.apache.org/thread.html/r718f27bed898008a8e037d9cc848cfc1df4d18abcbaee0cb0c142cfb@%3Ccommits.cassandra.apache.org%3E
- Webhttps://lists.apache.org/thread.html/r632ec30791b441e2eb5a3129532bf1b689bf181d0ef7daf50bcf0fd6@%3Ccommits.cassandra.apache.org%3E
- Webhttps://lists.apache.org/thread.html/r4673642893562c58cbee60c151ded6c077e8a2d02296e862224a9161@%3Ccommits.cassandra.apache.org%3E
- Webhttps://lists.apache.org/thread.html/r397bf63783240fbb5713389d3f889d287ae0c11509006700ac720037@%3Ccommits.cassandra.apache.org%3E
- Webhttps://lists.apache.org/thread.html/r2c2d57ca180e8173c90fe313ddf8eabbdcf8e3ae196f8b9f42599790@%3Ccommits.mnemonic.apache.org%3E
- Webhttps://lists.apache.org/thread.html/r2a08573ddee4a86dc96d469485a5843a01710ee0dc2078dfca410c79@%3Ccommits.cassandra.apache.org%3E
- Webhttps://lists.apache.org/thread.html/r0bb19330e48d5ad784fa20dacba9e5538d8d60f5cd9142e0f1432b4b@%3Ccommits.cassandra.apache.org%3E
- Webhttps://lists.apache.org/thread.html/fa4eaaa6ff41ac6f79811e053c152ee89b7c5da8a6ac848ae97df67f@%3Ccommits.cassandra.apache.org%3E
- Webhttps://lists.apache.org/thread.html/a6db61616180d73711d6db25703085940026e2dbc40f153f9d22b203@%3Ccommits.cassandra.apache.org%3E
- Webhttps://lists.apache.org/thread.html/18d509024d9aeb07f0e9579066f80bf5d4dcf20467b0c240043890d1@%3Ccommits.cassandra.apache.org%3E
- Packagehttps://github.com/qos-ch/logback
- Webhttps://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-5929
- Webhttps://access.redhat.com/errata/RHSA-2018:2927
- Webhttps://access.redhat.com/errata/RHSA-2017:1832
- Webhttps://access.redhat.com/errata/RHSA-2017:1676
- Webhttps://access.redhat.com/errata/RHSA-2017:1675
