newspaperclub/pdf_info · Security
Code injection in pdf_info
- GHSA ID
- GHSA-9fh3-j99m-f4v7
- CVE ID
- CVE-2022-36231
- Severity
- critical
- Published
- Updated
- CVSS
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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.
CWEs
- CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
- CWE-94 · Improper Control of Generation of Code ('Code Injection')
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-36231 ↗
- https://github.com/affix/CVE-2022-36231 ↗
- https://rubygems.org/gems/pdf_info ↗
- https://github.com/newspaperclub/pdf_info/issues/16 ↗
- https://github.com/newspaperclub/pdf_info/pull/15 ↗
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/pdf_info/CVE-2022-36231.yml ↗
- https://github.com/advisories/GHSA-9fh3-j99m-f4v7 ↗