CVE-2022-24803 Command Injection vulnerability in asciidoctor-include-ext
Attackers can execute arbitrary system commands via user-supplied AsciiDoc markup in the asciidoctor-include-ext library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-24803?
CVE-2022-24803 is a critical command injection vulnerability in jirutka asciidoctor-include-ext, published on 31 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Asciidoctor-include-ext is Asciidoctor’s standard include processor reimplemented as an extension. Versions prior to 0.4.0, when used to render user-supplied input in AsciiDoc markup, may allow an attacker to execute arbitrary system commands on the host operating system. This attack is possible even when `allow-uri-read` is disabled! The problem has been patched in the referenced commits.
Weakness: CWE-78
Which versions are affected by CVE-2022-24803?
2 open source packages ship an affected version, including asciidoctor-include-ext. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
asciidoctor-include-ext RubyGems | All versions | 0.4.0 |
asciidoctor-include-ext RubyGems | All versions | 0.4.0 |
Products include Asciidoctor-Include-Ext Project Asciidoctor-Include-Ext.
How do I fix CVE-2022-24803?
Upgrade asciidoctor-include-ext to 0.4.0 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2022-24803 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-24803 exists.
Sources
Also known as DEBIAN-CVE-2022-24803, GHSA-v222-6mr4-qj29, UBUNTU-CVE-2022-24803.