CVE-2024-47169 Agnai vulnerable to Remote Code Execution via JS Upload using Directory Traversal

High 8.8 Published Updated

Attackers can upload malicious JavaScript files to arbitrary server locations via directory traversal, leading to remote code execution and server compromise.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-47169?

CVE-2024-47169 is a high-severity vulnerability in agnaistic agnai, published on 26 Sep 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Agnai is an artificial-intelligence-agnostic multi-user, mult-bot roleplaying chat system. A vulnerability in versions prior to 1.0.330 permits attackers to upload arbitrary files to attacker-chosen locations on the server, including JavaScript, enabling the execution of commands within those files. This issue could result in unauthorized access, full server compromise, data leakage, and other critical security threats. This does not affect `agnai.chat`, installations using S3-compatible storage, or self-hosting that is not publicly exposed. This does affect publicly hosted installs without S3-compatible storage. Version 1.0.330 fixes this vulnerability.

Weakness: CWE-434, CWE-35

Which versions are affected by CVE-2024-47169?

2 open source packages ship an affected version, including agnai. It affects 1 product.

PackageAffectedFixed in
agnai npmAll versions1.0.330
agnai npmAll versions1.0.330

Products include Agnai Agnai.

How do I fix CVE-2024-47169?

Upgrade agnai to 1.0.330 or later.

Is CVE-2024-47169 being exploited?

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

Sources

Also known as GHSA-mpch-89gm-hm83.

Is CVE-2024-47169 in your software?

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

Check your SBOMs for free