GHSA-c2v4-chx5-vff6: Duplicate Advisory Integer Overflow Vulnerability

HIGH
CWE-190
Published
Advisory Summary

GHSA-c2v4-chx5-vff6 is a HIGH integer overflow vulnerability (CWE-190: Integer Overflow or Wraparound) affecting Duplicate Advisory libraries in the RubyGems ecosystem. The issue involves integer overflow in cmark-gfm table parsing extension leads to heap memory corruption. Remediation is available in the latest vendor maintenance releases.

GHSA-c2v4-chx5-vff6 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-c2v4-chx5-vff6
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-190: Integer Overflow or Wraparound
Affected Product Duplicate Advisory
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix GHSA-c2v4-chx5-vff6

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

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

How to Check if You Are Affected

To determine whether your application is affected by GHSA-c2v4-chx5-vff6, inspect your project dependencies for Duplicate Advisory:

inspect dependencies for commonmarker

Analyze the terminal output to locate any version of Duplicate Advisory 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-190: Integer Overflow or Wraparound, where the product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. this occurs when an integer value is incremented to a value that is too large to store in the associated representation. when this occurs, the value may become a very small or negative number. In Duplicate Advisory, 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

### Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-fmx4-26r3-wxpf. This link is maintained to preserve external references. ### Original Description CommonMarker versions prior to 0.23.4 are at risk of an integer overflow vulnerability. This vulnerability can result in possibly unauthenticated remote attackers to cause heap memory corruption, potentially leading to an information leak or remote code execution, via parsing tables with marker rows that contain more than UINT16_MAX columns.

GHSA-c2v4-chx5-vff6 Affected Duplicate Advisory Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
commonmarker
RubyGems

References

Frequently Asked Questions

What is GHSA-c2v4-chx5-vff6?
GHSA-c2v4-chx5-vff6 is a security vulnerability in Duplicate Advisory involving Integer overflow in cmark-gfm table parsing extension leads to heap memory corruption under CWE-190: Integer Overflow or Wraparound.
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to current release patches across affected packages: commonmarker.
What version fixes GHSA-c2v4-chx5-vff6?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is commonmarker affected?
Yes, commonmarker is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with GHSA-c2v4-chx5-vff6?
GHSA-c2v4-chx5-vff6 is classified under CWE-190: Integer Overflow or Wraparound (The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.).
How can I check RubyGems dependencies for GHSA-c2v4-chx5-vff6?
Run the dependency tree command: 'inspect dependencies for commonmarker'. 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-c2v4-chx5-vff6",
  "modified" : "2024-01-05T15:31:42Z",
  "published" : "2024-01-04T21:30:24Z",
  "withdrawn" : "2024-01-05T15:31:42Z",
  "aliases" : [ ],
  "summary" : "Duplicate Advisory: Integer overflow in cmark-gfm table parsing extension leads to heap memory corruption",
  "details" : "### Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-fmx4-26r3-wxpf. This link is maintained to preserve external references.\n\n### Original Description\nCommonMarker versions prior to 0.23.4 are at risk of an integer overflow vulnerability. This vulnerability can result in possibly unauthenticated remote attackers to cause heap memory corruption, potentially leading to an information leak or remote code execution, via parsing tables with marker rows that contain more than UINT16_MAX columns.\n\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "commonmarker"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 0.23.4"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/github/cmark-gfm/security/advisories/GHSA-mc3g-88wq-6f4x"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gjtorikian/commonmarker/security/advisories/GHSA-fmx4-26r3-wxpf"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-22051"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gjtorikian/commonmarker/commit/ab4504fd17460627a6ab255bc3c63e8e5fc6aed3"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-fmx4-26r3-wxpf"
  }, {
    "type" : "WEB",
    "url" : "https://vulncheck.com/advisories/vc-advisory-GHSA-fmx4-26r3-wxpf"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-190" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-05T15:31:42Z",
    "nvd_published_at" : "2024-01-04T21:15:10Z"
  }
}