Skip to main content

FastGPT CVE-2026-42344

MEDIUM
Time-of-check Time-of-use (TOCTOU) Race Condition (CWE-367)
2026-05-08 GitHub_M
6.3
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Authenticate to FastGPT with low-privilege account
  2. Delivery
    Configure HTTP tool pointing to attacker-controlled domain
  3. Exploit
    DNS resolves to public IP, passes isInternalAddress() check
  4. Install
    Attacker rotates DNS record to internal IP before TTL expires
  5. C2
    FastGPT re-resolves hostname for actual HTTP fetch
  6. Execute
    Request hits internal service
  7. Impact
    Internal service response exfiltrated to attacker

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture TOCTOU prevention
Exploitation Conditions

The attacker must hold a low-privilege authenticated session in FastGPT (PR:L per CVSS vector) with permission to configure or trigger HTTP-based tool integrations or fetch operations that pass through the isInternalAddress() guard in packages/service/common/system/utils.ts. The attacker must additionally own a domain and control its authoritative DNS server, enabling them to set TTLs as low as 0 and switch A/AAAA records between the validation and fetch phases. Exploitation is limited by: (1) mandatory authenticated account in FastGPT - unauthenticated external users cannot trigger this path; (2) requirement to own and operate a controlled DNS server capable of rapid record switching; (3) inherent timing non-determinism making the race window unreliable and preventing automated mass exploitation (SSVC Automatable: no); and (4) the attack's usefulness being proportional to what internal services the FastGPT server can reach - isolated deployments with no sensitive internal neighbors have reduced blast radius.

Impact

The provided CVSS 3.1 vector (AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N, score 6.3) is internally consistent and accurately models the attack constraints: AC:H reflects the DNS timing requirement and the necessity of controlling an authoritative DNS server; PR:L confirms this is an authenticated attack, not unauthenticated; and S:C signals that exploitation escapes FastGPT's own trust boundary into internal network services. EPSS at 0.03% (8th percentile) shows negligible current exploitation, consistent with SSVC's 'Automatable: no' - the DNS race window makes scripted mass exploitation impractical. SSVC also rates exploitation as 'poc,' confirming exploit code exists, which elevates risk above purely theoretical. The absence of any vendor patch is the primary concern: organizations must rely entirely on compensating controls. The combination of no KEV listing, low EPSS, AC:H, and PR:L places this as a realistic but operationally constrained threat - highest priority for organizations running FastGPT with internet-accessible HTTP tool integrations or in environments where internal metadata services (e.g., AWS IMDS) are reachable from the FastGPT server.

Exploit ScenarioDerived

An authenticated FastGPT user configures an HTTP tool integration pointing to an attacker-controlled domain with a near-zero DNS TTL. The attacker's authoritative DNS server initially resolves the domain to a public IP, which passes the isInternalAddress() check; the attacker immediately rotates the record to an internal target (e.g., 192.168.1.1 or the AWS IMDS endpoint 169.254.169.254). When FastGPT re-resolves the hostname for the actual HTTP fetch, it connects to the internal service and returns the response - potentially cloud credentials, internal API data, or sensitive configuration - to the attacker. A proof-of-concept exists per SSVC assessment data.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 23, 2026

DNS rebinding in FastGPT's isInternalAddress() function enables authenticated low-privilege attackers to perform server-side request forgery (SSRF) against internal network resources by exploiting a TOCTOU race between hostname validation and the actual HTTP fetch. All versions through 4.14.11 are affected, no vendor patch exists at time of publication, and SSVC data confirms a proof-of-concept exists, though EPSS at 0.03% (8th percentile) reflects negligible current exploitation activity. The Scope:Changed CVSS metric confirms that successful exploitation reaches beyond FastGPT itself into adjacent internal services.

RemediationAI

No vendor-released patch has been identified at time of analysis - the advisory explicitly states no publicly available fix exists for versions 4.14.11 and prior. Organizations should monitor https://github.com/labring/FastGPT/security/advisories/GHSA-cc8x-jrqv-hmwh for patch releases. As compensating controls: implement network-level egress filtering on the FastGPT server host to block all outbound connections to RFC-1918 ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), loopback (127.0.0.0/8), and link-local addresses (169.254.0.0/16) at the firewall or OS level - this compensates for the application-layer bypass and is the most effective single control, though it may break legitimate internal integrations. Restrict the FastGPT 'HTTP tool integration' or equivalent fetch features to users with elevated trust levels to reduce the PR:L attack surface. Consider deploying FastGPT in a network segment with no direct route to sensitive internal services such as cloud instance metadata endpoints. None of these controls fix the underlying TOCTOU flaw and should be treated as temporary mitigations pending a vendor patch.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

FastGPT is an open-source AI Agent building platform by labring (CPE: cpe:2.3:a:labring:fastgpt:*:*:*:*:*:*:*:*) that supports configurable HTTP-based tool integrations. The vulnerable function isInternalAddress() in packages/service/common/system/utils.ts uses Node.js dns.resolve4() and dns.resolve6() to resolve a user-supplied hostname, checks the returned IPs against private/RFC-1918 address ranges, and then issues the actual HTTP fetch in a separate call that triggers a fresh DNS resolution. This is a textbook CWE-367 (Time-of-Check Time-of-Use Race Condition) applied to DNS: because the guard and the fetch are decoupled resolution events, an attacker who controls an authoritative DNS server can serve a public IP during the check phase, then immediately flip the record to an internal address (e.g., 192.168.x.x, 169.254.169.254) for the fetch phase, bypassing the private-range guard entirely. DNS TTLs as low as 0 seconds make the timing window achievable.

Know when Fastgpt gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 6.3 MEDIUM
AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
vuln.today AI 6.3 MEDIUM

DNS rebinding requires attacker-controlled DNS infrastructure (AC:H) and authenticated FastGPT access (PR:L); scope changes to internal systems (S:C) with data-only disclosure impact (C:H, I:N, A:N).

3.1 AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
4.0 AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

DescriptionCVE.org

FastGPT is an AI Agent building platform. In versions 4.14.11 and prior, FastGPT's isInternalAddress() function in packages/service/common/system/utils.ts is vulnerable to DNS rebinding (TOCTOU - Time-of-Check to Time-of-Use). The function resolves the hostname via dns.resolve4()/dns.resolve6() and checks resolved IPs against private ranges, but the actual HTTP request happens in a separate call with a new DNS resolution, allowing the DNS record to change between validation and fetch. At time of publication, there are no publicly available patches.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Prevalence
Low
niche open-source AI agent builder, limited broad enterprise footprint
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)CVE.org

cpe:2.3:a:labring:fastgpt:*:*:*:*:*:*:*:*
CVE-2025-52552 MEDIUM POC
6.1 Jun 21

FastGPT is an AI Agent building platform. Prior to version 4.9.12, the LastRoute Parameter on login page is vulnerable t

CVE-2026-34162 CRITICAL
10.0 Mar 31

Unauthenticated HTTP proxy abuse in FastGPT (AI Agent platform) prior to v4.14.9.5 allows remote attackers to relay arbi

CVE-2026-42302 CRITICAL
9.8 May 08

Remote code execution in FastGPT's agent-sandbox component (versions 4.14.10 through 4.14.12) lets any network-adjacent,

CVE-2026-40351 CRITICAL
9.8 Apr 17

NoSQL injection in FastGPT <4.14.9.5 password authentication allows unauthenticated remote attackers to bypass login con

CVE-2026-68929 CRITICAL
9.3 Aug 27

Channel hijack and denial of service in FastGPT (labring/FastGPT) before 4.15.2 lets an unauthenticated remote attacker

CVE-2026-50562 CRITICAL
9.3 Jul 15

GitHub Actions artifact-poisoning (pwn request) in labring/FastGPT allows an external attacker who opens a pull request

CVE-2026-61684 HIGH
8.8 Jul 15

Authentication bypass in FastGPT 4.15.0-beta4 lets unauthenticated remote attackers forge JWTs and access internal plugi

CVE-2026-40352 HIGH
8.8 Apr 17

NoSQL injection in FastGPT versions before 4.14.9.5 allows authenticated attackers to bypass password verification on th

CVE-2026-33075 HIGH
8.8 Mar 20

FastGPT versions 4.14.8.3 and below contain a critical arbitrary code execution vulnerability in the fastgpt-preview-ima

CVE-2026-55418 HIGH
8.6 Jul 07

Cross-tenant file disclosure in FastGPT prior to v4.15.0-beta5 allows an attacker to read another team's stored files by

CVE-2026-61644 HIGH
7.7 Jul 15

Cross-tenant data disclosure in FastGPT 4.14.17 through 4.15.0-beta5 lets a low-privileged tenant user read another tena

CVE-2026-54607 HIGH
7.7 Jul 07

Server-side request forgery in FastGPT before 4.15.0-beta4 lets an authenticated team member abuse the HTTP-tool OpenAPI

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy