CVE-2016-2386 — SAP NetWeaver SQL Injection Vulnerability

CVE-2016-2386

SAP NetWeaver J2EE Engine 7.40 — Unauthenticated SQL Injection in UDDI Server Enables Full Database Read/Write on SAP Business Platform

What Is SAP NetWeaver?

SAP NetWeaver is SAP's enterprise application integration and development platform, underlying SAP ERP, SAP S/4HANA, SAP Business Suite, and hundreds of other SAP products. The Java Application Server (AS JAVA) component hosts web-based SAP applications and services on a Java EE stack. SAP NetWeaver installations are pervasive in Global 2000 enterprises — they process payroll, financial reporting, procurement, manufacturing, and human resources data, making SAP systems among the highest-value targets in enterprise environments. Successful compromise of a SAP NetWeaver instance typically yields access to the most sensitive business data an organization holds.

The UDDI (Universal Description, Discovery and Integration) server is a component of SAP NetWeaver AS JAVA that provides a registry for discovering and publishing web services in the SAP landscape. While it serves an infrastructure role, the UDDI server is reachable via network and processes HTTP requests containing query parameters — making it an attack surface for injection vulnerabilities.

Overview

Actively Exploited. This vulnerability has been added to CISA's Known Exploited Vulnerabilities (KEV) Catalog on June 9, 2022. Federal agencies are required to apply mitigations per BOD 22-01.

CVE-2016-2386 is a critical SQL injection vulnerability in the UDDI server component of SAP NetWeaver J2EE Engine 7.40. Remote, unauthenticated attackers can send crafted HTTP requests containing SQL metacharacters, which the UDDI server passes directly to the underlying database without proper sanitization. With CVSS 9.8 and no authentication required, attackers can read, modify, or delete data in the SAP database backing the NetWeaver platform. SAP addressed the vulnerability in Security Note 2256591 (February 2016). CISA added CVE-2016-2386 to the KEV catalog in June 2022, reflecting confirmed active exploitation against unpatched enterprise SAP deployments.

Affected Versions

SAP NetWeaver Component Version Status
SAP NetWeaver J2EE Engine 7.40 Vulnerable
SAP NetWeaver AS JAVA Versions with UDDI server prior to fix Vulnerable
SAP NetWeaver J2EE Engine 7.40 with Security Note 2256591 applied Fixed

Check SAP Security Note 2256591 for the exact patch level and support package stack required for your installation.

Technical Details

Root Cause: SQL Injection in UDDI Query Processing

CVE-2016-2386 is a classic SQL injection (CWE-89) — the UDDI server accepts HTTP request parameters and constructs SQL queries by directly concatenating user-supplied values without parameterized queries or input sanitization. SQL metacharacters in the input (', --, ;, UNION, etc.) break out of the intended query structure and allow arbitrary SQL execution.

A simplified representation of the vulnerable pattern:

SELECT * FROM uddi_services WHERE serviceName = '<user_input>'

With a malicious input like ' OR 1=1 --, the query becomes:

SELECT * FROM uddi_services WHERE serviceName = '' OR 1=1 --'

More sophisticated SQL injection payloads enable stacked queries, time-based blind extraction, or direct database read/write depending on the database configuration and permissions granted to the SAP database user.

Impact Scope

SAP NetWeaver AS JAVA typically uses SAP MaxDB, Oracle Database, or Microsoft SQL Server as the backend database. The impact of SQL injection varies by database configuration:

  • Data exfiltration — read SAP application data, user credentials, configuration tables
  • Data modification — alter financial records, user permissions, or business configuration
  • Potential OS-level access — databases configured with xp_cmdshell (MSSQL) or UTL_FILE (Oracle) can escalate SQL injection to OS command execution
  • Authentication bypass — SAP user table manipulation to create backdoor administrative accounts

Attack Characteristics

Attribute Detail
Attack Vector Network — HTTP request to UDDI server endpoint
Authentication None required
Affected Component UDDI server in SAP NetWeaver J2EE Engine 7.40
Database Impact Read, write, delete SAP database content
Chaining potential High — SAP data access enables lateral movement

Discovery

Discovered and reported through SAP's security disclosure process; SAP released Security Note 2256591 with CVE assignment in February 2016. CISA's KEV addition in June 2022 confirmed active exploitation in the wild.

Exploitation Context

  • SAP targeting by nation-state actors: SAP systems are a documented target of advanced persistent threat groups seeking to steal business-critical data (financial projections, M&A plans, payroll data, intellectual property) or establish persistent footholds in enterprise networks; SQL injection provides direct data access without requiring authentication
  • SAP security patching lag: Enterprise SAP deployments often lag significantly behind SAP's patch cadence due to the complexity of testing security notes against customized SAP configurations; this creates long windows of exposure for published SAP vulnerabilities
  • Chaining with CVE-2016-2388: CVE-2016-2386 (SQL injection) and CVE-2016-2388 (information disclosure, added to CISA KEV same day) were frequently cited together; an attacker can use information disclosure to enumerate user accounts and internal configuration before leveraging the SQL injection for deeper access
  • CISA KEV (2022): Added June 2022 alongside CVE-2016-2388, reflecting continued exploitation against unpatched SAP NetWeaver instances in enterprise environments

Remediation

CISA BOD 22-01 Deadline: June 30, 2022. Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
  1. Apply SAP Security Note 2256591 — log in to the SAP Support Portal (launchpad.support.sap.com) and apply Security Note 2256591 to patch the UDDI server SQL injection. Verify the patch level with your SAP Basis team.

  2. Apply all current SAP Security Notes — run SAP's Security Patch Day notes for your NetWeaver version and apply all high-priority security corrections; SAP releases monthly security patches on the second Tuesday of each month.

  3. Restrict network access to SAP systems — SAP NetWeaver management interfaces and application servers should not be directly internet-accessible; place SAP systems behind firewalls with access limited to authorized user segments and administrative subnets.

  4. Use SAP's Vulnerability Assessment Tool — SAP provides tools (e.g., SAP Solution Manager's Security Optimization Service) that can scan for missing security notes and misconfigurations.

  5. Monitor SAP database access — enable database audit logging for SAP schema tables; alerts on unexpected query patterns (mass SELECT *, unexpected UNION operations) may indicate active exploitation attempts.

Key Details

PropertyValue
CVE ID CVE-2016-2386
Vendor / Product SAP — NetWeaver
NVD Published2016-02-16
NVD Last Modified2025-10-22
CVSS 3.1 Score9.8
CVSS 3.1 VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
SeverityCRITICAL
CWE CWE-89 — Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') find similar ↗
CISA KEV Added2022-06-09
CISA KEV Deadline2022-06-30
Known Ransomware Use No

CVSS 3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Required Action

CISA BOD 22-01 Deadline: 2022-06-30. Apply updates per vendor instructions.

Timeline

DateEvent
2016-02-16CVE-2016-2386 published by NVD; SAP Security Note 2256591 releases patch for UDDI Server SQL injection
2022-06-09Added to CISA Known Exploited Vulnerabilities catalog
2022-06-30CISA BOD 22-01 remediation deadline