GHSA-48wp-p9qv-4j64: Commonmarker Denial of Service Vulnerability
MODERATEGHSA-48wp-p9qv-4j64 is a MODERATE denial of service vulnerability (General Security Weakness) affecting Commonmarker libraries in the RubyGems ecosystem. The issue involves commonmarker vulnerable to to several quadratic complexity bugs that may lead to denial of service. Remediation is available by upgrading affected packages to version 0.23.9.
GHSA-48wp-p9qv-4j64 at a Glance
How to Fix GHSA-48wp-p9qv-4j64
To remediate this vulnerability, upgrade all affected Commonmarker dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade commonmarker to 0.23.9
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-48wp-p9qv-4j64, inspect your project dependencies for Commonmarker:
inspect dependencies for commonmarker
Analyze the terminal output to locate any version of Commonmarker in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.23.9), 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 General Security Weakness. In Commonmarker, 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
GHSA-48wp-p9qv-4j64 Affected Commonmarker Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
commonmarker
|
RubyGems |
< 0.23.9
|
0.23.9
|
References
Frequently Asked Questions
What is GHSA-48wp-p9qv-4j64?
Which Commonmarker versions are affected?
What version fixes GHSA-48wp-p9qv-4j64?
Is commonmarker affected?
What CWE is associated with GHSA-48wp-p9qv-4j64?
How can I check RubyGems dependencies for GHSA-48wp-p9qv-4j64?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-48wp-p9qv-4j64",
"modified" : "2023-04-11T22:08:18Z",
"published" : "2023-04-11T22:08:18Z",
"aliases" : [ ],
"summary" : "Commonmarker vulnerable to to several quadratic complexity bugs that may lead to denial of service",
"details" : "## Impact\n\nSeveral quadratic complexity bugs in commonmarker's underlying [`cmark-gfm`](https://github.com/github/cmark-gfm) library may lead to unbounded resource exhaustion and subsequent denial of service.\n\nThe following vulnerabilities were addressed:\n\n* [CVE-2023-24824](https://github.com/github/cmark-gfm/security/advisories/GHSA-66g8-4hjf-77xh)\n* [CVE-2023-26485](https://github.com/github/cmark-gfm/security/advisories/GHSA-r8vr-c48j-fcc5)\n\nFor more information, consult the release notes for version [`0.23.0.gfm.10`](https://github.com/github/cmark-gfm/releases/tag/0.29.0.gfm.10) and [`0.23.0.gfm.11`](https://github.com/github/cmark-gfm/releases/tag/0.29.0.gfm.11).\n\n## Mitigation\n\nUsers are advised to upgrade to commonmarker version [`0.23.9`](https://rubygems.org/gems/commonmarker/versions/0.23.9).",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "commonmarker"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.23.9"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/github/cmark-gfm/security/advisories/GHSA-66g8-4hjf-77xh"
}, {
"type" : "WEB",
"url" : "https://github.com/github/cmark-gfm/security/advisories/GHSA-r8vr-c48j-fcc5"
}, {
"type" : "WEB",
"url" : "https://github.com/gjtorikian/commonmarker/security/advisories/GHSA-48wp-p9qv-4j64"
}, {
"type" : "WEB",
"url" : "https://github.com/gjtorikian/commonmarker/pull/236"
}, {
"type" : "WEB",
"url" : "https://github.com/github/cmark-gfm/releases/tag/0.29.0.gfm.10"
}, {
"type" : "WEB",
"url" : "https://github.com/github/cmark-gfm/releases/tag/0.29.0.gfm.11"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/gjtorikian/commonmarker"
}, {
"type" : "WEB",
"url" : "https://github.com/gjtorikian/commonmarker/releases/tag/v0.23.9"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-04-11T22:08:18Z",
"nvd_published_at" : null
}
}