Miggo Logo

CVE-2021-43113: Command injection in itext7-core

9.8

CVSS Score
3.1

Basic Information

EPSS Score
0.83615%
Published
12/16/2021
Updated
3/27/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
com.itextpdf:itext7-coremaven< 7.1.177.1.17
com.itextpdf:itextpdfmaven< 5.5.13.35.5.13.3

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability description and PoC explicitly reference command injection through Ghostscript command line handling in GhostscriptHelper.java. The executeGhostScript method would be responsible for building and executing the gs command. The PoC demonstrates that user-controlled filenames passed through CompareTool are incorporated into the command line without proper escaping, enabling parameter injection. The CWE-77 classification confirms this is a command injection scenario where user input isn't neutralized before being used in system commands.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

iT*xtP** in iT*xt ***or* *.*.** *llows *omm*n* inj**tion vi* * *omp*r*Tool *il*n*m* t**t is mis**n*l** on t** *s (*k* **osts*ript) *omm*n* lin* in **osts*ript**lp*r.j*v*.

Reasoning

T** vuln*r**ility **s*ription *n* Po* *xpli*itly r***r*n** *omm*n* inj**tion t*rou** **osts*ript *omm*n* lin* **n*lin* in `**osts*ript**lp*r.j*v*`. T** `*x**ut***ostS*ript` m*t*o* woul* ** r*sponsi*l* *or *uil*in* *n* *x**utin* t** `*s` *omm*n*. T**