CVE-2022-36231 Code injection in pdf_info
Attackers can execute arbitrary commands via the pdf_info Ruby library due to unsafe backtick usage.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2022-36231?
CVE-2022-36231 is a critical command injection vulnerability in n/a, published on 23 Feb 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
pdf_info 0.5.3 is vulnerable to Command Execution because the Ruby code uses backticks instead of Open3.
Weakness: CWE-78
Which versions are affected by CVE-2022-36231?
2 open source packages ship an affected version, including pdf_info. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
pdf_info RubyGems | All versions to 0.5.3 | None |
pdf_info RubyGems | All versions to 0.5.3 | None |
Products include Newspaperclub Pdf Info.
How do I fix CVE-2022-36231?
No fix has been published for CVE-2022-36231 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2022-36231 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-36231 exists.
Public exploit code: 1 proofs of concept on GitHub.
Sources
Also known as GHSA-9fh3-j99m-f4v7.