CVE-2022-36231 Code injection in pdf_info

Critical 9.8 Published Updated

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.

PackageAffectedFixed in
pdf_info RubyGemsAll versions to 0.5.3None
pdf_info RubyGemsAll versions to 0.5.3None

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.

Is CVE-2022-36231 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free