CVE-2020-26945 "Deserialization errors in MyBatis"

High 8.1 Published Updated

Attackers can execute arbitrary code by exploiting unsafe deserialization in the MyBatis Java library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-26945?

CVE-2020-26945 is a high-severity unsafe deserialization vulnerability in n/a, published on 10 Oct 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

MyBatis before 3.5.6 mishandles deserialization of object streams.

Weakness: CWE-502

Which versions are affected by CVE-2020-26945?

2 open source packages ship an affected version, including org.mybatis:mybatis. It affects 1 product.

PackageAffectedFixed in
org.mybatis:mybatis MavenAll versions3.5.6
org.mybatis:mybatis MavenAll versions3.5.6
Linux distribution packages (1)
mybatis openSUSE:TumbleweedAll versions3.5.6-1.6

Products include Mybatis Mybatis.

How do I fix CVE-2020-26945?

Upgrade org.mybatis:mybatis to 3.5.6 or later.

Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.

Is CVE-2020-26945 being exploited?

There is no known exploitation of CVE-2020-26945 in the wild and no public exploit code.

Sources

Also known as CLSA-2026-1781830542, GHSA-qq48-m4jx-xqh8, OESA-2021-1292, openSUSE-SU-2024:11070-1.

Is CVE-2020-26945 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free