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.

Severity (CVSS 3.1)10.0Critical
Exploit odds (30 days)2.7%top 14.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12ruby-asciidoctor-include-ext0.4.0-2DEBIAN-CVE-2022-24803
Debian:13ruby-asciidoctor-include-ext0.4.0-2DEBIAN-CVE-2022-24803
Debian:14ruby-asciidoctor-include-ext0.4.0-2DEBIAN-CVE-2022-24803
RubyGemsasciidoctor-include-ext0.4.0GHSA-v222-6mr4-qj29
Ubuntu:22.04:LTSruby-asciidoctor-include-extno fix listedUBUNTU-CVE-2022-24803
Ubuntu:25.10ruby-asciidoctor-include-extno fix listedUBUNTU-CVE-2022-24803
Ubuntu:26.10ruby-asciidoctor-include-extno fix listedUBUNTU-CVE-2022-24803

Affected products (as reported)

VendorProductVersions
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