Improper Neutralization of Special Elements used in a Command ('Command Injection') Affecting github.com/1panel-dev/1panel/backend/utils/cmd package, versions <1.10.3-lts


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.05% (21st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Neutralization of Special Elements used in a Command ('Command Injection') vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOM1PANELDEV1PANELBACKENDUTILSCMD-6828772
  • published10 May 2024
  • disclosed9 May 2024
  • creditan5er

Introduced: 9 May 2024

CVE-2024-34352  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade github.com/1Panel-dev/1Panel/backend/utils/cmd to version 1.10.3-lts or higher.

Overview

Affected versions of this package are vulnerable to Improper Neutralization of Special Elements used in a Command ('Command Injection') through the API endpoint handling container logs. An attacker can write arbitrary files on the host system by manipulating the log retrieval queries to redirect output to critical system files or directories.

References

CVSS Base Scores

version 3.1