Vulnerabilities in pkg:gem/md2pdf
PACKAGECVE-2013-1948 is a CRITICAL md2pdf allows context-dependent attackers to vulnerability (General Security Weakness) affecting Md2pdf libraries in the RubyGems ecosystem. The issue involves md2pdf allows context-dependent attackers to execute arbitrary commands via shell metacharacters in a filename. Remediation is available in the latest vendor maintenance releases.
pkg:gem/md2pdf
Vulnerability advisories affecting package pkg:gem/md2pdf. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-99ch-8mvp-g7m5 | CVE-2013-1948 | CRITICAL | md2pdf allows context-dependent attackers to execute arbitrary commands via shell metacharacters in a filename |
CVE-2013-1948 at a Glance
How to Fix CVE-2013-1948
To remediate this vulnerability, upgrade all affected Md2pdf 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 md2pdf to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for md2pdf
How to Check if You Are Affected
To determine whether your application is affected by CVE-2013-1948, inspect your project dependencies for Md2pdf:
inspect dependencies for md2pdf
Analyze the terminal output to locate any version of Md2pdf 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 General Security Weakness. In Md2pdf, 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
CVE-2013-1948 Affected Md2pdf Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
md2pdf
|
RubyGems |
≤ 0.0.1
|
|
References
Frequently Asked Questions
What is CVE-2013-1948?
Which Md2pdf versions are affected?
What version fixes CVE-2013-1948?
Is md2pdf affected?
What CWE is associated with CVE-2013-1948?
How can I check RubyGems dependencies for CVE-2013-1948?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-99ch-8mvp-g7m5",
"modified" : "2023-01-23T16:37:19Z",
"published" : "2017-10-24T18:33:37Z",
"aliases" : [ "CVE-2013-1948" ],
"summary" : "md2pdf allows context-dependent attackers to execute arbitrary commands via shell metacharacters in a filename",
"details" : "`converter.rb` in the md2pdf gem 0.0.1 for Ruby allows context-dependent attackers to execute arbitrary commands via shell metacharacters in a filename.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "md2pdf"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "0.0.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-1948"
}, {
"type" : "WEB",
"url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/83416"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/md2pdf/CVE-2013-1948.yml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rwestgeest/md2pdf"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20130503194109/http://www.securityfocus.com/bid/59061"
}, {
"type" : "WEB",
"url" : "http://vapid.dhs.org/advisories/md2pdf-remote-exec.html"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:28:02Z",
"nvd_published_at" : "2013-04-25T23:55:01Z"
}
}