CVE-2024-47171 Agnai vulnerable to Relative Path Traversal in Image Upload
MediumCVSS 4.3
EPSS 0.50%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| agnai | < 1.0.330 | 1.0.330 | Fixed |
| npm agnai(npm) | < 1.0.330 | 1.0.330 | Fixed |
| agnaistic agnai | = < 1.0.330 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm agnai(npm) | < 1.0.330 | 1.0.330 |
| agnaistic agnai | = < 1.0.330 | No fix listed |
| agnai | < 1.0.330 | 1.0.330 |
References
- https://github.com/agnaistic/agnai/security/advisories/GHSA-g54f-66mw-hv66 vendor-advisory
- https://github.com/agnaistic/agnai/blob/75abbd5b0f5e48ddecc805365cf1574d05ee1ce5/srv/api/character.ts#L140: patch
- https://github.com/agnaistic/agnai/blob/75abbd5b0f5e48ddecc805365cf1574d05ee1ce5/srv/api/upload.ts#L55 patch
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product