CVE-2018-0023: Jsnapy JSNAPy Allows Unprivileged Local Users Vulnerability

HIGH
Advisory Identifier: GHSA-qc55-vm3j-74gp
CVSS 5.5
CWE-276
Published
Advisory Summary

CVE-2018-0023 is a HIGH (CVSS 5.5) jsnapy allows unprivileged local users vulnerability (CWE-276: Incorrect Default Permissions) affecting Jsnapy libraries in the PyPI ecosystem. The issue involves jsnapy allows unprivileged local users to alter files under the directory. Remediation is available by upgrading affected packages to version 1.3.0.

CVE-2018-0023 at a Glance

CVE Identifier CVE-2018-0023
GHSA Identifier GHSA-qc55-vm3j-74gp
Severity HIGH
CVSS v3.1 Base Score 5.5
CWE Classification CWE-276: Incorrect Default Permissions
Affected Product Jsnapy
Package Ecosystem PyPI
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:L/UI:N/S:U/C:N/I:H/A:N).

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

How to Fix CVE-2018-0023

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

jsnapy fixed: 1.3.0
pip install jsnapy>=1.3.0
Verify Direct and Transitive Dependencies

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

pip show jsnapy

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2018-0023, inspect your installed packages using pip:

pip show jsnapy

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

Note: The pip show jsnapy command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-276: Incorrect Default Permissions, where during installation, installed file permissions are set to allow anyone to modify those files. In Jsnapy, 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

JSNAPy is an open source python version of Junos Snapshot Administrator developed by Juniper available through github. The default configuration and sample files of JSNAPy automation tool versions prior to 1.3.0 are created world writable. This insecure file and directory permission allows unprivileged local users to alter the files under this directory including inserting operations not intended by the package maintainer, system administrator, or other users. This issue only affects users who downloaded and installed JSNAPy from github.

CVE-2018-0023 Affected Jsnapy Versions

1 component(s)
Fixed Versions:
1.3.0
Product / Package Ecosystem Affected Versions Fixed Version
jsnapy
PyPI
< 1.3.0
1.3.0

References

Frequently Asked Questions

What is CVE-2018-0023?
CVE-2018-0023 is a security vulnerability in Jsnapy involving JSNAPy allows unprivileged local users to alter files under the directory under CWE-276: Incorrect Default Permissions.
Which Jsnapy versions are affected?
Affected versions include releases prior to 1.3.0 across affected packages: jsnapy.
What version fixes CVE-2018-0023?
Upgrading to 1.3.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jsnapy affected?
Yes, jsnapy is affected in releases prior to 1.3.0. Upgrade your dependency to 1.3.0 or later.
What is the CVSS score of CVE-2018-0023?
CVE-2018-0023 has a CVSS v3.1 base score of 5.5 (HIGH) with vector string CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2018-0023?
CVE-2018-0023 is classified under CWE-276: Incorrect Default Permissions (During installation, installed file permissions are set to allow anyone to modify those files.).
How can I check PyPI dependencies for CVE-2018-0023?
Run the dependency tree command: 'pip show jsnapy'. 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-qc55-vm3j-74gp",
  "modified" : "2024-09-24T21:02:12Z",
  "published" : "2018-07-12T20:30:36Z",
  "aliases" : [ "CVE-2018-0023" ],
  "summary" : "JSNAPy allows unprivileged local users to alter files under the directory",
  "details" : "JSNAPy is an open source python version of Junos Snapshot Administrator developed by Juniper available through github. The default configuration and sample files of JSNAPy automation tool versions prior to 1.3.0 are created world writable. This insecure file and directory permission allows unprivileged local users to alter the files under this directory including inserting operations not intended by the package maintainer, system administrator, or other users. This issue only affects users who downloaded and installed JSNAPy from github.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "jsnapy"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.3.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-0023"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Juniper/jsnapy"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-qc55-vm3j-74gp"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/jsnapy/PYSEC-2018-84.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://kb.juniper.net/JSA10856"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20200227125151/http://www.securityfocus.com/bid/103745"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-276" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:51:34Z",
    "nvd_published_at" : null
  }
}