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


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.6% (69th percentile)

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 Learn

Learn about Remote Code Execution (RCE) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGMYBATIS-1017032
  • published11 Oct 2020
  • disclosed11 Oct 2020
  • creditUnknown

Introduced: 11 Oct 2020

CVE-2020-26945  (opens in a new tab)
CWE-94  (opens in a new tab)

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

CVSS Base Scores

version 3.1