CVE-2025-58431 ZimaOS reads arbitrary files using localhost calls to File API Download

Medium 4.8 Published Updated

Attackers with localhost access can read arbitrary files as root via the File API Download endpoint in ZimaOS.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-58431?

CVE-2025-58431 is a medium-severity path traversal vulnerability in IceWhaleTech ZimaOS, published on 17 Sep 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

ZimaOS is a fork of CasaOS, an operating system for Zima devices and x86-64 systems with UEFI. In version 1.4.1 and earlier, the /v2_1/files/file/download endpoint allows file read from ANY USER who has access to localhost. File reads are performed AS ROOT.

Weakness: CWE-250

Which versions are affected by CVE-2025-58431?

It affects 1 product.

Products include Zimaspace Zimaos.

How do I fix CVE-2025-58431?

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

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

Sources

Also known as GHSA-vqrw-9v9m-6g87.

Is CVE-2025-58431 in your software?

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

Check your SBOMs for free