{"id":"CVE-2023-4760","state":"PUBLISHED","title":"Remote Code Execution in Eclipse RAP on Windows","description":"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","publishedAt":"2023-09-21T07:35:35.790Z","updatedAt":"2024-09-24T16:26:06.907Z","severity":{"score":7.6,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L","source":"eclipse"},"assigner":"eclipse","products":["Eclipse Foundation Eclipse RAP"],"affected":[{"vendor":"Eclipse Foundation","product":"Eclipse RAP","defaultStatus":"unaffected","versions":[{"version":"3.0.0","status":"affected","lessThanOrEqual":"3.25.0","versionType":"semver"}],"platforms":["Windows"]}],"references":["https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/160","https://github.com/eclipse-rap/org.eclipse.rap/pull/141"],"weaknesses":["CWE-22","CWE-23"],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/4xxx/CVE-2023-4760.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-4760","state":"PUBLISHED","datePublished":"2023-09-21T07:35:35.790Z","dateUpdated":"2024-09-24T16:26:06.907Z","assignerShortName":"eclipse","assignerOrgId":"e51fbebd-6053-4e49-959f-1b94eeb69a2c","dateReserved":"2023-09-04T16:06:47.588Z"},"containers":{"cna":{"title":"Remote Code Execution in Eclipse RAP on Windows","descriptions":[{"lang":"en","value":"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"}],"affected":[{"vendor":"Eclipse Foundation","product":"Eclipse RAP","defaultStatus":"unaffected","versions":[{"version":"3.0.0","status":"affected","lessThanOrEqual":"3.25.0","versionType":"semver"}],"platforms":["Windows"]}],"references":[{"url":"https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/160"},{"url":"https://github.com/eclipse-rap/org.eclipse.rap/pull/141"}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":7.6,"baseSeverity":"HIGH","confidentialityImpact":"LOW","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","description":"CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-23","description":"CWE-23 Relative Path Traversal","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"eclipse","orgId":"e51fbebd-6053-4e49-959f-1b94eeb69a2c","dateUpdated":"2023-09-21T07:35:35.790Z"},"datePublic":"2023-09-21T07:00:00.000Z","impacts":[{"capecId":"CAPEC-154","descriptions":[{"lang":"en","value":"CAPEC-154 Resource Location Spoofing"}]}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.1.0-dev"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/160","tags":["x_transferred"]},{"url":"https://github.com/eclipse-rap/org.eclipse.rap/pull/141","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T07:37:59.919Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-09-24T16:25:22.581958Z","id":"CVE-2023-4760","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-24T16:26:06.907Z"}}]}}}