- 
    
Bug
 - 
    Resolution: Fixed
 - 
    
  P3                     
     - 
    11.0.11-oracle, 17, 18
 
- 
        b19
 - 
        x86_64
 - 
        windows_10
 - 
        Verified
 
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build | 
|---|---|---|---|---|---|---|
| JDK-8293058 | 17.0.6-oracle | Yoshiki Sato | P3 | Resolved | Fixed | b01 | 
| JDK-8286626 | 17.0.4 | Olga Mikhaltcova | P3 | Resolved | Fixed | b03 | 
| JDK-8293057 | 11.0.18-oracle | Yoshiki Sato | P3 | Resolved | Fixed | b01 | 
| JDK-8286806 | 11.0.16 | Olga Mikhaltcova | P3 | Resolved | Fixed | b03 | 
| JDK-8293059 | 8u361 | Yoshiki Sato | P3 | Resolved | Fixed | b01 | 
C:\Windows\SysWOW64\WScript.exe "MyVB.vbs" "C:\Program Files\Git\" "Test"
it's equal to:
new ProcessBuilder("C:\\Windows\\SysWOW64\\WScript.exe", "MyVB.vbs", "\"C:\\Program Files\\Git\\\"", "Test").start();
But the result of processing "\"C:\\Program Files\\Git\\\"" is
1) "C:\Program" and "Files\Git\" if jdk.lang.Process.allowAmbiguousCommands = true;
2) "\C:\Program" and "Files\Git\\\" if jdk.lang.Process.allowAmbiguousCommands = false.
The behavior was changed with JDK-8250568, CVE-2021-2161 (Bug 1951231 (CVE-2021-2161) - CVE-2021-2161 OpenJDK: Incorrect handling of partially quoted arguments in ProcessBuilder on Windows (Libraries, 8250568), https://bugzilla.redhat.com/show_bug.cgi?id=1951231 ).
During this security fix the restriction to the string ending with "\\\"" was added so now such a string is treated as unquoted even it begins with a quote.
- backported by
 - 
                    
JDK-8286626 Incorrect handling of quoted arguments in ProcessBuilder
-         
     - Resolved
 
 -         
 - 
                    
JDK-8286806 Incorrect handling of quoted arguments in ProcessBuilder
-         
     - Resolved
 
 -         
 - 
                    
JDK-8293057 Incorrect handling of quoted arguments in ProcessBuilder
-         
     - Resolved
 
 -         
 - 
                    
JDK-8293058 Incorrect handling of quoted arguments in ProcessBuilder
-         
     - Resolved
 
 -         
 - 
                    
JDK-8293059 Incorrect handling of quoted arguments in ProcessBuilder
-         
     - Resolved
 
 -         
 
- csr for
 - 
                    
JDK-8282989 Incorrect handling of quoted arguments in ProcessBuilder on Windows
-         
     - Closed
 
 -         
 
- relates to
 - 
                    
JDK-8285734 Unexpected Quotes in ProcessBuilder launched App
-         
     - Open
 
 -         
 
- links to
 - 
                    
        
        Commit
        openjdk/jdk11u-dev/c9d3291e
    
 - 
                    
        
        Commit
        openjdk/jdk17u-dev/b6404c83
    
 - 
                    
        
        Commit
        openjdk/jdk/897d6c0d
    
 - 
                    
        
        Review
        openjdk/jdk11u-dev/1040
    
 - 
                    
        
        Review
        openjdk/jdk17u-dev/386
    
 - 
                    
        
        Review
        openjdk/jdk/7504
    
 - 
                    
        
        Review
        openjdk/jdk/7709