Paper/Archive/CVE-2020-37282

CVE-2020-37282

vworld4u office-converter — office-converter through 1.0.2 OS Command Injection via fileName in generatePdf

Description · from the CVE record

office-converter through 1.0.2 contains an OS command injection vulnerability that allows attackers to execute commands by supplying a crafted fileName to generatePdf() or generateHtml(). Attackers can embed $(...), backticks, or a closing quote with shell metacharacters in the file name, which is concatenated into an unoconv command run via child_process.exec(), executing commands with Node.js process privileges.

Affected

ProductAffectedFixed inSource
office-converter≤ 1.0.2–CNA

Scores by source

VulnCheck (CNA)9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
VulnCheck (CNA)9.3CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CISA ADPSSVCExploitation: poc · Automatable: yes · Technical impact: total

References

writeupgithub.com/advisories/GHSA-9p64-h5q4-phpmexploitgithub.com/vworld4u/office-converter/pull/9writeupgithub.com/vworld4u/office-converter/blob/b1ea855d0001dc7a5d66343698634dbc06b72c2d/index.js#L19-L20writeupvulncheck.com/advisories/office-converter-through-1.0.2-os-command-injection-via-filename-in-generatepdf