Vulnerabilities in pkg:gem/datagrid

PACKAGE
Advisory Identifier: GHSA-rqp5-pg7w-832p
Advisory Summary

CVE-2019-14281 is a CRITICAL (CVSS 9.8) datagrid contains code injection backdoor vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Datagrid libraries in the RubyGems ecosystem. The issue involves datagrid contains code injection backdoor. Remediation is available in the latest vendor maintenance releases.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:gem/datagrid

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:gem/datagrid. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-rqp5-pg7w-832p CVE-2019-14281 CRITICAL datagrid contains code Injection backdoor

CVE-2019-14281 at a Glance

CVE Identifier CVE-2019-14281
GHSA Identifier GHSA-rqp5-pg7w-832p
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Datagrid
Package Ecosystem RubyGems
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-14281

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

datagrid fixed: Latest secure release
Upgrade datagrid to Latest secure release
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 datagrid

How to Check if You Are Affected

To determine whether your application is affected by CVE-2019-14281, inspect your project dependencies for Datagrid:

inspect dependencies for datagrid

Analyze the terminal output to locate any version of Datagrid in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Datagrid, 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 datagrid gem 1.0.6 for Ruby, as distributed on RubyGems.org, included a code-execution backdoor inserted by a third party.

CVE-2019-14281 Affected Datagrid Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
datagrid
RubyGems
1.0.6
All 1 versions
1.0.6
None specified

References

Frequently Asked Questions

What is CVE-2019-14281?
CVE-2019-14281 is a security vulnerability in Datagrid involving datagrid contains code Injection backdoor under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Datagrid versions are affected?
Affected versions include releases prior to current release patches across affected packages: datagrid.
What version fixes CVE-2019-14281?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is datagrid affected?
Yes, datagrid is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2019-14281?
CVE-2019-14281 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-14281?
CVE-2019-14281 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.).
How can I check RubyGems dependencies for CVE-2019-14281?
Run the dependency tree command: 'inspect dependencies for datagrid'. 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-rqp5-pg7w-832p",
  "modified" : "2023-08-25T21:06:23Z",
  "published" : "2019-07-31T04:21:27Z",
  "aliases" : [ "CVE-2019-14281" ],
  "summary" : "datagrid contains code Injection backdoor",
  "details" : "The datagrid gem 1.0.6 for Ruby, as distributed on RubyGems.org, included a code-execution backdoor inserted by a third party.",
  "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" : "RubyGems",
      "name" : "datagrid"
    },
    "versions" : [ "1.0.6" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-14281"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubygems/rubygems.org/issues/2072"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/datagrid/CVE-2019-14281.yml"
  }, {
    "type" : "WEB",
    "url" : "https://rubygems.org/gems/datagrid/versions"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-94" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-07-31T03:56:22Z",
    "nvd_published_at" : "2019-07-26T05:15:00Z"
  }
}