{"id":"CVE-2022-21165","aliases":["CVE-2022-21165","GHSA-g2c3-vwff-m3xr"],"related":[],"kind":"vulnerability","state":"published","title":"Arbitrary Command Injection","summary":"All versions of package font-converter are vulnerable to Arbitrary Command Injection due to missing sanitization of input that potentially flows into the child_process.exec() function.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"All versions of package font-converter are vulnerable to Arbitrary Command Injection due to missing sanitization of input that potentially flows into the child_process.exec() function.","source":"cvelist"},{"lang":"en","text":"### Overview\nfont-converter is a FontForge wrapper that allows conversion between different font formats (TTF, WOFF, OTF)\n\nAll 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.\n\n### PoC\n```js\nvar PUT = require('font-converter');\nvar x = \"$(touch success);# \";\ntry {\n    new PUT(x, x, x, x);\n} catch (e) {\n    console.log(e);\n}\n```","format":"markdown","source":"ghsa"},{"lang":"es","text":"Todas las versiones del paquete font-converter son vulnerables a una inyección arbitraria de comandos debido a una falta de saneo de la entrada que potencialmente fluye hacia la función child_process.exec()","source":"nvd"}],"published":"2022-08-29T05:00:17.008Z","modified":"2026-06-17T04:25:39.643Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-77"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"unspecified","status":"affected"}],"product":"font-converter","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"1.1.1"}],"ecosystem":"npm","package":"font-converter","purl":"pkg:npm/font-converter","source":"ghsa"},{"ranges":[{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.1.0"},{"status":"affected","version":"1.1.1"}],"vendor":"font_converter_project","product":"font_converter","cpe":"cpe:2.3:a:font_converter_project:font_converter:1.0.0:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-FONTCONVERTER-2976194","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/zgec/node-js-font-converter/blob/master/index.js%23L12","tags":["broken-link","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21165","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/zgec/node-js-font-converter","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/zgec/node-js-font-converter/blob/master/index.js#L12","tags":["web"],"sources":["ghsa"]}],"credits":["OmniTaint"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-21165","url":"https://www.cve.org/CVERecord?id=CVE-2022-21165","licence":"CVE Terms of Use","modified":"2024-09-17T04:15:11.135Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g2c3-vwff-m3xr","url":"https://github.com/advisories/GHSA-g2c3-vwff-m3xr","licence":"CC-BY-4.0","modified":"2024-04-22T23:44:02.873Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-21165","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21165","licence":"Public domain","modified":"2026-06-17T04:25:39.643Z"}],"updatedAt":"2026-11-25T22:58:14.517Z","epss":{"score":0.03162,"percentile":0.88337,"date":"2026-12-01T12:00:22.000Z"}}