Description
@offactory/compress-fonts before 1.1.1 contains an OS command injection vulnerability that allows attackers to execute shell commands by supplying font files with crafted names. Font paths are interpolated unquoted into a FontForge command run through child_process.execSync, so shell metacharacters in file names execute commands with the Node.js process privileges.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| adamarcanov | compress-fonts | < 1.1.1 | 1.1.1 |
References
- https://github.com/adamarcanov/compress-fonts/pull/1 patch issue-tracking
- https://github.com/adamarcanov/compress-fonts/commit/12002e5866af2163cd34424baae5a53338951a5d patch
- https://github.com/adamarcanov/compress-fonts/blob/7b07d20b3125a7bba8f933eeca21f5a09c8fb62a/index.js#L48 technical-description
- VulnCheck Advisory: @offactory/compress-fonts before 1.1.1 OS Command Injection via Font File Names third-party-advisory