CVE-2026-45403
Analyzed Analyzed - Analysis Complete
Symlink Arbitrary File Copy in AnythingLLM

Publication date: 2026-05-28

Last updated on: 2026-06-02

Assigner: GitHub, Inc.

Description
AnythingLLM is an application that turns pieces of content into context that any LLM can use as references during chatting. Prior to 1.13.0, the AnythingLLM agent filesystem copy tool validates only the top-level source and destination paths. The recursive copy helper then descends into child entries using fs.stat() and copies files with fs.copyFile() without validating each child or rejecting symlinks. Because both APIs follow symlinks, a symlink nested inside an allowed source directory can point outside the allowed filesystem root and cause outside file contents to be copied into an allowed destination as a regular file. This vulnerability is fixed in 1.13.0.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-05-28
Last Modified
2026-06-02
Generated
2026-06-19
AI Q&A
2026-05-29
EPSS Evaluated
2026-06-18
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
mintplexlabs anythingllm to 1.13.0 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-59 The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

The vulnerability exists in the AnythingLLM application prior to version 1.13.0, specifically in its filesystem copy tool. The tool only validates the top-level source and destination paths during a recursive copy operation. However, when copying child files and directories, it uses APIs that follow symbolic links (symlinks) without validating them. This means a symlink inside an allowed source directory can point to files outside the allowed filesystem root. As a result, files outside the permitted area can be copied into the destination as regular files, potentially exposing unauthorized content.

Impact Analysis

This vulnerability can lead to unauthorized copying of files from outside the intended source directory. An attacker or user with access to create symlinks could exploit this to copy sensitive or restricted files into allowed destinations, potentially exposing confidential information or bypassing access controls.

Mitigation Strategies

To mitigate this vulnerability, upgrade the AnythingLLM application to version 1.13.0 or later, where the issue with symlink validation during recursive copy has been fixed.

Compliance Impact

The vulnerability allows local file disclosure by copying files outside the intended filesystem root into allowed destinations due to improper handling of symbolic links.

Such unauthorized disclosure of files could potentially lead to exposure of sensitive or personal data, which may impact compliance with data protection regulations like GDPR or HIPAA if the disclosed files contain regulated information.

However, the CVE description and resources do not explicitly discuss compliance impacts or regulatory considerations.

Detection Guidance

This vulnerability involves the AnythingLLM filesystem copy tool improperly handling nested symbolic links during recursive copy operations, allowing files outside the allowed directory to be copied. Detection involves identifying if recursive copy operations are following symlinks inside allowed directories.

To detect this on your system, you can manually check for symbolic links within the source directories used by AnythingLLM's copy tool that point outside the allowed filesystem root.

Suggested commands to find such symlinks include:

  • Use the find command to locate symlinks inside the source directory: `find /path/to/source -type l -ls`
  • For each symlink found, check its target path with: `readlink -f /path/to/symlink` and verify if it points outside the allowed root.
  • You can script this check to automate detection of symlinks pointing outside the allowed directory.

Additionally, monitoring file copy operations or auditing logs for unexpected files appearing in destination directories may help detect exploitation attempts.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-45403. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart