cbcvebase.
CVE-2021-21351
published 2021-03-23

CVE-2021-21351: XStream is a Java library to serialize objects to XML and back again. In XStream before version 1.4.16, there is a vulnerability may allow a remote attacker to…

PriorityP276critical9.1CVSS 3.1
AVNACLPRHUINSCCHIHAH
EXPLOIT
EPSS
82.14%
99.6th percentile
XStream is a Java library to serialize objects to XML and back again. In XStream before version 1.4.16, there is a vulnerability may allow a remote attacker to load and execute arbitrary code from a remote host only by manipulating the processed input stream. No user is affected, who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types. If you rely on XStream's default blacklist of the Security Framework, you will have to use at least version 1.4.16.

Affected

40 ranges· showing 25
VendorProductVersion rangeFixed in
apacheactivemq< 5.15.145.15.14
apacheactivemq
apacheactivemq
apachejmeter< 5.55.5
debiandebian_linux
debiandebian_linux
debiandebian_linux
debianlibxstream-java< libxstream-java 1.4.15-2 (bookworm)libxstream-java 1.4.15-2 (bookworm)
fedoraprojectfedora
fedoraprojectfedora
fedoraprojectfedora
oraclebanking_enterprise_default_management
oraclebanking_enterprise_default_management
oraclebanking_platform
oraclebanking_platform
oraclebanking_platform
oraclebanking_platform
oraclebanking_virtual_account_management
oraclebanking_virtual_account_management
oraclebanking_virtual_account_management
oraclebusiness_activity_monitoring
oraclebusiness_activity_monitoring
oraclebusiness_activity_monitoring
oraclecommunications_billing_and_revenue_management_elastic_charging_engine
oraclecommunications_policy_management

Detection & IOCsextracted from sources · hover to see the quote

othercom.sun.rowset.JdbcRowSetImpl
commandrmi://{{interactsh-url}}/test
  • Nuclei template detects CVE-2021-21351 exploitation by matching DNS interaction via interactsh, response body containing 'timestamp' or 'com.thoughtworks.xstream', Content-Type header 'application/json', and HTTP 500 status code.
  • Exploitation payload uses com.sun.rowset.JdbcRowSetImpl with setAutoCommit to trigger RMI callback; look for XStream deserialization payloads referencing this class in processed input streams.
  • Exploit leverages an RMI URL in the deserialized payload to load and execute arbitrary code from a remote host; monitor for outbound RMI connections triggered by XStream deserialization.
  • ·Users who configured XStream's security framework with a whitelist limited to the minimal required types are NOT affected by this vulnerability.
  • ·Users relying on XStream's default blacklist of the Security Framework must upgrade to at least version 1.4.16 to be protected.
  • ·OpenShift Container Platform Jenkins package is not affected due to JEP-200 and JEP-228 protections.

CVSS provenance

nvdv3.19.1CRITICALCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
nvdv2.06.5MEDIUMAV:N/AC:L/Au:S/C:P/I:P/A:P
ghsa9.1CRITICAL
osv9.1CRITICAL
vendor_ubuntu8.0HIGH
vendor_debian5.4MEDIUM
vendor_redhat5.4MEDIUM
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.