🛡️ CVE-2022-24803 — asciidoctor-include-ext

🔴 CVSS 9.5 — Critical ⚠️ Exploit Public CWE-78 OSV
9.5
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Command Injection vulnerability in asciidoctor-include-ext

Impact

Applications using [Asciidoctor (Ruby)](https://github.com/asciidoctor/asciidoctor) with [asciidoctor-include-ext](https://github.com/jirutka/asciidoctor-include-ext) (prior to version 0.4.0), which 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!~~ (EDIT: it’s not)

Patches

The vulnerability has been fixed in commit c7ea001 (and further improved in cbaccf3), which is included in version [0.4.0](https://rubygems.org/gems/asciidoctor-include-ext/versions/0.4.0).

Workarounds

```rb

require 'asciidoctor/include_ext'

class Asciidoctor::IncludeExt::IncludeProcessor

# Overrides superclass private method to mitigate Command Injection

# vulnerability in asciidoctor-include-ext <0.4.0.

def target_uri?(target)

target.downcase.start_with?('http://', 'https://') \

&& URI.parse(target).is_a?(URI::HTTP)

rescue URI::InvalidURIError

false

end

end

```

References

  • https://sakurity.com/blog/2015/02/28/openuri.html

Credits

This vulnerability was discovered by Joern Schneeweisz from the GitLab Security Research Team.

For more information

See commit message c7ea001.

If you have any questions or comments about this advisory open an issue in [jirutka/asciidoctor-include-ext](https://github.com/jirutka/asciidoctor-include-ext/issues/).

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is changed, meaning a successful attack can affect components beyond the vulnerable one. Rated impact: confidentiality high, integrity high, availability high.

Weakness class

CVE-2022-24803 is classified as CWE-78: OS Command Injection. Untrusted input reaches a shell command without neutralisation, so an attacker can run arbitrary operating system commands.

Affected software

CVE-2022-24803 is recorded against 1 package.

  • asciidoctor-include-ext (fixed in 0.4.0)

Timeline and source

Published on 31 March 2022 and last revised on 17 June 2026. A public exploit is known to exist, which raises the urgency of patching considerably. A vendor advisory or fix has been published. Record sourced from OSV.

References

github.com (Web)
nvd.nist.gov (Advisory)
github.com (Web)
github.com (Web)
github.com (Package)
github.com (Web)

CVE-2022-24803 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity CRITICAL
CVSS Score 9.5
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
CWE CWE-78
Public Exploit ⚠️ Yes
Source OSV
Published 2022-03-31
Updated 2026-08-12
Modified 2026-06-17

Affected Packages

Software From version Fixed in
asciidoctor-include-ext 0.4.0

Exploit Protection

Are you running asciidoctor-include-ext?

CVE-2022-24803 carries CVSS 9.5 Critical rating and a public exploit already exists. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.

Check My Site For CVE-2022-24803 →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2022