GitHub Advisoryadvisory · RubyGems

GHSA-9fh3-j99m-f4v7 Code injection in pdf_info

CRITICAL Published 2023-02-24 Modified 2025-03-13 Official page ↗
Aliases
CVE-2022-36231
Ecosystem
RubyGems
Packages
pdf_info
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-78, CWE-94
Reviewed
2023-02-24

Affected packages

• RubyGems pdf_info: <= 0.5.3 (no fix yet)

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.

Related

Alias · CVE (1)

  • CVE-2022-36231 pdf_info 0.5.3 is vulnerable to Command Execution because the Ruby code uses backticks instead of Open3. vulnerability

Weakness · CWE (2)

  • CWE-78 Improper Neutralization of Special Elements used in an OS Command weakness
  • CWE-94 Improper Control of Generation of Code weakness

References