Vulnerabilities in pkg:gem/md2pdf

PACKAGE
Advisory Identifier: GHSA-99ch-8mvp-g7m5
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:gem/md2pdf

1 Known Advisory Record(s)

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

CVE Identifier CVE-2013-1948
GHSA Identifier GHSA-99ch-8mvp-g7m5
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Md2pdf
Package Ecosystem RubyGems
Published Date
Last Updated

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.

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

`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.

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?
CVE-2013-1948 is a security vulnerability in Md2pdf involving md2pdf allows context-dependent attackers to execute arbitrary commands via shell metacharacters in a filename under General Security Weakness.
Which Md2pdf versions are affected?
Affected versions include releases prior to current release patches across affected packages: md2pdf.
What version fixes CVE-2013-1948?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is md2pdf affected?
Yes, md2pdf is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2013-1948?
CVE-2013-1948 is classified under General Security Weakness.
How can I check RubyGems dependencies for CVE-2013-1948?
Run the dependency tree command: 'inspect dependencies for md2pdf'. 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-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"
  }
}