Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/julien040/anyquery
  4. ›
  5. CVE-2026-50006

CVE-2026-50006: Anyquery: Arbitrary File Write (AFW) which could lead to Remote Code Execution (RCE) via Unrestricted ATTACH DATABASE in Server Mode

July 14, 2026

Anyquery’s server mode does not disable or restrict native SQLite disk manipulation commands. Unauthenticated attackers connecting to the MySQL-compatible server port can use the ATTACH DATABASE command to write arbitrary SQLite databases to any path on the victim’s filesystem where the process has write permissions. This leads to Arbitrary File Write (AFW) which could lead to Remote Code Execution (RCE) depending on the environment (e.g., by dropping a PHP web shell if a web server is running, or overwriting system cronjobs if running as root).

References

  • github.com/advisories/GHSA-xrcf-6jh3-ggvx
  • github.com/julien040/anyquery/releases/tag/0.4.5
  • github.com/julien040/anyquery/security/advisories/GHSA-xrcf-6jh3-ggvx
  • nvd.nist.gov/vuln/detail/CVE-2026-50006

Code Behaviors & Features

Detect and mitigate CVE-2026-50006 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.4.5

Fixed versions

  • 0.4.5

Solution

Upgrade to version 0.4.5 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-284: Improper Access Control
  • CWE-434: Unrestricted Upload of File with Dangerous Type
  • CWE-73: External Control of File Name or Path
  • CWE-862: Missing Authorization

Source file

go/github.com/julien040/anyquery/CVE-2026-50006.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:17:38 +0000.