CVE-2024-5821 Local File Inclusion (LFI) in stitionai/devika

Medium 6.2 Published Updated

Attackers can read sensitive server files by exploiting file name correction logic in the Devika AI agent.

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-2024-5821?

CVE-2024-5821 is a medium-severity path traversal vulnerability in stitionai/devika, published on 3 Jul 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

The vulnerability allows an attacker to access sensitive files on the server by confusing the agent with incorrect file names. When a user requests the content of a file with a misspelled name, the agent attempts to correct the command and inadvertently reveals the content of the intended file, such as /etc/passwd. This can lead to unauthorized access to sensitive information and potential server compromise.

Weakness: CWE-22

Which versions are affected by CVE-2024-5821?

How do I fix CVE-2024-5821?

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

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

Sources

Also known as GHSA-f8j4-pwp4-c58m.

Is CVE-2024-5821 in your software?

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

Check your SBOMs for free