CVE-2016-4000 Deserialization of Untrusted Data in Jython

Critical 9.8 Published Updated

Attackers can execute arbitrary code by sending a crafted serialized PyFunction object to applications using the Jython 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-2016-4000?

CVE-2016-4000 is a critical unsafe deserialization vulnerability in Debian Debian Linux, published on 6 Jul 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Jython before 2.7.1rc1 allows attackers to execute arbitrary code via a crafted serialized PyFunction object.

Weakness: CWE-502

Which versions are affected by CVE-2016-4000?

4 open source packages ship an affected version, including org.python:jython and org.python:jython-standalone. It affects 2 products.

PackageAffectedFixed in
org.python:jython MavenAll versions2.7.1b3
org.python:jython MavenAll versions2.7.1b3
org.python:jython-standalone MavenAll versions2.7.1b3
org.python:jython-standalone MavenAll versions2.7.1b3

Products include Debian Debian Linux, Jython Project Jython.

How do I fix CVE-2016-4000?

Upgrade org.python:jython to 2.7.1b3 or later.

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

Is CVE-2016-4000 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2016-4000, DLA-989-1, DSA-3893-1, GHSA-6r7r-jj8h-pq6v, UBUNTU-CVE-2016-4000.

Is CVE-2016-4000 in your software?

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

Check your SBOMs for free