Vulnerability record · CVE-2023-22463 · published 4 January 2023
CVE-2023-22463: KubePi hard-coded JWT signing key allows token forgery
Fit2cloud · Kubepi
KubePi through 1.6.2 hard-codes the JWT signing key in session.go, so every deployment shares the same key. Anyone who knows that key can forge a JWT and impersonate an administrator. The flaw is fixed in 1.6.3, where the key is read from app.yml or randomly generated if left blank.
Description
KubePi is a k8s panel. The jwt authentication function of KubePi through version 1.6.2 uses hard-coded Jwtsigkeys, resulting in the same Jwtsigkeys for all online projects. This means that an attacker can forge any jwt token to take over the administrator account of any online project. Furthermore, they may use the administrator to take over the k8s cluster of the target enterprise. `session.go`, the use of hard-coded JwtSigKey, allows an attacker to use this value to forge jwt tokens arbitrarily. The JwtSigKey is confidential and should not be hard-coded in the code. The vulnerability has been fixed in 1.6.3. In the patch, JWT key is specified in app.yml. If the user leaves it blank, a random key will be used. There are no workarounds aside from upgrading.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Automated analysis
critical priorityCVSS 9.8 with no authentication or interaction required, public exploit material, and full admin and cluster takeover impact.
What it is
KubePi through 1.6.2 hard-codes the JWT signing key in session.go, so every deployment shares the same key. Anyone who knows that key can forge a JWT and impersonate an administrator. The flaw is fixed in 1.6.3, where the key is read from app.yml or randomly generated if left blank.
Impact
An attacker gains full administrative control of the KubePi panel and can then take over the Kubernetes cluster it manages.
Attack surface
Reachable over the network via the JWT authentication path with no authentication or user interaction required, per the CVSS vector AV:N/AC:L/PR:N/UI:N.
Exploitation
Not listed in CISA KEV, but EPSS is 0.69667 (99.3rd percentile) and the GitHub advisory is tagged Exploit, indicating public exploit material exists.
What to do
- Upgrade KubePi to 1.6.3 or later immediately; no workaround exists besides upgrading.
- After upgrading, set a strong unique JWT key in app.yml rather than leaving it blank.
- Rotate any credentials or tokens that may have been exposed while running an affected version.
- Restrict network access to the KubePi panel to trusted management networks only.
Detection
- Monitor KubePi authentication logs for admin sessions originating from unexpected IP addresses or user agents.
- Alert on JWT validation failures or tokens signed with the known hard-coded key.
- Audit Kubernetes API activity for actions performed by KubePi service accounts outside normal administrative patterns.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/KubeOperator/KubePi/blob/da784f5532ea2495b92708cacb32703bff3a45a3/internal/api/v1/session/session.go# | Third Party Advisory |
| https://github.com/KubeOperator/KubePi/commit/3be58b8df5bc05d2343c30371dd5fcf6a9fbbf8b | PatchThird Party Advisory |
| https://github.com/KubeOperator/KubePi/releases/tag/v1.6.3 | Release NotesThird Party Advisory |
| https://github.com/KubeOperator/KubePi/security/advisories/GHSA-vjhf-8vqx-vqpq | ExploitPatchThird Party Advisory |
| https://github.com/KubeOperator/KubePi/blob/da784f5532ea2495b92708cacb32703bff3a45a3/internal/api/v1/session/session.go# | Third Party Advisory |
| https://github.com/KubeOperator/KubePi/commit/3be58b8df5bc05d2343c30371dd5fcf6a9fbbf8b | PatchThird Party Advisory |
| https://github.com/KubeOperator/KubePi/releases/tag/v1.6.3 | Release NotesThird Party Advisory |
| https://github.com/KubeOperator/KubePi/security/advisories/GHSA-vjhf-8vqx-vqpq | ExploitPatchThird Party Advisory |
Track CVE-2023-22463 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2023-22463), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.