Security Digest · Vulnerability record

CVE-2024-23827: Nginx-UI vulnerable to arbitrary file write through the Import Certificate feature

Nginx-UI is a web interface to manage Nginx configurations.

CVSS 9.3 Critical EPSS 0.7% · p53

Should you act?

Critical and remotely reachable

No known exploitation yet, but it is network-reachable without credentials. This signal is computed from CISA KEV, EPSS and CVSS data; it is not an editorial verdict.

  • Not in CISA KEV, but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
  • EPSS 0.7%, percentile 53: FIRST’s model estimates a 0.7% chance of exploitation activity in the next 30 days, higher than 53% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
  • Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
  • Only applies if your dependency tree includes github.com/0xJacky/Nginx-UI (Go) < 1.9.10-0.20240128060047-8581bdd3c6f4, fixed in 1.9.10-0.20240128060047-8581bdd3c6f4. Check your lockfile, including transitive dependencies.

What it is

Nginx-UI is a web interface to manage Nginx configurations. The Import Certificate feature allows arbitrary write into the system. The feature does not check if the provided user input is a certification/key and allows to write into arbitrary paths in the system. It's possible to leverage the vulnerability into a remote code execution overwriting the config file app.ini. Version 2.0.0.beta.12 fixed the issue.

From the GitHub advisory

Summary

The Import Certificate feature allows arbitrary write into the system. The feature does not check if the provided user input is a certification/key and allows to write into arbitrary paths in the system.

https://github.com/0xJacky/nginx-ui/blob/f20d97a9fdc2a83809498b35b6abc0239ec7fdda/api/certificate/certificate.go#L72

https://github.com/0xJacky/nginx-ui/blob/f20d97a9fdc2a83809498b35b6abc0239ec7fdda/internal/cert/writefile.go#L15

PoC

Weakness type: CWE-22.

Product: github.com/0xJacky/Nginx-UI (Go) · Assigned by: GitHub_M · Published: 2024-01-29

Affected and fixed versions

EcosystemPackageVulnerableFirst fixed
Gogithub.com/0xJacky/Nginx-UI< 1.9.10-0.20240128060047-8581bdd3c6f41.9.10-0.20240128060047-8581bdd3c6f4
VendorProductAffected versions (per CVE record)
0xJackynginx-ui< 2.0.0.beta.12

Severity scores

Scored byCVSSScoreVector
GitHub_M3.19.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub4.09.3 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
  • Attack vector: network (remotely reachable)
  • Attack complexity: low
  • Attack requirements: none
  • Privileges required: none (no login)
  • User interaction: none

CVSS measures how bad a flaw is if exploited, not how likely exploitation is. Read it next to the exploitation data below.

Exploitation and urgency

  • CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
  • CISA SSVC assessment: exploitation poc, automatable yes, technical impact total.
  • FIRST EPSS (model of 2026-10-21): 0.70% probability of exploitation activity in the next 30 days; percentile 53.

Timeline

  • — CVE record published by GitHub_M
  • — GitHub-reviewed advisory GHSA-xvq9-4vpv-227m published (critical)
  • — CVE record last updated

Sources and references

Original sources first. Version and fix details should always be confirmed against the vendor or project advisory.

Vulnerability records

  1. GitHub Advisory GHSA-xvq9-4vpv-227m github.com
  2. CVE.org record CVE-2024-23827 cve.org
  3. NVD entry CVE-2024-23827 nvd.nist.gov

Other references from the CVE record and advisory

  1. github.com github.com
  2. github.com github.com
  3. github.com github.com
  4. github.com github.com

Critical Go advisories · Today’s Security Digest