CVE-2015-7337: Notebook Improper Input Validation Vulnerability

CRITICAL
Advisory Identifier: GHSA-92mr-v722-f48m
CVSS 9.8
CWE-20
Published
Advisory Summary

CVE-2015-7337 is a CRITICAL (CVSS 9.8) improper input validation vulnerability (CWE-20: Improper Input Validation) affecting Notebook libraries in the PyPI ecosystem. The issue involves improper input validation in jupyter notebook. Remediation is available by upgrading affected packages to version 4.0.5, 3.2.2.

CVE-2015-7337 at a Glance

CVE Identifier CVE-2015-7337
GHSA Identifier GHSA-92mr-v722-f48m
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-20: Improper Input Validation
Affected Product Notebook
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 9.8

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

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

How to Fix CVE-2015-7337

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

notebook fixed: 4.0.5
pip install notebook>=4.0.5
ipython fixed: 3.2.2
pip install ipython>=3.2.2
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 notebook

How to Check if You Are Affected

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

pip show notebook

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Notebook, 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

The editor in IPython Notebook before 3.2.2 and Jupyter Notebook 4.0.x before 4.0.5 allows remote attackers to execute arbitrary JavaScript code via a crafted file, which triggers a redirect to files/, related to MIME types.

CVE-2015-7337 Affected Notebook Versions

2 component(s)
Fixed Versions:
4.0.53.2.2
Product / Package Ecosystem Affected Versions Fixed Version
notebook
PyPI
≥ 4.0.0
< 4.0.5
4.0.5
ipython
PyPI
< 3.2.2
3.2.2

References

Frequently Asked Questions

What is CVE-2015-7337?
CVE-2015-7337 is a security vulnerability in Notebook involving Improper Input Validation in Jupyter Notebook under CWE-20: Improper Input Validation.
Which Notebook versions are affected?
Affected versions include releases prior to 4.0.5, 3.2.2 across affected packages: notebook, ipython.
What version fixes CVE-2015-7337?
Upgrading to 4.0.5, 3.2.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is notebook affected?
Yes, notebook is affected in releases prior to 4.0.5. Upgrade your dependency to 4.0.5 or later.
Is ipython affected?
Yes, ipython is affected in releases prior to 3.2.2. Upgrade your dependency to 3.2.2 or later.
What is the CVSS score of CVE-2015-7337?
CVE-2015-7337 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2015-7337?
CVE-2015-7337 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check PyPI dependencies for CVE-2015-7337?
Run the dependency tree command: 'pip show notebook'. 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-92mr-v722-f48m",
  "modified" : "2024-09-20T21:54:07Z",
  "published" : "2022-05-17T03:25:49Z",
  "aliases" : [ "CVE-2015-7337" ],
  "summary" : "Improper Input Validation in Jupyter Notebook",
  "details" : "The editor in IPython Notebook before 3.2.2 and Jupyter Notebook 4.0.x before 4.0.5 allows remote attackers to execute arbitrary JavaScript code via a crafted file, which triggers a redirect to files/, related to MIME types.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "notebook"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.0.5"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.0.4"
    }
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "ipython"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.2.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 3.2.1"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-7337"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ipython/ipython/commit/0a8096adf165e2465550bd5893d7e352544e5967"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jupyter/notebook/commit/9e63dd89b603dfbe3a7e774d8a962ee0fa30c0b5"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1264067"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-92mr-v722-f48m"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/ipython/PYSEC-2015-25.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/notebook/PYSEC-2015-27.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://security.gentoo.org/glsa/201512-02"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2015-September/167670.html"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/oss-sec/2015/q3/558"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/oss-sec/2015/q3/634"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-07-06T20:09:00Z",
    "nvd_published_at" : "2015-09-29T19:59:00Z"
  }
}