CVE DatabaseCVE-2021-38163
한국어 권고문 →
CVE-2021-381638.8/HIGHCISA KEVCWE-22CWE-22

SAP NetWeaver Visual Composer Remote Code Execution (RCE) and File Upload Vulnerability Advisory (CVE-2021-38163)

⚡ Jump to Patch
Affected Vendors
sap
Affected Components
netweaver, visual_composer
Published Date
2021-09-14
CVSS v3.1
8.8
HIGH
EPSS (30d)
36.9%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

SAP NetWeaver (Visual Composer 7.0 RT) versions 7.30, 7.31, 7.40, and 7.50

Impact

An authenticated non-administrative attacker can upload malicious files and execute arbitrary OS commands with the privileges of the Java Server process, leading to full system compromise or denial of service

Mitigation

Immediately apply the official patch specified in SAP Security Note 3084487 and restrict access to vulnerable upload endpoints

Affected Products & Version Scope

SAP NetWeaver (Visual Composer 7.0 RT) versions 7.30, 7.31, 7.40, and 7.50

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

Deploy the official security patch by applying SAP Security Note 3084487 via the SAP Support Portal. Use the Software Update Manager (SUM) or Support Package Manager (SPM) to upgrade the Visual Composer component to the secure patch level.

2. Temporary Workaround & Hardening Configuration

If immediate patching is not feasible, restrict access to the vulnerable Visual Composer upload endpoints using a Web Application Firewall (WAF) or a reverse proxy configuration.

nginx
# Nginx configuration to block unauthorized Visual Composer upload requests
server {
    listen 443 ssl;
    server_name sap-portal.company.com;

    # Block access to Visual Composer RT upload and import endpoints
    location ~* ^/VC/.*(upload|import).* {
        deny all;
        return 403 'Access Denied: Upload functionality is restricted';
    }
}

3. Log Audit & IoC Verification Commands

Execute the following Bash script on the SAP application host to scan the Java Server defaultTrace logs for potential exploitation attempts and path traversal patterns.

bash
#!/bin/bash
# Define SAP NetWeaver Java log directory
SAP_LOG_PATH='/usr/sap/<SID>/JC<InstanceNo>/j2ee/cluster/server0/log'

echo '[+] Searching for CVE-2021-38163 indicators of compromise...'

# Search for path traversal patterns and Visual Composer upload activities
if [ -d '$SAP_LOG_PATH' ]; then
    grep -rnwi '$SAP_LOG_PATH' -e 'VisualComposer' -e '.._..' -e 'upload' | grep -i 'servlet'
else
    echo '[-] SAP log directory not found. Verify the instance path.'
fi
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
Cloudflare Enterprise & Pro WAF
Due to active exploitation in the wild, immediately apply SAP Note 3084487 and restrict external access to SAP NetWeaver Visual Composer endpoints.

Block Exploits Instantly with Managed Virtual Patching Rules

Can't patch production immediately? Deploy managed WAF rules at the edge to intercept RCE, SQLi, and deserialization payloads before they hit your origin server.

3-min setup · Automated Zero-Day Managed Rules
Practice Exploiting & Patching This Web Vulnerability in an Interactive Lab
Launch Hands-On Security Lab

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

This vulnerability (CVE-2021-38163) is a critical arbitrary file upload and path traversal (CWE-22) vulnerability in SAP NetWeaver Visual Composer 7.0 RT. The root cause lies in the lack of proper validation and sanitization of user-supplied file paths and extensions during file upload operations. This allows authenticated users with low privileges to upload arbitrary malicious files to restricted directories on the application server.

2. Exploitation Mechanics & Attack Scenario

An attacker authenticates to the SAP NetWeaver portal using a standard, non-administrative account. By leveraging the Visual Composer 7.0 RT file upload interface, the attacker sends a crafted multipart HTTP request containing path traversal sequences (e.g., ../) in the filename parameter. This forces the application to write the file outside the designated upload directory into executable web paths. Once uploaded, the attacker triggers the execution of the malicious file, running arbitrary operating system commands under the security context of the Java Server process.

3. Infrastructure & Business Impact

Given its inclusion in the CISA Known Exploited Vulnerabilities (KEV) catalog, this vulnerability is actively targeted by threat actors. Successful exploitation allows complete compromise of the SAP application server, enabling unauthorized access to sensitive business data, database credentials, and intellectual property. Attackers can also disrupt business continuity by shutting down the server or using the compromised host to pivot deeper into the corporate network.

Official Vendor Advisories & References

NVD Original English Description

SAP NetWeaver (Visual Composer 7.0 RT) versions - 7.30, 7.31, 7.40, 7.50, without restriction, an attacker authenticated as a non-administrative user can upload a malicious file over a network and trigger its processing, which is capable of running operating system commands with the privilege of the Java Server process. These commands can be used to read or modify any information on the server or shut the server down making it unavailable.

Frequently Asked SecOps Questions (CVE-2021-38163)

FAQ

Q1. How critical is CVE-2021-38163 and is it actively exploited in the wild?

CVE-2021-38163 is rated CVSS 8.8 (HIGH) with a 30-day EPSS exploitation probability of 36.9%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2021-38163?

Primary impacted vendors include sap across netweaver, visual_composer. Scope summary: SAP NetWeaver (Visual Composer 7.0 RT) versions 7.30, 7.31, 7.40, and 7.50

Q3. What temporary mitigations or workarounds exist for CVE-2021-38163 before patching?

[Mitigation] Immediately apply the official patch specified in SAP Security Note 3084487 and restrict access to vulnerable upload endpoints Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2021-38163

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (sap)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2021-38163 SAP NetWeaver Visual Composer Remote Code Execution (RCE) and File Upload Vulnerability Advisory (CVE-2021-38163) (CVSS 8.8) - Patch & Workaround | CVE Pulse