Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. pdf_info
  4. ›
  5. CVE-2022-36231

CVE-2022-36231: Code injection in pdf_info

February 24, 2023 (updated March 13, 2025)

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.

References

  • github.com/advisories/GHSA-9fh3-j99m-f4v7
  • github.com/affix/CVE-2022-36231
  • github.com/newspaperclub/pdf_info
  • github.com/newspaperclub/pdf_info/issues/16
  • github.com/newspaperclub/pdf_info/pull/15
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/pdf_info/CVE-2022-36231.yml
  • nvd.nist.gov/vuln/detail/CVE-2022-36231
  • rubygems.org/gems/pdf_info

Code Behaviors & Features

Detect and mitigate CVE-2022-36231 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.5.3

Solution

Unfortunately, there is no solution available yet.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • 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')

Source file

gem/pdf_info/CVE-2022-36231.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:47 +0000.