org.mybatis:mybatis@3.5.5 vulnerabilities

Direct Vulnerabilities

Known vulnerabilities in the org.mybatis:mybatis package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Remote Code Execution (RCE)

org.mybatis:mybatis is a SQL mapper framework

Affected versions of this package are vulnerable to Remote Code Execution (RCE). It mishandles deserialization of object streams. All of the following conditions needs to be met in order to trigger RCE.

  1. the user enabled the built-in 2nd level cache [1]
  2. the user did not setup JEP-290 filter
  3. the attacker found a way to modify entries of the private Map field i.e. org.apache.ibatis.cache.impl.PerpetualCache.cache and a valid cache key

How to fix Remote Code Execution (RCE)?

Upgrade org.mybatis:mybatis to version 3.5.6 or higher.

[,3.5.6)