# CVE-2024-47171: Agnai vulnerable to Relative Path Traversal in Image Upload

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.50%, higher than 44% of CVEs (2026-12-01)
- Published: 2024-09-26T17:21:52.646Z
- Modified: 2026-06-17T07:56:40.117Z
- Also known as: GHSA-g54f-66mw-hv66
- Weaknesses: CWE-22, CWE-35
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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 image files at attacker-chosen location on the server. This issue can lead to image file uploads to unauthorized or unintended directories, including overwriting of existing images which may be used for defacement. This does not affect `agnai.chat`, installations using S3-compatible storage, or self-hosting that is not publicly exposed. Version 1.0.330 fixes this vulnerability.

(As written by CVE List.)

## Affected

- agnaistic agnai: < 1.0.330
- agnai (npm): before 1.0.330
- agnai agnai: before 1.0.330

## Every score

- GitHub_M: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 4.3 Low `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/agnaistic/agnai/security/advisories/GHSA-g54f-66mw-hv66> (vendor-advisory, web)
- <https://github.com/agnaistic/agnai/blob/75abbd5b0f5e48ddecc805365cf1574d05ee1ce5/srv/api/character.ts#L140:> (patch, web)
- <https://github.com/agnaistic/agnai/blob/75abbd5b0f5e48ddecc805365cf1574d05ee1ce5/srv/api/upload.ts#L55> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-47171> (advisory)
- <https://github.com/agnaistic/agnai> (package)

## Sources

- CVE List: [CVE-2024-47171](https://www.cve.org/CVERecord?id=CVE-2024-47171), CVE Terms of Use, modified 2024-09-26
- GitHub Advisory Database: [GHSA-g54f-66mw-hv66](https://github.com/advisories/GHSA-g54f-66mw-hv66), CC-BY-4.0, modified 2024-09-26
- NVD: [CVE-2024-47171](https://nvd.nist.gov/vuln/detail/CVE-2024-47171), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-47171 · Whole record: https://cve.day/CVE-2024-47171.json · Rebuilt by cve.day 2026-11-25T22:58:45.803Z
