CVE-2022-24803:
Command Injection vulnerability in asciidoctor-include-ext
10
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
3/31/2022
Updated
5/4/2023
KEV Status
No
Technology
Ruby
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
asciidoctor-include-ext | rubygems | < 0.4.0 | 0.4.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from two key functions: 1) target_uri? failed to properly validate URIs by allowing pipe-based command injection via linebreak bypasses. 2) read_lines directly passed user-controlled input to IO.foreach/URI.open. The patch replaced target_uri? with strict HTTP validation (target_http?) and modified read_lines to use safer URI parsing, confirming these were the vulnerable components.