Command Injection Affecting github.com/0xjacky/nginx-ui/api/system package, versions <2.0.0-beta.9


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
0.11% (46th 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 Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOM0XJACKYNGINXUIAPISYSTEM-6156657
  • published14 Jan 2024
  • disclosed11 Jan 2024
  • creditjorgectf

Introduced: 11 Jan 2024

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

How to fix?

Upgrade github.com/0xJacky/Nginx-UI/api/system to version 2.0.0-beta.9 or higher.

Overview

github.com/0xJacky/Nginx-UI/api/system is a yet another Nginx Web UI

Affected versions of this package are vulnerable to Command Injection via the test_config_cmd, reload_cmd, and restart_cmd API endpoints. An attacker can execute arbitrary code, escalate privileges, and disclose sensitive information by sending crafted requests to these API endpoints.

References

CVSS Scores

version 3.1