Lucene search

K
veracodeVeracode Vulnerability DatabaseVERACODE:39914
HistoryMar 23, 2023 - 12:53 a.m.

Remote Code Execution (RCE)

2023-03-2300:53:31
Veracode Vulnerability Database
sca.analysiscenter.veracode.com
43
remote code execution
knplabs/knp-snappy
vulnerability

0.021 Low

EPSS

Percentile

89.1%

knplabs/knp-snappy is vulnerable to Remote Code Execution (RCE). The vulnerability is due to the library not checking the file type during upload, which allows an attacker to upload a phar:// file which will be deserialized during the file_exists function because it fails to check the file type, resulting in Remote Code Execution. If a user can control the output file from the generateFromHtml function, arbitrary deserialization will occur.