SecurityContext

CVE-2026-44287: FastGPT - Command Injection

  • Cve: CVE-2026-44287
  • Name: FastGPT - Command Injection
  • Description: FastGPT is an AI Agent building platform. Prior to 4.15.0-beta1, the JavaScript sandbox worker at projects/code-sandbox/src/pool/worker.ts:356 blocks dynamic import() with the regex /\bimport\s*\(/.test(code). JavaScript syntax accepts a block comment between import and (; the regex matches only ASCII whitespace, and the bytes /, *, *, / are not in the \s character class. The payload import/**/("child_process") parses as a syntactically valid dynamic import that the regex does not detect. Because import() is not wrapped by the safeRequire Proxy (which only proxies require), the attacker loads child_process and calls execSync - arbitrary command execution as uid=100(sandbox) inside the sandbox container. This vulnerability is fixed in 4.15.0-beta1.
  • Impact: Attackers can execute arbitrary commands inside the sandbox container, potentially compromising the system.
  • Remediation: Upgrade to version 4.15.0-beta1 or later.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.3
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
  • Epss score: 0.00239
  • Epss percentile: 0.14909
  • Assignee: [email protected]
  • Published at: 2026-05-29T20:16:24Z
  • Age in days: 179
  • Modified at: 2026-07-22T06:10:00Z
  • Patch available: yes
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-44287
  • Nvd status: deferred
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-94Improper Control of Generation of Code

References

UrlSourceTags
https://github.com/labring/FastGPT/security/advisories/GHSA-f5mq-qxm4-5mvcnvd

Products

ProductAffectedPlatform boundSourcesUrl
fastgpt:fastgpt< 4.15.0-beta1nocna_alias_text/v1/products/fastgpt/fastgpt

Projects

RepositoryLink kindsIndexedUrl
labring/FastGPTfix, security_advisoryyes/v1/repositories/labring/FastGPT

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts