Link Following Affecting juce-framework/JUCE package, versions [,6.1.5)
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.Test your applications
- Snyk ID SNYK-UNMANAGED-JUCEFRAMEWORKJUCE-2388608
- published 30 Jan 2022
- disclosed 26 Jan 2022
- credit Snyk Security Research Team
How to fix?
juce-framework/JUCE to version 6.1.5 or higher.
juce-framework/JUCE is an open-source cross-platform C++ application framework for creating high quality desktop and mobile applications, including VST, VST3, AU, AUv3, RTAS and AAX audio plug-ins.
Affected versions of this package are vulnerable to Link Following. This vulnerability is triggered when a malicious archive is crafted with an entry containing a symbolic link.
When extracted, the symbolic link is followed outside of the target dir allowing writing arbitrary files on the target host. In some cases, this can allow an attacker to execute arbitrary code.
The vulnerable code is in the
ZipFile::uncompressEntry function in
juce_ZipFile.cpp and is executed when the archive is extracted upon calling
uncompressTo() on a ZipFile object.