{"id":"CVE-2024-47171","published":"2024-09-26T17:21:52Z","modified":"2024-09-26T17:53:23Z","title":"Agnai vulnerable to Relative Path Traversal in Image Upload","vendor":"agnaistic","product":"agnai","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0075,"percentile":0.51131,"provenance":"source"},"cwes":[{"id":"CWE-35","name":"Path Traversal: '.../...//'"}],"references":[{"url":"https://github.com/agnaistic/agnai/security/advisories/GHSA-g54f-66mw-hv66","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/agnaistic/agnai/blob/75abbd5b0f5e48ddecc805365cf1574d05ee1ce5/srv/api/character.ts#L140:","tags":["x_refsource_MISC"]},{"url":"https://github.com/agnaistic/agnai/blob/75abbd5b0f5e48ddecc805365cf1574d05ee1ce5/srv/api/upload.ts#L55","tags":["x_refsource_MISC"]}],"priority":{"score":13.2,"factors":[{"name":"EPSS percentile","points":10.23},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"agnaistic","affectedVersions":[{"vendor":"agnaistic","product":"agnai","versions":["< 1.0.330"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-26T17:50:57.850067Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"agnai","vulnerableRanges":["<1.0.330"],"patched":["1.0.330"],"from":["GHSA-g54f-66mw-hv66"],"provenance":"source"}],"summary":{"text":"The Agnai roleplaying chat system (product agnai, vendor agnaistic) has a relative path traversal flaw in its image upload handling, which lets uploads be written to attacker-chosen locations on the server. An attacker with network access and low-privilege authenticated access can upload image files to unauthorized or unintended directories, including overwriting existing images for defacement, with no user interaction required; the issue does not affect agnai.chat, S3-compatible storage setups, or self-hosted instances that are not publicly exposed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:58:46Z"},"euvd":{"id":"EUVD-2024-2790","exploited":false,"provenance":"source"}}