WaratekVRT Sign in

CVE-2020-26945 MyBatis

Affected softwareMyBatis
Severity8.1 High CVSS 3.1 2 scores
Fixed in3.5.6
WeaknessDeserialization of untrusted data (CWE-502)
Published10 Oct 2020
Updated17 Jun 2026

Description

MyBatis before 3.5.6 mishandles deserialization of object streams.

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published 6 years ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment no assessment published
  • Indexed PoC none indexed
  • EPSS 1.8% chance in 30 days

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

Decided by A vulnerability class already blocked by an ARMR security rule
Finding Protected by Waratek's ARMR deserialization security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-502: Deserialization of Untrusted Data.
Candidate fix https://github.com/mybatis/mybatis-3/pull/2079 : a pull request: the change under review

How to mitigate CVE-2020-26945

Upgrade MyBatis to 3.5.6 or later. Until you can, Waratek RASP blocks exploitation with its deserialization and process rules. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

CVSS

8.1 HIGH v3.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 8.1 HIGH CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H NVD Primary published
CVSS 2.0 5.1 none AV:N/AC:H/Au:N/C:P/I:P/A:P NVD Primary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.mybatis:mybatis 0 3.5.6 unbounded

Products and versions

2 products, 2 version entries
SourceVendorProductSchemeAffected versions
nvd mybatis mybatis generic < 3.5.6
osv org.mybatis mybatis generic < 3.5.6

References

URLTags
https://github.com/mybatis/mybatis-3/pull/2079 pr
https://github.com/mybatis/mybatis-3/releases/tag/mybatis-3.5.6 WEB
https://github.com/mybatis/mybatis-3/compare/mybatis-3.5.5...mybatis-3.5.6 Third Party Advisory

Timeline

Published2020-10-10By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.