{"answers":{"affected":"2 open source packages ship an affected version, including md2pdf. It affects 1 product.","exploited":"There is no known exploitation of CVE-2013-1948 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2013-1948 yet. Limit exposure of the affected software until one is available.","what":"CVE-2013-1948 is a critical command injection vulnerability in n/a, published on 25 Apr 2013."},"fix_prompt":"Check this codebase for CVE-2013-1948 and fix it if it is affected.\n\nWhat it is: CVE-2013-1948 is a critical command injection vulnerability in n/a, published on 25 Apr 2013. \nExploitation: There is no known exploitation of CVE-2013-1948 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- md2pdf (RubyGems): affected all versions up to 0.0.1; no fix listed\n- md2pdf (RubyGems): affected all versions up to 0.0.1; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2013-1948/ (Markdown: https://insights.sbomify.com/CVE-2013-1948/index.md)","id":"CVE-2013-1948","markdown":"https://insights.sbomify.com/CVE-2013-1948/index.md","name":"CVE-2013-1948","record":{"aliases":["GHSA-99ch-8mvp-g7m5"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"unknown","non_default_config":false,"product_category":"Ruby md2pdf gem","requires_auth":"none","summary":"Attackers can execute arbitrary commands via shell metacharacters in filenames processed by the md2pdf Ruby gem.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"md2pdf","vendor":"rob_westgeest"}],"cvss":{"score":10,"severity":"critical","source":"nvd","vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","version":"2.0"},"cwes":[],"description":"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.","ecosystems":["RubyGems"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"md2pdf allows context-dependent attackers to execute arbitrary commands via shell metacharacters in a filename","id":"CVE-2013-1948","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"command_injection","year":"2013"},"n_packages":2,"n_references":4,"next":{"headline":"File upload in n/a","id":"CVE-2013-1949"},"packages":[{"ecosystem":"RubyGems","fixed":[],"introduced":["0"],"last_affected":["0.0.1"],"package":"md2pdf","purl":null,"source":"GHSA-99ch-8mvp-g7m5"},{"ecosystem":"RubyGems","fixed":[],"introduced":["0"],"last_affected":["0.0.1"],"package":"md2pdf","purl":"pkg:gem/md2pdf","source":"GHSA-99ch-8mvp-g7m5"}],"prev":{"headline":"Shell Metacharacter Injection in kelredd-pruview","id":"CVE-2013-1947"},"products":["n/a"],"published":"2013-04-25","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-06","vendors":["n/a"]},"summary":"Attackers can execute arbitrary commands via shell metacharacters in filenames processed by the md2pdf Ruby gem.","url":"https://insights.sbomify.com/CVE-2013-1948/"}