CVE-2026-8754: AstrBot File Upload Vulnerability Vulnerability

LOW
Advisory Identifier: GHSA-f63h-wc26-pmvc
CVSS 6.3
CWE-22
Published
Advisory Summary

CVE-2026-8754 is a LOW (CVSS 6.3) file upload vulnerability vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting AstrBot libraries in the PyPI ecosystem. The issue involves file upload vulnerability in the function post_file of the file astrbot/dashboard/routes/chat.py. Remediation is available by upgrading affected packages to version 4.23.6.

CVE-2026-8754 at a Glance

CVE Identifier CVE-2026-8754
GHSA Identifier GHSA-f63h-wc26-pmvc
Severity LOW
CVSS v3.1 Base Score 6.3
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product AstrBot
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 6.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2026-8754

To remediate this vulnerability, upgrade all affected AstrBot dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

AstrBot fixed: 4.23.6
pip install AstrBot>=4.23.6
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show AstrBot

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-8754, inspect your installed packages using pip:

pip show AstrBot

Analyze the terminal output to locate any version of AstrBot in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.23.6), your application is affected.

Note: The pip show AstrBot command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In AstrBot, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A vulnerability was detected in AstrBotDevs AstrBot up to 4.23.5. Impacted is the function post_file of the file astrbot/dashboard/routes/chat.py of the component File Upload Handler. The manipulation of the argument filename results in path traversal. It is possible to launch the attack remotely. The exploit is now public and may be used. Upgrading to version 4.23.6 is recommended to address this issue. The patch is identified as aaec41e5054569ceaa1113593a34da7568e2d211. You should upgrade the affected component.

CVE-2026-8754 Affected AstrBot Versions

1 component(s)
Fixed Versions:
4.23.6
Product / Package Ecosystem Affected Versions Fixed Version
AstrBot
PyPI
< 4.23.6
4.23.6

References

Frequently Asked Questions

What is CVE-2026-8754?
CVE-2026-8754 is a security vulnerability in AstrBot involving File upload vulnerability in the function post_file of the file astrbot/dashboard/routes/chat.py under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which AstrBot versions are affected?
Affected versions include releases prior to 4.23.6 across affected packages: AstrBot.
What version fixes CVE-2026-8754?
Upgrading to 4.23.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is AstrBot affected?
Yes, AstrBot is affected in releases prior to 4.23.6. Upgrade your dependency to 4.23.6 or later.
What is the CVSS score of CVE-2026-8754?
CVE-2026-8754 has a CVSS v3.1 base score of 6.3 (LOW) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2026-8754?
CVE-2026-8754 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check PyPI dependencies for CVE-2026-8754?
Run the dependency tree command: 'pip show AstrBot'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-f63h-wc26-pmvc",
  "modified" : "2026-05-23T00:10:04Z",
  "published" : "2026-05-17T15:31:42Z",
  "aliases" : [ "CVE-2026-8754" ],
  "summary" : "AstrBot: File upload vulnerability in the function post_file of the file astrbot/dashboard/routes/chat.py",
  "details" : "A vulnerability was detected in AstrBotDevs AstrBot up to 4.23.5. Impacted is the function post_file of the file astrbot/dashboard/routes/chat.py of the component File Upload Handler. The manipulation of the argument filename results in path traversal. It is possible to launch the attack remotely. The exploit is now public and may be used. Upgrading to version 4.23.6 is recommended to address this issue. The patch is identified as aaec41e5054569ceaa1113593a34da7568e2d211. You should upgrade the affected component.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "AstrBot"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.23.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-8754"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/AstrBotDevs/AstrBot/commit/aaec41e5054569ceaa1113593a34da7568e2d211"
  }, {
    "type" : "WEB",
    "url" : "https://gist.github.com/YLChen-007/054415c2b63e58813328bc879a90c504"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/AstrBotDevs/AstrBot"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/AstrBotDevs/AstrBot/releases/tag/v4.23.6"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/submit/811172"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/vuln/364381"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/vuln/364381/cti"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-23T00:10:04Z",
    "nvd_published_at" : "2026-05-17T13:16:46Z"
  }
}