Vulnerabilities in pkg:golang/ehang.io/nps

PACKAGE
Advisory Identifier: GHSA-2vp2-8m5j-4rjx
Advisory Summary

CVE-2019-15119 is a MODERATE (CVSS 5.5) cnlh nps vulnerable to file vulnerability (CWE-732: Incorrect Permission Assignment for Critical Resource) affecting Ehang.io/nps libraries in the Go ecosystem. The issue involves cnlh nps vulnerable to file overwrite by local user. Remediation is available by upgrading affected packages to version 0.23.2.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/ehang.io/nps

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/ehang.io/nps. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-2vp2-8m5j-4rjx CVE-2019-15119 MODERATE cnlh nps vulnerable to file overwrite by local user

CVE-2019-15119 at a Glance

CVE Identifier CVE-2019-15119
GHSA Identifier GHSA-2vp2-8m5j-4rjx
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-732: Incorrect Permission Assignment for Critical Resource
Affected Product Ehang.io/nps
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2019-15119

To remediate this vulnerability, upgrade all affected Ehang.io/nps dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

ehang.io/nps fixed: 0.23.2
Upgrade ehang.io/nps to 0.23.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for ehang.io/nps

How to Check if You Are Affected

To determine whether your application is affected by CVE-2019-15119, inspect your project dependencies for Ehang.io/nps:

inspect dependencies for ehang.io/nps

Analyze the terminal output to locate any version of Ehang.io/nps in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.23.2), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-732: Incorrect Permission Assignment for Critical Resource, where the product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors. In Ehang.io/nps, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

`lib/install/install.go` in cnlh nps prior to 0.23.2 uses 0777 permissions for `/usr/local/bin/nps and/or /usr/bin/nps`, leading to a file overwrite by a local user.

CVE-2019-15119 Affected Ehang.io/nps Versions

1 component(s)
Fixed Versions:
0.23.2
Product / Package Ecosystem Affected Versions Fixed Version
ehang.io/nps
Go
< 0.23.2
0.23.2

References

Frequently Asked Questions

What is CVE-2019-15119?
CVE-2019-15119 is a security vulnerability in Ehang.io/nps involving cnlh nps vulnerable to file overwrite by local user under CWE-732: Incorrect Permission Assignment for Critical Resource.
Which Ehang.io/nps versions are affected?
Affected versions include releases prior to 0.23.2 across affected packages: ehang.io/nps.
What version fixes CVE-2019-15119?
Upgrading to 0.23.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ehang.io/nps affected?
Yes, ehang.io/nps is affected in releases prior to 0.23.2. Upgrade your dependency to 0.23.2 or later.
What is the CVSS score of CVE-2019-15119?
CVE-2019-15119 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2019-15119?
CVE-2019-15119 is classified under CWE-732: Incorrect Permission Assignment for Critical Resource (The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.).
How can I check Go dependencies for CVE-2019-15119?
Run the dependency tree command: 'inspect dependencies for ehang.io/nps'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-2vp2-8m5j-4rjx",
  "modified" : "2025-04-17T17:48:10Z",
  "published" : "2022-05-24T16:53:50Z",
  "aliases" : [ "CVE-2019-15119" ],
  "summary" : "cnlh nps vulnerable to file overwrite by local user",
  "details" : "`lib/install/install.go` in cnlh nps prior to 0.23.2 uses 0777 permissions for `/usr/local/bin/nps and/or /usr/bin/nps`, leading to a file overwrite by a local user.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "ehang.io/nps"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.23.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-15119"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cnlh/nps/issues/176"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cnlh/nps/commit/7178b3380720e910d283036a8d39879a94105515"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/cnlh/nps"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-732" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-04-17T17:48:10Z",
    "nvd_published_at" : "2019-08-16T15:15:00Z"
  }
}