cbcvebase.
CVE-2021-39144
published 2021-08-23

CVE-2021-39144: XStream is a simple library to serialize objects to XML and back again. In affected versions this vulnerability may allow a remote attacker has sufficient…

PriorityP193high8.5CVSS 3.1
AVNACHPRLUINSCCHIHAH
KEVITWEXPLOIT
CISA Known Exploited Vulnerabilitydue 2023-03-31
Exploited in the wild
EPSS
98.12%
99.9th percentile
XStream is a simple library to serialize objects to XML and back again. In affected versions this vulnerability may allow a remote attacker has sufficient rights to execute commands of the 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. XStream 1.4.18 uses no longer a blacklist by default, since it cannot be secured for general purpose.

Affected

36 ranges· showing 25
VendorProductVersion rangeFixed in
debiandebian_linux
debiandebian_linux
debiandebian_linux
debianlibxstream-java< libxstream-java 1.4.18-1 (bookworm)libxstream-java 1.4.18-1 (bookworm)
fedoraprojectfedora
fedoraprojectfedora
fedoraprojectfedora
oraclebusiness_activity_monitoring
oraclecommerce_guided_search
oraclecommunications_billing_and_revenue_management_elastic_charging_engine
oraclecommunications_billing_and_revenue_management_elastic_charging_engine
oraclecommunications_cloud_native_core_automated_test_suite
oraclecommunications_cloud_native_core_binding_support_function
oraclecommunications_cloud_native_core_policy
oraclecommunications_unified_inventory_management
oraclecommunications_unified_inventory_management
oraclecommunications_unified_inventory_management
oraclecommunications_unified_inventory_management
oraclecommunications_unified_inventory_management
oracleretail_xstore_point_of_service
oracleretail_xstore_point_of_service
oracleretail_xstore_point_of_service
oracleretail_xstore_point_of_service
oracleretail_xstore_point_of_service
oracleutilities_framework

Detection & IOCsextracted from sources · hover to see the quote

urlPUT /api/2.0/services/usermgmt/password/{{lowerrstr}} HTTP/1.1
path/api/2.0/services/usermgmt/password/
yara
id: CVE-2021-39144 — Nuclei template matching POST / with XML body containing java.lang.Runtime/exec gadget chain and interactsh callback
sigma
shodan-query: title:"VMware Appliance Management"
  • Monitor for unauthenticated HTTP PUT requests to the NSX-V endpoint path /api/2.0/services/usermgmt/password/ — this is the vulnerable unauthenticated endpoint exploited for RCE as root.
  • Detect inbound XML payloads referencing Java gadget chain classes such as java.lang.Runtime, java.lang.Comparable, and compareTo method invocations in Content-Type: application/xml requests to NSX-V endpoints.
  • Alert on HTTP responses with status 400 and body containing 'deceptive request routing' from VMware NSX Manager, which is the expected server response during exploitation attempts.
  • Hunt for VMware NSX Manager appliances exposed to the internet using the Shodan/FOFA query for 'VMware Appliance Management' title, as these are directly exploitable targets.
  • Identify vulnerable VMware Cloud Foundation NSX-V instances: versions 3.x and NSX Manager Data Center for vSphere up to and including version 6.4.13 are affected.
  • A public proof-of-concept exploit script providing a reverse shell on vulnerable VMware Cloud Foundation NSX-V instances was published on the Source Incite blog; monitor for exploitation traffic matching this PoC.
  • ·Installations that configured XStream's security framework with an allow-list (whitelist) of minimal required types are NOT vulnerable to this CVE.

CVSS provenance

nvdv3.18.5HIGHCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
nvdv2.06.0MEDIUMAV:N/AC:M/Au:S/C:P/I:P/A:P
ghsa8.5HIGH
osv8.8HIGH
vulncheck8.5HIGH
cisa8.5HIGH
vendor_debian8.5HIGH
vendor_redhat8.5HIGH
vendor_ubuntu8.5HIGH
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.