Arbitrary Code Injection Affecting github.com/0xjacky/nginx-ui/api/backup package, versions <2.3.8


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.76% (51st 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 IDSNYK-GOLANG-GITHUBCOM0XJACKYNGINXUIAPIBACKUP-16419391
  • published5 May 2026
  • disclosed4 May 2026
  • creditcaptain99hook

Introduced: 4 May 2026

CVE-2026-42238  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade github.com/0xJacky/Nginx-UI/api/backup to version 2.3.8 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Injection via the restore process. An attacker can execute arbitrary OS commands by uploading a crafted backup archive that overwrites the application's configuration file and database, injecting malicious commands into the TestConfigCmd setting. This is only exploitable if the application is accessed within the first 10 minutes after process startup on a fresh installation.

CVSS Base Scores

version 4.0
version 3.1