CVE-2024-24768: Github.com/1Panel dev/1Panel 1Panel Set-cookie Is Missing The Vulnerability

LOW
Advisory Identifier: GHSA-9xfw-jjq2-7v8h
CVSS 3.5
CWE-311 CWE-315
Published
Advisory Summary

CVE-2024-24768 is a LOW (CVSS 3.5) 1panel set-cookie is missing the vulnerability (CWE-311: Missing Encryption of Sensitive Data) affecting Github.com/1Panel dev/1Panel libraries in the Go ecosystem. The issue involves 1panel set-cookie is missing the secure keyword. Remediation is available by upgrading affected packages to version 1.9.6.

CVE-2024-24768 at a Glance

CVE Identifier CVE-2024-24768
GHSA Identifier GHSA-9xfw-jjq2-7v8h
Severity LOW
CVSS v3.1 Base Score 3.5
CWE Classification CWE-311: Missing Encryption of Sensitive Data
Affected Product Github.com/1Panel dev/1Panel
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 3.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2024-24768

To remediate this vulnerability, upgrade all affected Github.com/1Panel dev/1Panel dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/1Panel-dev/1Panel fixed: 1.9.6
Upgrade github.com/1Panel-dev/1Panel to 1.9.6
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/1Panel-dev/1Panel

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-24768, inspect your project dependencies for Github.com/1Panel dev/1Panel:

inspect dependencies for github.com/1Panel-dev/1Panel

Analyze the terminal output to locate any version of Github.com/1Panel dev/1Panel in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.9.6), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-311: Missing Encryption of Sensitive Data, where the product does not encrypt sensitive or critical information before storage or transmission. In Github.com/1Panel dev/1Panel, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary The https cookie that comes with the panel does not have the Secure keyword, which may cause the cookie to be sent in plain text when accessing http accidentally. https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Headers/Set-Cookie#secure ### PoC Directly configure https for the panel, and then capture the packet when logging in again and find that the cookie does not have the Secure keyword ### Impact Everyone who has configured the panel https

CVE-2024-24768 Affected Github.com/1Panel dev/1Panel Versions

1 component(s)
Fixed Versions:
1.9.6
Product / Package Ecosystem Affected Versions Fixed Version
github.com/1Panel-dev/1Panel
Go
< 1.9.6
1.9.6

References

Frequently Asked Questions

What is CVE-2024-24768?
CVE-2024-24768 is a security vulnerability in Github.com/1Panel dev/1Panel involving 1Panel set-cookie is missing the Secure keyword under CWE-311: Missing Encryption of Sensitive Data.
Which Github.com/1Panel dev/1Panel versions are affected?
Affected versions include releases prior to 1.9.6 across affected packages: github.com/1Panel-dev/1Panel.
What version fixes CVE-2024-24768?
Upgrading to 1.9.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/1Panel-dev/1Panel affected?
Yes, github.com/1Panel-dev/1Panel is affected in releases prior to 1.9.6. Upgrade your dependency to 1.9.6 or later.
What is the CVSS score of CVE-2024-24768?
CVE-2024-24768 has a CVSS v3.1 base score of 3.5 (LOW) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2024-24768?
CVE-2024-24768 is classified under CWE-311: Missing Encryption of Sensitive Data (The product does not encrypt sensitive or critical information before storage or transmission.).
How can I check Go dependencies for CVE-2024-24768?
Run the dependency tree command: 'inspect dependencies for github.com/1Panel-dev/1Panel'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-9xfw-jjq2-7v8h",
  "modified" : "2025-01-20T16:52:56Z",
  "published" : "2024-02-05T20:19:30Z",
  "aliases" : [ "CVE-2024-24768" ],
  "summary" : "1Panel set-cookie is missing the Secure keyword",
  "details" : "### Summary\nThe https cookie that comes with the panel does not have the Secure keyword, which may cause the cookie to be sent in plain text when accessing http accidentally.\n\nhttps://developer.mozilla.org/zh-CN/docs/Web/HTTP/Headers/Set-Cookie#secure\n\n### PoC\nDirectly configure https for the panel, and then capture the packet when logging in again and find that the cookie does not have the Secure keyword\n\n### Impact\nEveryone who has configured the panel https\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/1Panel-dev/1Panel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.9.6"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.9.5"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/1Panel-dev/1Panel/security/advisories/GHSA-9xfw-jjq2-7v8h"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-24768"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/1Panel-dev/1Panel/pull/3817"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/1Panel-dev/1Panel/commit/1169648162c4b9b48e0b4aa508f9dea4d6bc50d5"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/1Panel-dev/1Panel"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-311", "CWE-315" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-05T20:19:30Z",
    "nvd_published_at" : "2024-02-05T15:15:09Z"
  }
}