{"id":"CVE-2022-36231","aliases":["CVE-2022-36231","GHSA-9fh3-j99m-f4v7"],"related":[],"kind":"vulnerability","state":"published","title":"Code injection in pdf_info","summary":"pdf_info 0.5.3 is vulnerable to Command Execution because the Ruby code uses backticks instead of Open3.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"pdf_info 0.5.3 is vulnerable to Command Execution because the Ruby code uses backticks instead of Open3.","source":"cvelist"},{"lang":"en","text":"pdf_info 0.5.3 is vulnerable to Command Execution. An attacker using a specially crafted payload may execute OS commands by using command chaining because during object initalization there is no validation performed and the user provided path is used.","format":"markdown","source":"ghsa"}],"published":"2023-02-23T00:00:00.000Z","modified":"2026-06-17T04:53:05.377Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-78","CWE-94"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"0.5.3"}],"ecosystem":"RubyGems","package":"pdf_info","purl":"pkg:gem/pdf_info","source":"ghsa"},{"ranges":[{"status":"affected","version":"0.5.3"}],"vendor":"newspaperclub","product":"pdf_info","cpe":"cpe:2.3:a:newspaperclub:pdf_info:0.5.3:*:*:*:*:ruby:*:*","source":"nvd"}],"references":[{"url":"https://rubygems.org/gems/pdf_info","tags":["product","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/affix/CVE-2022-36231","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/newspaperclub/pdf_info/pull/15","tags":["patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/newspaperclub/pdf_info/issues/16","tags":["patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36231","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/newspaperclub/pdf_info","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/pdf_info/CVE-2022-36231.yml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2025-03-13T19:39:44.267Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-36231","url":"https://www.cve.org/CVERecord?id=CVE-2022-36231","licence":"CVE Terms of Use","modified":"2025-03-13T19:40:15.624Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9fh3-j99m-f4v7","url":"https://github.com/advisories/GHSA-9fh3-j99m-f4v7","licence":"CC-BY-4.0","modified":"2025-03-13T22:22:35.249Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-36231","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36231","licence":"Public domain","modified":"2026-06-17T04:53:05.377Z"}],"updatedAt":"2026-11-25T22:58:18.740Z","epss":{"score":0.03014,"percentile":0.878,"date":"2026-12-02T12:00:21.000Z"}}