Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. agnai
  4. ›
  5. CVE-2024-47171

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

September 26, 2024

A vulnerability has been discovered in Agnai that 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
  • self-hosting that is not publicly exposed

References

  • github.com/advisories/GHSA-g54f-66mw-hv66
  • github.com/agnaistic/agnai
  • github.com/agnaistic/agnai/blob/75abbd5b0f5e48ddecc805365cf1574d05ee1ce5/srv/api/character.ts
  • github.com/agnaistic/agnai/blob/75abbd5b0f5e48ddecc805365cf1574d05ee1ce5/srv/api/upload.ts
  • github.com/agnaistic/agnai/security/advisories/GHSA-g54f-66mw-hv66
  • nvd.nist.gov/vuln/detail/CVE-2024-47171

Code Behaviors & Features

Detect and mitigate CVE-2024-47171 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.0.330

Fixed versions

  • 1.0.330

Solution

Upgrade to version 1.0.330 or above.

Impact 4.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-35: Path Traversal: '.../...//'

Source file

npm/agnai/CVE-2024-47171.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:07 +0000.