All vulnerabilities

Servers and applications

GHSA-57f3-39rr-2mwm

Nginx-UI certificate path validators read arbitrary absolute paths, enabling a file existence oracle and process-crash DoS

Severity
Low 3.8
Published
20 Nov 2026
Last changed
20 Nov 2026
Added to UpHeron
20 Nov 2026
Fixed in
2.9.2
Weakness
CWE-36Uncontrolled resource consumption (CWE-400)
Attack
Over the network · Needs an administrator account · No user action needed
Attacker can
Read some data · Slow it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:L
Sources
Project advisories (GitHub)

Description

The certificate path validators used by POST /api/certs and POST /api/certs/:id ran os.Stat and an unbounded os.ReadFile on any supplied path with no containment. An administrator-equivalent credential could learn whether a path outside the nginx config root exists or holds PEM data (one bit per field, no content returned), and reading a device or FIFO such as /dev/zero could block requests or exhaust memory until the supervised process restarted.

Nginx UI exposes an authenticated certificate management endpoint (POST /api/certs) whose request validators accept arbitrary filesystem paths without any containment check. The ssl_certificate_path and ssl_certificate_key_path fields are validated by custom rules that call cert.IsCertificatePath and cert.IsPrivateKeyPath, which run os.Stat and an unbounded os.ReadFile directly on the attacker-supplied path.

From 0xJacky/nginx-ui's security advisory. Shortened; the full text is there.

Workarounds

Limit api:write tokens and cluster node credentials to trusted automation.

Workarounds as given by 0xJacky/nginx-ui's security advisory.

Affected software

SoftwareAffected versions
Nginx UIServers and applications · github:0xjacky/nginx-ui
  • Every version before 2.9.2

About Nginx UI

Yet another WebUI for Nginx

From its GitHub repository.
Docker Hub pulls
1,512,532Docker Hub, 15 Nov 2026
GitHub stars
11,783GitHub, 15 Nov 2026
Forks
921GitHub, 15 Nov 2026
Latest release
v3.0.3GitHub, 15 Nov 2026
Released
12 Nov 2026GitHub
License
AGPL-3.0GitHub
First published on GitHub
19 Feb 2021GitHub

References