# CVE-2026-96633: AdminNeo SQLite Database-List Drop Arbitrary File Deletion

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **CWE:** CWE-73
- **Aliases:** GHSA-6vfx-w7q3-42gq
- **Published:** 2026-10-30T22:52:58.000Z
- **Modified:** 2026-10-30T23:00:04.343Z

## Who should check

- Projects that depend on Packagist package adminneo-org/adminneo (\< 5.5.1)

## Description

\#\# Summary

AdminNeo allows an authenticated SQLite-mode user to delete arbitrary files writable by the PHP process through the database-list drop action. The SQLite driver validates file extensions when creating or renaming databases, but the database-list drop path passes submitted \`db\[\]\` values directly to \`unlink()\`.

Originally reported by @slpoiuewalspoid-dotcom in Adminer: https://github.com/vrana/adminer/security/advisories/GHSA-6pg3-chwq-wgqc

\#\# Impact

An authenticated AdminNeo SQLite user with a valid CSRF token can submit an arbitrary relative file path in the database-list \`db\[\]\` field. If the PHP process can delete that path, AdminNeo unlinks it even when the file is not a SQLite database.

\#\# Root Cause

The database-list page accepts selected database names from the POST body and calls \`drop\_databases()\`:

\`\`\`php
if ($\_POST\["db"\]) {
	queries\_redirect(substr(ME, 0, -1), lang('Databases have been dropped.'), drop\_databases($\_POST\["db"\]));
}
\`\`\`

In SQLite mode, \`drop\_databases()\` attaches an in-memory database and unlinks each submitted path directly:

\`\`\`php
function drop\_databases($databases): bool
{
	Connection::get()-\>close(); // to unlock file, doesn't work in PDO on Windows
	foreach ($databases as $db) {
		if (!@unlink($db)) {
			Connection::get()-\>setError(lang('File exists.'));
			return false;
		}
	}
	return true;
}
\`\`\`

The same SQLite driver protects create and rename operations with \`check\_sqlite\_name()\`, which requires a \`.db\`, \`.sdb\`, or \`.sqlite\` extension:

\`\`\`php
function check\_sqlite\_name($name) {
	// avoid creating PHP files on unsecured servers
	$extensions = "db\|sdb\|sqlite";
	if (!preg\_match("~^\[^\\\\0\]\*\\\\.($extensions)\\$~", $name)) {
		Connection::get()-\>setError(lang('Please use one of the extensions %s.', str\_replace("\|", ", ", $extensions)));
		return false;
	}
	return true;
}
\`\`\`

The drop path does not apply an equivalent extension check or bind the submitted path to a known listed SQLite database.

\#\# POC

\#\#\# 1. Start a complete AdminNeo application

Build and start AdminNeo from the audited source using the official standalone Docker image shape. The validation image copies the audited source tree into \`/var/www/html\` and starts Nginx HTTP server.

Log in through the SQLite entry point using a SQLite database path \`poc.sqlite\`.

\#\#\# 2. Prepare a writable target file

Place a non-database file under a location writable by the AdminNeo PHP process. The validation used:

\`\`\`
/var/www/html/poc-delete-target.txt
\`\`\`

The same directory also contained a SQLite database:

\`\`\`
/var/www/html/poc.sqlite
\`\`\`

\#\#\# 3. Submit the database-list drop request

Use the authenticated session and live CSRF token, but submit the non-database path as the selected database:

\`\`\`http
POST /?sqlite=&username= HTTP/1.1
Host: \<adminer-host\>
Cookie: \<authenticated-session\>
Content-Type: application/x-www-form-urlencoded

db\[\]=/var/www/html/poc-delete-target.txt&all=&drop=Drop&token=\<live-csrf-token\>
\`\`\`

The request reaches \`drop\_databases($\_POST\["db"\]),\` and SQLite \`drop\_databases()\` calls \`unlink()\` on the submitted non-database path.

After the request, the \`poc-delete-target.txt\` was deleted.

\#\# Suggested Fix

Apply the same target validation used by SQLite create/rename before deleting database files. At minimum:
- Reject paths whose basename does not end in \`.db\`, \`.sdb\`, or \`.sqlite\`.
- Bind \`db\[\]\` values to databases returned by AdminNeo's database listing instead of trusting submitted paths.
- Resolve paths before deletion and reject traversal outside the expected SQLite database directory.
- Consider requiring the current selected database path for delete operations instead of accepting arbitrary submitted file paths.

## Affected and fixed versions

- Packagist `adminneo-org/adminneo`: affected \< 5.5.1; fixed 5.5.1 (osv)

## Mitigation

- Upgrade adminneo-org/adminneo to 5.5.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-96633. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-96633.md
Affected: adminneo-org/adminneo < 5.5.1
Fixed in: 5.5.1

Steps:
1. Search this machine and project for adminneo-org/adminneo (Packagist): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-96633 being exploited?

There is no confirmed exploitation: CVE-2026-96633 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-96633?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-96633?

adminneo-org/adminneo \< 5.5.1.

### Is there a fix for CVE-2026-96633?

Yes. Fixed in 5.5.1. Upgrade adminneo-org/adminneo to 5.5.1 or later.

### How do I check if I'm affected by CVE-2026-96633?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/adminneo-org/adminneo/security/advisories/GHSA-6vfx-w7q3-42gq>
- patch: <https://github.com/adminneo-org/adminneo/commit/26fcef2f32922629751cbea6c0bb593fbf1e957d>
- other: <https://github.com/adminneo-org/adminneo>
- other: <https://github.com/adminneo-org/adminneo/releases/tag/v5.5.1>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-6vfx-w7q3-42gq> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-96633> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-96633>
