CVE-2019-10844: Nnabla Sony Neural Network Libraries Reliance Vulnerability

CRITICAL
Advisory Identifier: GHSA-4q2w-rw7m-xqw6
CVSS 9.8
CWE-807
Published
Advisory Summary

CVE-2019-10844 is a CRITICAL (CVSS 9.8) sony neural network libraries reliance vulnerability (CWE-807: Reliance on Untrusted Inputs in a Security Decision) affecting Nnabla libraries in the PyPI ecosystem. The issue involves sony neural network libraries reliance on untrusted inputs prior to v1.0.10. Remediation is available by upgrading affected packages to version 1.0.10.

CVE-2019-10844 at a Glance

CVE Identifier CVE-2019-10844
GHSA Identifier GHSA-4q2w-rw7m-xqw6
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-807: Reliance on Untrusted Inputs in a Security Decision
Affected Product Nnabla
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.0/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-2019-10844

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

nnabla fixed: 1.0.10
pip install nnabla>=1.0.10
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 nnabla

How to Check if You Are Affected

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

pip show nnabla

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-807: Reliance on Untrusted Inputs in a Security Decision, where the product uses a protection mechanism that relies on the existence or values of an input, but the input can be modified by an untrusted actor in a way that bypasses the protection mechanism. In Nnabla, 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

nbla/logger.cpp in libnnabla.a in Sony Neural Network Libraries (aka nnabla) prior to v1.0.10 relies on the HOME environment variable, which might be untrusted.

CVE-2019-10844 Affected Nnabla Versions

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

References

Frequently Asked Questions

What is CVE-2019-10844?
CVE-2019-10844 is a security vulnerability in Nnabla involving Sony Neural Network Libraries reliance on untrusted inputs prior to v1.0.10 under CWE-807: Reliance on Untrusted Inputs in a Security Decision.
Which Nnabla versions are affected?
Affected versions include releases prior to 1.0.10 across affected packages: nnabla.
What version fixes CVE-2019-10844?
Upgrading to 1.0.10 (or the latest patched release for your respective branch) resolves the vulnerability.
Is nnabla affected?
Yes, nnabla is affected in releases prior to 1.0.10. Upgrade your dependency to 1.0.10 or later.
What is the CVSS score of CVE-2019-10844?
CVE-2019-10844 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2019-10844?
CVE-2019-10844 is classified under CWE-807: Reliance on Untrusted Inputs in a Security Decision (The product uses a protection mechanism that relies on the existence or values of an input, but the input can be modified by an untrusted actor in a way that bypasses the protection mechanism.).
How can I check PyPI dependencies for CVE-2019-10844?
Run the dependency tree command: 'pip show nnabla'. 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-4q2w-rw7m-xqw6",
  "modified" : "2022-07-28T22:05:41Z",
  "published" : "2022-05-13T01:07:57Z",
  "aliases" : [ "CVE-2019-10844" ],
  "summary" : "Sony Neural Network Libraries reliance on untrusted inputs prior to v1.0.10",
  "details" : "nbla/logger.cpp in libnnabla.a in Sony Neural Network Libraries (aka nnabla) prior to v1.0.10 relies on the HOME environment variable, which might be untrusted.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "nnabla"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.10"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-10844"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sony/nnabla/issues/209"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sony/nnabla/pull/299"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sony/nnabla/commit/e87347648ab7210529a0e60f0849680de8e9b63a"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-4q2w-rw7m-xqw6"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/nnabla/PYSEC-2019-107.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/sony/nnabla"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sony/nnabla/releases/tag/v1.0.10"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-807" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-07-28T22:05:41Z",
    "nvd_published_at" : "2019-04-04T05:29:00Z"
  }
}