CVE-2019-1000013: Hex core Hex Authenticity Of Signed Packages Vulnerability

HIGH
Advisory Identifier: GHSA-q3cc-rr2c-87r6
CVSS 8.8
CWE-345
Published
Advisory Summary

CVE-2019-1000013 is a HIGH (CVSS 8.8) hex authenticity of signed packages vulnerability (CWE-345: Insufficient Verification of Data Authenticity) affecting Hex core libraries in the Hex ecosystem. The issue involves hex authenticity of signed packages not validated. Remediation is available by upgrading affected packages to version 0.4.0.

CVE-2019-1000013 at a Glance

CVE Identifier CVE-2019-1000013
GHSA Identifier GHSA-q3cc-rr2c-87r6
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-345: Insufficient Verification of Data Authenticity
Affected Product Hex core
Package Ecosystem Hex
Published Date
Last Updated

Security Impact

CVSS: 8.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:R/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 Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2019-1000013

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

hex_core fixed: 0.4.0
Upgrade hex_core to 0.4.0
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 hex_core

How to Check if You Are Affected

To determine whether your application is affected by CVE-2019-1000013, inspect your project dependencies for Hex core:

inspect dependencies for hex_core

Analyze the terminal output to locate any version of Hex core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.4.0), 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-345: Insufficient Verification of Data Authenticity, where the product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data. In Hex core, 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

Hex package manager hex_core version 0.3.0 and earlier contains a Signing oracle vulnerability in Package registry verification that can result in Package modifications not detected, allowing code execution. This attack appears to be exploitable via victim fetches packages from malicious/compromised mirror. This vulnerability appears to have been fixed in 0.4.0.

CVE-2019-1000013 Affected Hex core Versions

1 component(s)
Fixed Versions:
0.4.0
Product / Package Ecosystem Affected Versions Fixed Version
hex_core
Hex
< 0.4.0
0.4.0

References

Frequently Asked Questions

What is CVE-2019-1000013?
CVE-2019-1000013 is a security vulnerability in Hex core involving Hex authenticity of signed packages not validated under CWE-345: Insufficient Verification of Data Authenticity.
Which Hex core versions are affected?
Affected versions include releases prior to 0.4.0 across affected packages: hex_core.
What version fixes CVE-2019-1000013?
Upgrading to 0.4.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is hex_core affected?
Yes, hex_core is affected in releases prior to 0.4.0. Upgrade your dependency to 0.4.0 or later.
What is the CVSS score of CVE-2019-1000013?
CVE-2019-1000013 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2019-1000013?
CVE-2019-1000013 is classified under CWE-345: Insufficient Verification of Data Authenticity (The product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data.).
How can I check Hex dependencies for CVE-2019-1000013?
Run the dependency tree command: 'inspect dependencies for hex_core'. 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-q3cc-rr2c-87r6",
  "modified" : "2024-05-02T12:18:21Z",
  "published" : "2022-05-13T01:07:56Z",
  "aliases" : [ "CVE-2019-1000013" ],
  "summary" : "Hex authenticity of signed packages not validated",
  "details" : "Hex package manager hex_core version 0.3.0 and earlier contains a Signing oracle vulnerability in Package registry verification that can result in Package modifications not detected, allowing code execution. This attack appears to be exploitable via victim fetches packages from malicious/compromised mirror. This vulnerability appears to have been fixed in 0.4.0.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Hex",
      "name" : "hex_core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.4.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-1000013"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/hexpm/hex_core/pull/48"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/hexpm/hex_core/pull/51"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/hexpm/hex_core"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-345" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-02T12:18:21Z",
    "nvd_published_at" : "2019-02-04T21:29:00Z"
  }
}