{"id":"CVE-2023-4760","published":"2023-09-21T07:35:35Z","modified":"2024-09-24T16:26:06Z","title":"Remote Code Execution in Eclipse RAP on Windows","vendor":"Eclipse Foundation","product":"Eclipse RAP","tier":"tail","description":{"text":"In Eclipse RAP versions from 3.0.0 up to and including 3.25.0, Remote Code Execution is possible on Windows when using the FileUpload component.\n\n\n\n\n\n\nThe reason for this is a not completely secure extraction of the file name in the FileUploadProcessor.stripFileName(String name) method. As soon as this finds a / in the path, everything before it is removed, but potentially \\ (backslashes) coming further back are kept.\n\nFor example, a file name such as /..\\..\\webapps\\shell.war can be used to upload a file to a Tomcat server under Windows, which is then saved as ..\\..\\webapps\\shell.war in its webapps directory and can then be executed.\n\n\n","provenance":"source","from":"CVE.org"},"cvss":{"score":7.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0125,"percentile":0.70115,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-23","name":"Relative Path Traversal"}],"references":[{"url":"https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/160","tags":[]},{"url":"https://github.com/eclipse-rap/org.eclipse.rap/pull/141","tags":[]}],"priority":{"score":19.3,"factors":[{"name":"EPSS percentile","points":14.02},{"name":"CVSS severity","points":5.32}]},"vendorSlug":"eclipse-foundation","affectedVersions":[{"vendor":"Eclipse Foundation","product":"Eclipse RAP","versions":[">= 3.0.0, <= 3.25.0"]}],"capec":[{"id":"CAPEC-154","name":"Resource Location Spoofing"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-24T16:25:22.581958Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2023-54607","exploited":false,"provenance":"source"}}