/

CVE-2026-120444

Severity:

HIGH RISK

(8.1)

Path Traversal (CWE-22) in GoFound Database Endpoints

CVE-2026-120444

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Arbitrary Directory Deletion

Severity:

HIGH RISK

(8.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

GoFound contains a path traversal vulnerability in its database API that can let unauthenticated attackers target directories outside the intended data directory for deletion. It becomes risky when a crafted database parameter reaches a recursive deletion operation without adequate path validation.

Affected context

The issue affects GoFound through version 1.4.1 in the /api/db/create and /api/db/drop endpoints. The risk arises when the database parameter is used to construct a filesystem path and the resulting path is not constrained to the intended data directory before deletion.

Exploit preconditions

  • Attack surface: HTTP GET requests to /api/db/create or /api/db/drop
  • Required access: The described endpoints can be reached without authentication
  • Trigger point: The server processes a database parameter containing path traversal sequences
  • Why exploitation is possible: The resulting path can escape the data directory and be passed to recursive deletion

Why this happens

The underlying issue is improper limitation of a pathname to a restricted directory, which maps to CWE-22: Path Traversal. The application uses user-influenced path data in a filesystem operation without reliably ensuring that the resolved target remains within the intended data directory. Because the affected operation recursively removes directories, an out-of-bound path can have destructive effects.

Potential impact

  • Attackers may delete directories outside the intended data directory
  • Application data or files needed for service operation could be lost
  • Service availability could be disrupted
  • A victim's browser could trigger a request that causes deletion, depending on the surrounding deployment and browser protections

General mitigation guidance

Defensive patterns include:

  • Map accepted database identifiers to server-controlled paths instead of accepting arbitrary path fragments
  • Resolve and verify paths remain within a designated base directory before filesystem operations
  • Reject traversal components and enforce strict input schemas
  • Avoid destructive actions through GET requests; require an appropriately protected state-changing operation
  • Run the service with only the filesystem permissions it needs, limiting the consequences of path-handling mistakes

How teams detect issues like this

  • Use static analysis to identify user-controlled values flowing into recursive deletion or other filesystem APIs
  • Review path construction and containment checks around database management endpoints
  • Apply request validation policies that reject unexpected path syntax and restrict database identifiers to an allowlist
  • Monitor application and filesystem audit logs for deletion attempts targeting paths outside the expected data directory
  • Automated code review tools may help identify risky input-to-filesystem flows

Sources

SourceLink
github.comgithub.com/sea-team/gofound/blob/v1.4.1/searcher/container.go
github.comgithub.com/sea-team/gofound/blob/v1.4.1/searcher/engine.go
github.comgithub.com/sea-team/gofound/issues/101
vul.yulun.ac.cnvul.yulun.ac.cn/20261102/gofound/
vulncheck.comvulncheck.com/advisories/gofound-through-1.4.1-path-traversal-via-database-parameter-in-api-db-drop

Frequently asked

questions

The described endpoints are reachable over HTTP, and the vulnerability is reported as exploitable without authentication. A request can be sent directly or, in some circumstances, triggered through a victim's browser.

No authentication is required according to the vulnerability description. Network reachability to the affected endpoints is still necessary.

Avoid building filesystem paths directly from user-supplied fragments. Use server-controlled identifiers and verify that any resolved path remains within the intended directory before performing destructive operations.

Validate inputs against strict allowlists, keep destructive operations off GET endpoints, review user-input flows into filesystem APIs, and use least-privilege filesystem permissions.

Find out what's already
exploitable in your codebase.