ZeroHour

CVE-2026-90942

moderate

Casdoor through 4.4.0 Leaks Built-in Cert Private Key, Enabling Admin Token Forgery

CVSS 4.0
9.3 critical
EPSS
Published
()
Modified
AI analysis

Casdoor, an open-source identity and access management (IAM)/single sign-on platform, through version 4.4.0 incorrectly authorizes organization administrators to read the instance-wide built-in certificate private key via the /api/get-certs and /api/get-cert endpoints. A malicious or compromised organization administrator can retrieve that key and then forge validly signed JWT tokens impersonating any user in any organization on the instance, including global administrators, resulting in complete authentication bypass and full takeover of the Casdoor deployment. The flaw is an incorrect authorization issue (CWE-863) rather than a memory-safety or injection bug, and it scores 9.3 (Critical) under CVSS 4.0 because a low-privileged insider gains both high confidentiality and high integrity impact across security scopes. All self-hosted Casdoor instances through 4.4.0 that use the built-in certificate are affected, particularly multi-tenant deployments where organization administrators are semi-trusted users. No public proof-of-concept is known and the vulnerability is not listed in CISA's Known Exploited Vulnerabilities catalog, so exploitation status is none known at this time.

What to do: Upgrade Casdoor to a release newer than 4.4.0 as soon as a fixed version is available from the vendor. Because a leaked key cannot be un-leaked, rotate the instance-wide built-in certificate and its private key (and any tokens signed with it) after upgrading. Audit server logs for calls to /api/get-certs and /api/get-cert made by organization administrators, and revoke sessions/tokens for any deployment where such access is unexplained.

Affected
Casdoorthrough 4.4.0 (all versions up to and including 4.4.0)
Estimated exposure
moderateorder of 1,000-10,000 internet-reachable self-hosted instances, plus private deployments and all downstream users they authenticate — Casdoor is a self-hosted open-source IAM (popular GitHub project, ~10k+ stars) with public scan engines typically showing a few thousand internet-exposed instances, so the at-risk population is best estimated in the low thousands of…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

Casdoor through 4.4.0 fails to properly mask the instance-wide built-in certificate private key in /api/get-certs and /api/get-cert endpoints, allowing organization administrators to retrieve it. Attackers can use the exposed private key to forge JWT tokens for any user in any organization, including global administrators.

Weakness
CWE-863
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.