Vulnerabilities in pkg:maven/org.python/jython-standalone
PACKAGECVE-2016-4000 is a CRITICAL (CVSS 9.8) deserialization of untrusted data vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Jython standalone libraries in the Maven ecosystem. The issue involves deserialization of untrusted data in jython. Remediation is available by upgrading affected packages to version 2.7.1b3.
pkg:maven/org.python/jython-standalone
Vulnerability advisories affecting package pkg:maven/org.python/jython-standalone. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-6r7r-jj8h-pq6v | CVE-2016-4000 | CRITICAL | Deserialization of Untrusted Data in Jython |
| GHSA-9347-9w64-q5wp | CVE-2013-2027 | MODERATE | Jython Improper Access Restrictions vulnerability |
CVE-2016-4000 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2016-4000
To remediate this vulnerability, upgrade all affected Jython standalone dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.python</groupId>
<artifactId>jython-standalone</artifactId>
<version>2.7.1b3</version>
</dependency>
<dependency>
<groupId>org.python</groupId>
<artifactId>jython</artifactId>
<version>2.7.1b3</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.python
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2016-4000, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.python
Analyze the terminal output to locate any version of Jython standalone in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.7.1b3), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.python command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Jython standalone, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2016-4000 Affected Jython standalone Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.python:jython-standalone
|
Maven |
< 2.7.1b3
|
2.7.1b3
|
|
org.python:jython
|
Maven |
< 2.7.1b3
|
2.7.1b3
|
References
Frequently Asked Questions
What is CVE-2016-4000?
Which Jython standalone versions are affected?
What version fixes CVE-2016-4000?
Is jython-standalone affected?
Is jython affected?
What is the CVSS score of CVE-2016-4000?
What CWE is associated with CVE-2016-4000?
How can I check Maven dependencies for CVE-2016-4000?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6r7r-jj8h-pq6v",
"modified" : "2026-07-02T21:22:54Z",
"published" : "2022-05-13T01:25:20Z",
"aliases" : [ "CVE-2016-4000" ],
"summary" : "Deserialization of Untrusted Data in Jython",
"details" : "Jython before 2.7.1b3 allows attackers to execute arbitrary code via a crafted serialized PyFunction object.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.python:jython-standalone"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.7.1b3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.python:jython"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.7.1b3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-4000"
}, {
"type" : "WEB",
"url" : "https://github.com/jython/jython/commit/ee4200fdd5385d3f74a5cf1a781fa52d33bbb274"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpujul2020.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpujan2020.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpuapr2020.html"
}, {
"type" : "WEB",
"url" : "https://snyk.io/vuln/SNYK-JAVA-ORGPYTHON-31451"
}, {
"type" : "WEB",
"url" : "https://security.gentoo.org/glsa/201710-28"
}, {
"type" : "WEB",
"url" : "https://security-tracker.debian.org/tracker/CVE-2016-4000"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/0919ec1db20b1022f22b8e78f355667df74d6142b463ff17d03ad533@%3Cdevnull.infra.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://hg.python.org/jython/rev/d06e29d100c0"
}, {
"type" : "WEB",
"url" : "https://hg.python.org/jython/file/v2.7.1rc1/NEWS"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/jython/jython"
}, {
"type" : "WEB",
"url" : "https://bugs.jython.org/issue2454"
}, {
"type" : "WEB",
"url" : "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864859"
}, {
"type" : "WEB",
"url" : "http://bugs.jython.org/issue2454"
}, {
"type" : "WEB",
"url" : "http://www.debian.org/security/2017/dsa-3893"
}, {
"type" : "WEB",
"url" : "http://www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-502" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2022-07-06T19:55:30Z",
"nvd_published_at" : "2017-07-06T16:29:00Z"
}
}