Vulnerability · Published Sep 26, 2024 · Assigned by GitHub_M

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

High 8.8

In plain English

A high-severity unrestricted file upload in agnai from agnaistic. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 56% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.8High
Exploit odds (30 days)0.8%top 43.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmagnai1.0.330GHSA-mpch-89gm-hm83

Affected products (as reported)

VendorProductVersions
agnaistic agnai < 1.0.330

Weakness: CWE-35, CWE-434 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References