CVE-2024-1961 Path Traversal leading to Arbitrary File Write and RCE in vertaai/modeldb

High 8.8 Published Updated

Attackers can write arbitrary files via path traversal in ModelDB, potentially achieving remote code execution by overwriting configuration 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-2024-1961?

CVE-2024-1961 is a high-severity path traversal vulnerability in vertaai/modeldb, published on 16 Apr 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

vertaai/modeldb is vulnerable to a path traversal attack due to improper sanitization of user-supplied file paths in its file upload functionality. Attackers can exploit this vulnerability to write arbitrary files anywhere in the file system by manipulating the 'artifact_path' parameter. This flaw can lead to Remote Code Execution (RCE) by overwriting critical files, such as the application's configuration file, especially when the application is run outside of Docker. The vulnerability is present in the NFSController.java and NFSService.java components of the application.

Weakness: CWE-22

Which versions are affected by CVE-2024-1961?

How do I fix CVE-2024-1961?

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

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

Sources

Also known as GHSA-j9q5-gh3m-3cf9.

Is CVE-2024-1961 in your software?

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

Check your SBOMs for free