CVE-2025-4178 xiaowei1118 java_server File Upload API FoodController.java path traversal

Medium 5.3 Published Updated

Remote attackers can exploit a path traversal vulnerability in the File Upload API to read or modify arbitrary files on the server.

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-2025-4178?

CVE-2025-4178 is a medium-severity path traversal vulnerability in xiaowei1118 java_server, published on 1 May 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A vulnerability was found in xiaowei1118 java_server up to 11a5bac8f4ba1c17e4bc1b27cad6d24868500e3a on Windows and classified as critical. This issue affects some unknown processing of the file /src/main/java/com/changyu/foryou/controller/FoodController.java of the component File Upload API. The manipulation leads to path traversal. The attack may be initiated remotely. The exploit has been disclosed to the public and may be used. This product takes the approach of rolling releases to provide continious delivery. Therefore, version details for affected and updated releases are not available.

Weakness: CWE-22

Which versions are affected by CVE-2025-4178?

It affects 1 product.

Products include Xiaowei1118 Java Server.

How do I fix CVE-2025-4178?

No fix has been published for CVE-2025-4178 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-2025-4178 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-4178 exists.

Sources

Also known as GHSA-v3vg-hvj3-3m8h.

Is CVE-2025-4178 in your software?

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

Check your SBOMs for free