HIGH 8.6

CVE-2026-55418: FastGPT Authorization Bypass Allows Unauthorized File Access Across Teams

FastGPT, an open-source AI knowledge base platform, contains a critical authorization flaw that allows attackers to read files belonging to other teams. Two file handlers in versions before v4.15.0-beta5 fail to validate that S3 object keys belong to the requesting user's team. An attacker can bypass these checks by supplying another team's key through the chat-file presign or dataset preview endpoints, gaining unauthorized access to sensitive data. The vulnerability does not require authentication and affects all instances without the fix.

Source data · NVD / CISA · public domain

CVSS
3.1 · 8.6 HIGH · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
Weaknesses (CWE)
CWE-639
Affected products
0 configuration(s)
Published / Modified
2026-07-07 / 2026-07-09

NVD description (verbatim)

FastGPT is an open source AI knowledge base platform. Prior to v4.15.0-beta5, two FastGPT file handlers authorize an unrelated resource and then sign or read an S3 object using a key taken directly from the request, without checking that the key belongs to the caller's team. Because S3 object keys are global within the bucket and carry the tenant id only as a path segment, an attacker can supply another team's key and obtain its file contents through the chat-file presign endpoint or dataset preview endpoint. This issue is fixed in version v4.15.0-beta5.

4 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

The vulnerability stems from authorization logic that decouples resource verification from S3 object access. When processing requests to presign or preview files, FastGPT retrieves and validates an S3 resource reference but then uses an S3 key taken directly from the request parameter without re-verifying ownership. Because S3 keys are globally scoped within the bucket and only carry tenant identity as a path component, an unauthenticated or cross-tenant attacker can supply any valid S3 key and trigger legitimate file operations on unowned objects. This is classified as CWE-639 (Authorization Bypass Through User-Controlled Key), a authorization-by-reference flaw. The attack surface spans two endpoints: the chat-file presign handler (which generates signed URLs) and the dataset preview handler (which reads file contents directly).

Business impact

Unauthorized disclosure of confidential team data, including training datasets, proprietary documents, and chat histories stored in FastGPT instances. Multi-tenant deployments face the highest risk, as attackers can systematically enumerate and exfiltrate data from all teams within a single bucket. This compromises data privacy, regulatory compliance (GDPR, HIPAA, etc.), and customer trust. Organizations relying on FastGPT for sensitive knowledge management face potential notification obligations and remediation costs.

Affected systems

All FastGPT instances running versions prior to v4.15.0-beta5 are vulnerable. The impact is most severe in multi-tenant environments where multiple teams or organizations share the same S3 bucket. Single-tenant deployments with private S3 buckets face reduced but non-zero risk if bucket policies or IAM roles are misconfigured. Both the chat-file presign and dataset preview endpoints are affected.

Exploitability

Exploitation requires no authentication, no user interaction, and no special network access—only the ability to make HTTP requests to the FastGPT instance. An attacker must know or guess valid S3 object keys belonging to target teams; in practice, keys often follow predictable naming conventions (e.g., team-id/file-hash) or can be inferred from error messages or logs. The attack is trivial to automate and scale. CVSS 8.6 (HIGH) reflects the combination of network-based unauthenticated access, low attack complexity, and high confidentiality impact.

Remediation

Update FastGPT to v4.15.0-beta5 or later. This version implements proper ownership validation, ensuring that S3 keys are checked against the caller's team identifier before any presign or read operation. For instances unable to upgrade immediately, restrict S3 bucket access policies to the FastGPT service role and disable public or cross-account access. Monitor access logs for unusual key patterns or cross-team requests.

Patch guidance

Deploy v4.15.0-beta5 or a later stable release. Verify the patched version is running by checking the application version endpoint or build metadata. Test the patch in a staging environment to confirm file access is properly scoped to the requesting team. After upgrade, audit S3 bucket policies and IAM roles to ensure no overly permissive access remains. Restart all FastGPT services to ensure the fix is active.

Detection guidance

Look for HTTP requests to /chat-file/presign or dataset preview endpoints with S3 keys that do not match the requesting team's ID in the path. Monitor S3 access logs for GetObject or ListObject operations initiated by the FastGPT service role on keys from multiple teams in a short time window. Check audit logs for failed authorization events if FastGPT logs such events. Alert on any presign request where the response key differs from the request key, indicating a potential authorization bypass.

Why prioritize this

This vulnerability combines unauthenticated remote access, zero attack complexity, and guaranteed confidentiality impact across multiple endpoints. Multi-tenant FastGPT deployments handling sensitive data should treat this as critical and prioritize patching immediately. Even single-tenant instances should update within days, as the fix is stable and the attack surface is well-defined.

Risk score, explained

CVSS 8.6 reflects a HIGH-severity vulnerability: Network-accessible (AV:N), low complexity (AC:L), no privileges required (PR:N), scope changed (S:C—cross-tenant impact), and high confidentiality loss (C:H). Integrity and availability are not impacted because the vulnerability only permits reading, not modifying or deleting files. The HIGH rating appropriately captures the severity of unauthorized data disclosure across team boundaries in multi-tenant systems.

Frequently asked questions

Can an attacker read files from any team, or only teams on the same FastGPT instance?

An attacker can read files from any team within the same S3 bucket. In single-bucket multi-tenant deployments, this means any team's files are at risk. In architectures where teams use separate S3 buckets, the vulnerability scope is limited to the bucket of the FastGPT instance being attacked.

Do we need authentication to exploit this vulnerability?

No. The vulnerability allows unauthenticated access. An attacker does not need to log in or possess valid credentials; they only need to make HTTP requests to the affected endpoints and supply a valid S3 key from another team.

What should we do if we cannot update to v4.15.0-beta5 immediately?

Restrict S3 bucket policies to allow only the FastGPT service role to access objects, and disable any public or cross-account access. Monitor S3 and FastGPT access logs for suspicious cross-team key requests. Segregate sensitive data into separate S3 buckets if possible. Plan an upgrade within days, as this is a high-priority fix.

How do we know if we've been exploited?

Review S3 access logs for GetObject calls on keys belonging to teams other than the one making the API request. Check FastGPT request logs for presign or preview requests with cross-team key patterns. If you have detailed audit logging, search for authorization bypass attempts. Consider scanning S3 bucket access patterns for anomalies post-publication of this CVE.

This analysis is based on the CVE description and CVSS vector as published. Organizations should verify patch availability and compatibility with their specific FastGPT deployment before applying updates. S3 bucket configuration, IAM policies, and network access controls will affect actual risk; assess these separately. This explainer does not constitute security advice for your specific environment; consult your security team or the FastGPT project maintainers for guidance tailored to your deployment. Source: NVD (public-domain), retrieved 2026-08-16. Analysis generated by SEC.co (claude-haiku-4-5).