CVE-2024-47171
MEDIUM 4.3CVSS 3.1Agnai vulnerable to Relative Path Traversal in Image Upload
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.
- Published
- 26 Sep 2024
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-22CWE-35
- Also known as
- GHSA-g54f-66mw-hv66
- Sources
- NVDJSONOSV GHSA-g54f-66mw-hv66JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | agnai | agnaicpe:2.3:a:agnai:agnai:*:*:*:*:*:*:*:* |
< 1.0.330 | 1.0.330 |
| OSV | npm | agnai | < 1.0.330 | 1.0.330 |
References
- 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://github.com/agnaistic/agnai/security/advisories/GHSA-g54f-66mw-hv66 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-47171 · ADVISORY
- https://github.com/agnaistic/agnai · PACKAGE
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 26 Sep 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 26 Sep 2024)