Remote Code Execution (RCE) Affecting org.mybatis:mybatis package, versions [,3.5.6)


0.0
medium

Snyk CVSS

    Attack Complexity High
    Integrity High

    Threat Intelligence

    EPSS 0.41% (74th percentile)
Expand this section
NVD
8.1 high

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-JAVA-ORGMYBATIS-1017032
  • published 11 Oct 2020
  • disclosed 11 Oct 2020
  • credit Unknown

How to fix?

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

Overview

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

References