NULL Pointer Dereference Affecting net.lingala.zip4j:zip4j package, versions [,2.7.0)

  • Attack Complexity


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


  • published

    15 Feb 2021

  • disclosed

    15 Feb 2021

  • credit

    Martin D'Aloia

How to fix?

Upgrade net.lingala.zip4j:zip4j to version 2.7.0 or higher.


net.lingala.zip4j:zip4j is an open source java library to handle zip files.

Affected versions of this package are vulnerable to NULL Pointer Dereference. A ZipFile can be constructed with a null File reference, leading to a null pointer exception on this line when an operation is carried.