Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/0xJacky/Nginx-UI
  4. ›
  5. CVE-2024-23827

CVE-2024-23827: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

January 29, 2024

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.

References

  • github.com/0xJacky/nginx-ui/blob/f20d97a9fdc2a83809498b35b6abc0239ec7fdda/api/certificate/certificate.go
  • github.com/0xJacky/nginx-ui/blob/f20d97a9fdc2a83809498b35b6abc0239ec7fdda/internal/cert/write_file.go
  • github.com/0xJacky/nginx-ui/commit/8581bdd3c6f49ab345b773517ba9173fa7fc6199
  • github.com/0xJacky/nginx-ui/security/advisories/GHSA-xvq9-4vpv-227m
  • github.com/advisories/GHSA-xvq9-4vpv-227m
  • nvd.nist.gov/vuln/detail/CVE-2024-23827

Code Behaviors & Features

Detect and mitigate CVE-2024-23827 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.0.0-beta.12

Fixed versions

  • v2.0.0-beta.12

Solution

Upgrade to version 2.0.0-beta.12 or above. *Note*: 2.0.0-beta.12 may be an unstable version. Use caution.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-707: Improper Neutralization

Source file

go/github.com/0xJacky/Nginx-UI/CVE-2024-23827.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:52 +0000.