CVE-2025-6108 hansonwang99 Spring-Boot-In-Action File Upload ImageUploadService.java watermarkTest path traversal

Medium 5.3 Published Updated

Remote attackers can exploit a path traversal flaw in the image upload service 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-6108?

CVE-2025-6108 is a medium-severity path traversal vulnerability in hansonwang99 Spring-Boot-In-Action, published on 16 Jun 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A vulnerability was found in hansonwang99 Spring-Boot-In-Action up to 807fd37643aa774b94fd004cc3adbd29ca17e9aa. It has been declared as critical. Affected by this vulnerability is the function watermarkTest of the file /springbt_watermark/src/main/java/cn/codesheep/springbt_watermark/service/ImageUploadService.java of the component File Upload. The manipulation of the argument filename leads to path traversal. The attack can be launched 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. The vendor was contacted early about this disclosure but did not respond in any way.

Weakness: CWE-22

Which versions are affected by CVE-2025-6108?

How do I fix CVE-2025-6108?

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

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

Sources

Also known as GHSA-rx9p-3m56-fw89.

Is CVE-2025-6108 in your software?

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

Check your SBOMs for free