Skip to content
Heist/ feed
Back to feed
Medium

KubePi's JWT token validation has a defect

Type: advisorySources: OSV

KubePi is a K8s panel. Starting in version 1.6.3 and prior to version 1.8.0, there is a defect in the KubePi JWT token verification. The JWT key in the default configuration file is empty. Although a random 32-bit string will be generated to overwrite the key in the configuration file when the key is detected to be empty in the configuration file reading logic, the key is empty during actual verification. Using an empty key to generate a JWT token can bypass the login verification and directly take over the back end. Version 1.8.0 contains a patch for this issue.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-36111
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 22:07 UTC · Revision 1

Source evidence

KubePi's JWT token validation has a defect

core-osv · Original source

Published 25 Jul 2024, 13:26 UTC

KubePi is a K8s panel. Starting in version 1.6.3 and prior to version 1.8.0, there is a defect in the KubePi JWT token verification. The JWT key in the default configuration file is empty. Although a random 32-bit string will be generated to overwrite the key in the configuration file when the key is detected to be empty in the configuration file reading logic, the key is empty during actual verification. Using an empty key to generate a JWT token can bypass the login verification and directly take over the back end. Version 1.8.0 contains a patch for this issue.

osv:CVE-2024-36111
Complete source record
{
  "id": "73aba86c9fa82ac33420bcc1287250779362e6d01834e2f17a20abb1d873c301",
  "url": "https://osv.dev/vulnerability/CVE-2024-36111",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "KubePi's JWT token validation has a defect",
    "summary": "KubePi is a K8s panel. Starting in version 1.6.3 and prior to version 1.8.0, there is a defect in the KubePi JWT token verification. The JWT key in the default configuration file is empty. Although a random 32-bit string will be generated to overwrite the key in the configuration file when the key is detected to be empty in the configuration file reading logic, the key is empty during actual verification. Using an empty key to generate a JWT token can bypass the login verification and directly take over the back end. Version 1.8.0 contains a patch for this issue.",
    "evidence": "osv:CVE-2024-36111",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-36111",
      "aliases": [
        "CVE-2024-36111",
        "GHSA-8q5r-cvcw-4wx7"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/1panel-dev/kubepi",
              "type": "GIT",
              "events": [
                {
                  "introduced": "eead48749050a1bc47c710acb8267211a387a85d"
                },
                {
                  "fixed": "808aa4f532151a10abd83f60481de3a7a018d3db"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "1.6.3"
                      },
                      {
                        "fixed": "1.8.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.7.0",
            "v1.6.5",
            "v1.6.4",
            "v1.6.3"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-36111.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:24.114175160Z",
      "provider": "osv",
      "references": [
        "https://github.com/1Panel-dev/KubePi/security/advisories/GHSA-8q5r-cvcw-4wx7",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36111.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-36111"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-1259"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36111.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-36111",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 490459,
  "published_at": "2024-07-25T13:26:13.257+00:00"
}