Automated Threat Modeling

Brief Summary: CVE-2026-40128 — Critical Unauthenticated Path Traversal in SAP NetWeaver AS Java Web Container

A short review of CVE-2026-40128, a CVSS 9.0 unauthenticated path traversal vulnerability in the SAP NetWeaver Application Server Java Web Container. Crafted HTTP logon requests can abuse file inclusion, with potential for data disclosure, data modification, and denial of service.

CVE Analysis

8 min read

ZeroPath CVE Analysis
ZeroPath CVE Analysis

2026-06-08

Brief Summary: CVE-2026-40128 — Critical Unauthenticated Path Traversal in SAP NetWeaver AS Java Web Container
Experimental AI-Generated Content

This CVE analysis is an experimental publication that is completely AI-generated. The content may contain errors or inaccuracies and is subject to change as more information becomes available. We are continuously refining our process.

If you have feedback, questions, or notice any errors, please reach out to us.

[email protected]

Introduction

An unauthenticated path traversal flaw in the SAP NetWeaver Application Server Java Web Container lets any network-reachable attacker manipulate file inclusion parameters in HTTP logon requests. A successful attack can read sensitive files, modify data, or disrupt system availability. With a CVSS score of 9.0 and no authentication requirement, CVE-2026-40128 lands squarely in a category of SAP NetWeaver Java vulnerabilities that ransomware operators and state-sponsored threat groups have historically exploited quickly.

Technical Information

Root Cause: CWE-35 Path Traversal via Collapse Bypass

CVE-2026-40128 is classified under CWE-35: Path Traversal: '.../...//'. This weakness class depends on a subtle flaw in sequential input sanitization. When a security filter removes occurrences of "../" one pass at a time, the crafted string '.../...//' collapses into the canonical "../" traversal sequence after the first stripping pass. CWE-35 is formally linked to CWE-182 (Collapse of Data into Unsafe Value), in which the sanitization logic itself produces the dangerous output.

The vulnerability sits in the Web Container component of SAP NetWeaver Application Server Java. Because the Web Container handles HTTP request processing, including authentication and logon flows, it is a foundational component of the SAP Java stack.

Attack Flow

Based on the NVD description and the mechanics of CWE-35, exploitation proceeds in four steps:

  1. The attacker sends a crafted, unauthenticated HTTP request to the logon endpoint of the SAP NetWeaver AS Java Web Container. No credentials, session tokens, or prior access are required.

  2. The attacker injects sequences such as '.../...//' (or URL-encoded variants) into the logon request parameters that control file inclusion. If the Web Container's input validation relies on sequential stripping of "../", it fails to neutralize the collapsed traversal.

  3. After the sanitization routine processes the input, the resulting path resolves to a location outside the restricted application directory. The attacker can target arbitrary files on the local filesystem.

  4. The Web Container processes the traversed file rather than simply serving its raw contents, and this processing step is what raises the impact beyond pure information disclosure. Depending on the file targeted, the attacker can:

    • view sensitive information such as configuration files, credentials, or application data (confidentiality impact)
    • modify data through the file processing mechanism (integrity impact)
    • render system components unavailable by targeting files critical to system operation (availability impact)

A single unauthenticated HTTP request can therefore compromise all three legs of the CIA triad.

Comparison with Prior SAP NetWeaver Java Path Traversal Vulnerabilities

The table below places CVE-2026-40128 alongside earlier SAP NetWeaver Java path traversal and access control vulnerabilities:

CVEComponentWeaknessCVSSExploitation Status
CVE-2020-6286LM Configuration WizardPath Traversal10.0Exploited in the wild
CVE-2025-31324Visual Composer Metadata UploaderMissing Auth + Deserialization10.0Actively exploited by APT and ransomware groups
CVE-2026-40128Web Container (HTTP Logon)Path Traversal (CWE-35) + File Inclusion9.0No confirmed exploitation as of publication

CVE-2020-6286 used path traversal to download files (confidentiality only). CVE-2025-31324 combined missing authorization with deserialization for remote code execution. CVE-2026-40128 sits between the two. Its combination of path traversal and file inclusion enables viewing, modification, and denial of service, but based on available information it does not directly provide remote code execution.

Information Gaps

Public sources did not provide these technical details at the time of analysis:

  • Specific affected version ranges of SAP NetWeaver AS Java
  • The full CVSS vector string (the NVD record had not yet been enriched)
  • The exact file inclusion parameters that can be manipulated
  • Detailed exploit prerequisites beyond unauthenticated network access

Affected Systems and Versions

The affected component is the Web Container of SAP NetWeaver Application Server Java. Neither the NVD entry nor publicly available SAP advisories disclosed specific version ranges at the time of publication. SAP Security Note 3727078, available through the SAP Support Portal, contains the authoritative list of affected versions.

The Web Container is a core component of the SAP NetWeaver Java stack. Onapsis Research Labs has identified more than 10,000 internet-facing SAP applications. Visual Composer, a related but less fundamental Java component, was estimated to be deployed in 50% to 70% of SAP Java systems. As a foundational middleware layer, the Web Container likely has a comparable or larger deployment footprint.

Vendor Security History

SAP's NetWeaver Java stack has a documented pattern of path traversal and access control vulnerabilities:

CVE-2020-6286 (CVSS 10.0): A path traversal vulnerability in the LM Configuration Wizard of SAP NetWeaver AS Java let unauthenticated attackers download arbitrary files. It was widely exploited and prompted US-CERT alerts.

CVE-2025-31324 (CVSS 10.0): Multiple threat actor groups actively exploited a missing authorization check in the Visual Composer Metadata Uploader as a zero day. They included Russian ransomware operators (BianLian, RansomEXX/Storm-2460), the Qilin ransomware-as-a-service operation, and the China-nexus APT group Earth Lamia. Exploitation began approximately one month before SAP's public disclosure.

SAP Note 3476549: A directory traversal vulnerability in SAP NetWeaver AS Java affecting specific URLs starting with /scheduler/ui/js/.

CVE-2025-42937: A critical path traversal vulnerability in the SAP Print Service that enables file disclosure and credential theft.

Path traversal keeps recurring in the NetWeaver Java stack. That recurrence suggests the Web Container's file handling and input validation architecture has systemic weaknesses that extend beyond individual point patches.

SAP's monthly Security Patch Day program has consistently included critical-severity notes in 2026. March 2026 brought 15 new notes, 2 of them critical. April 2026 had 19 new notes with 1 critical, and May 2026 included 15 notes. CVE-2026-40128 was released as part of the June 9, 2026 patch day.

References

Detect & fix
what others miss

Works with
  • GitHub
  • GitLab
  • Bitbucket
  • Azure DevOps Services
  • Gerrit
  • CVS
  • Jira
  • Linear
  • Slack
  • Security Compass
Explore integrations
Security magnifying glass visualization