Vulnerability · Published Mar 31, 2022 · Assigned by GitHub_M
CVE-2022-24803Command Injection vulnerability in asciidoctor-include-ext
Critical 10.0
In plain English
A critical-severity OS command injection in asciidoctor-include-ext from jirutka. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 2.7% (higher than 86% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | ruby-asciidoctor-include-ext | 0.4.0-2 | DEBIAN-CVE-2022-24803 |
| Debian:13 | ruby-asciidoctor-include-ext | 0.4.0-2 | DEBIAN-CVE-2022-24803 |
| Debian:14 | ruby-asciidoctor-include-ext | 0.4.0-2 | DEBIAN-CVE-2022-24803 |
| RubyGems | asciidoctor-include-ext | 0.4.0 | GHSA-v222-6mr4-qj29 |
| Ubuntu:22.04:LTS | ruby-asciidoctor-include-ext | no fix listed | UBUNTU-CVE-2022-24803 |
| Ubuntu:25.10 | ruby-asciidoctor-include-ext | no fix listed | UBUNTU-CVE-2022-24803 |
| Ubuntu:26.10 | ruby-asciidoctor-include-ext | no fix listed | UBUNTU-CVE-2022-24803 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| jirutka | asciidoctor-include-ext | < 0.4.0 |
Weakness: CWE-78 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/jirutka/asciidoctor-include-ext/security/advisories/GHSA-v222-6mr4-qj29 x_refsource_CONFIRM
- https://github.com/jirutka/asciidoctor-include-ext/commit/c7ea001a597c7033575342c51483dab7b87ae155 x_refsource_MISC
- https://github.com/jirutka/asciidoctor-include-ext/commit/cbaccf3de533cbca224bf61d0b74e4b84d41d8ee x_refsource_MISC