{"id":"CVE-2022-36231","aliases":["EUVD-2023-0676","GHSA-9fh3-j99m-f4v7"],"status":"published","title":"Code injection in pdf_info","description":"pdf_info 0.5.3 is vulnerable to Command Execution because the Ruby code uses backticks instead of Open3.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-12","score":0.03014,"percentile":0.87612,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-78","CWE-94"],"published":"2023-02-23T00:00:00Z","modified":"2026-10-28T02:30:58Z","exploits":[{"source":"pocgithub","id":"affix/CVE-2022-36231","title":"affix/CVE-2022-36231","date":"2022-10-26","url":"https://github.com/affix/CVE-2022-36231"}],"affected":[{"source":"ghsa","ecosystem":"RubyGems","package":"pdf_info","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.5.3"}]}]},{"source":"osv","ecosystem":"RubyGems","package":"pdf_info","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.5.3"}]}],"versions":["0.1.0","0.2.0","0.3.0","0.3.1","0.4.0","0.5.0","0.5.1","0.5.2","0.5.3"]}],"products":[{"vendor":"newspaperclub","product":"pdf_info"}],"references":[{"url":"https://rubygems.org/gems/pdf_info","tags":["x_transferred","Product","web"]},{"url":"https://github.com/affix/CVE-2022-36231","tags":["x_transferred","Exploit","Third Party Advisory","package","web"]},{"url":"https://github.com/newspaperclub/pdf_info/pull/15","tags":["x_transferred","Patch","fix","web"]},{"url":"https://github.com/newspaperclub/pdf_info/issues/16","tags":["x_transferred","Patch","report","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36231","tags":["advisory"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/pdf_info/CVE-2022-36231.yml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-9fh3-j99m-f4v7"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/36xxx/CVE-2022-36231.json","tags":["advisory"]},{"url":"https://github.com/newspaperclub/pdf_info","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2022-36231","description":"pdf_info 0.5.3 is vulnerable to Command Execution because the Ruby code uses backticks instead of Open3.","status":"published","published":"2023-02-23T00:00:00Z","modified":"2025-03-13T19:40:15.624Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"adp"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:34:35.615708Z"}],"euvd":[{"id":"EUVD-2023-0676","description":"pdf_info 0.5.3 is vulnerable to Command Execution because the Ruby code uses backticks instead of Open3.","status":"published","published":"2023-02-23T00:00:00Z","modified":"2025-03-13T19:40:15Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T20:53:03.669796Z"}],"ghsa":[{"id":"GHSA-9fh3-j99m-f4v7","title":"Code injection in pdf_info","description":"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.","status":"published","published":"2023-02-24T00:30:17Z","modified":"2025-03-13T21:40:31Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-78","CWE-94"],"updated_at":"2026-11-02T14:38:34.992855Z"}],"nvd":[{"id":"CVE-2022-36231","description":"pdf_info 0.5.3 is vulnerable to Command Execution because the Ruby code uses backticks instead of Open3.","status":"published","published":"2023-02-23T22:15:11.117Z","modified":"2026-06-17T04:53:05.377Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"secondary"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:07:36.601381Z"}],"osv":[{"id":"CVE-2022-36231","description":"pdf_info 0.5.3 is vulnerable to Command Execution because the Ruby code uses backticks instead of Open3.","status":"published","published":"2023-02-23T00:00:00Z","modified":"2026-10-28T02:30:58.436244765Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:26.195407Z"},{"id":"GHSA-9fh3-j99m-f4v7","title":"Code injection in pdf_info","description":"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.","status":"published","published":"2023-02-24T00:30:17Z","modified":"2025-03-13T22:22:35.249523Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-78","CWE-94"],"updated_at":"2026-11-02T15:46:43.524801Z"}]}}
