CVE-2023-4760 Remote Code Execution in Eclipse RAP on Windows

High 7.6 Published Updated

Attackers can achieve remote code execution on Windows by exploiting a path traversal flaw in the FileUpload component to upload malicious files.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2023-4760?

CVE-2023-4760 is a high-severity path traversal vulnerability in Eclipse RAP, published on 21 Sep 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

The 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.

For 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.

Weakness: CWE-23, CWE-22

Which versions are affected by CVE-2023-4760?

It affects 1 product.

Products include Eclipse Remote Application Platform.

How do I fix CVE-2023-4760?

No fix has been published for CVE-2023-4760 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2023-4760 being exploited?

There is no known exploitation of CVE-2023-4760 in the wild and no public exploit code.

Sources

Also known as GHSA-7ch5-jhg9-j5p5.

Is CVE-2023-4760 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free