Vulnerabilities in pkg:maven/org.python/jython

PACKAGE
Advisory Identifier: GHSA-6r7r-jj8h-pq6v
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.python/jython

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.python/jython. 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

CVE-2016-4000 at a Glance

CVE Identifier CVE-2016-4000
GHSA Identifier GHSA-6r7r-jj8h-pq6v
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Jython standalone
Package Ecosystem Maven
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

org.python:jython-standalone fixed: 2.7.1b3
<dependency>
    <groupId>org.python</groupId>
    <artifactId>jython-standalone</artifactId>
    <version>2.7.1b3</version>
</dependency>
org.python:jython fixed: 2.7.1b3
<dependency>
    <groupId>org.python</groupId>
    <artifactId>jython</artifactId>
    <version>2.7.1b3</version>
</dependency>
Verify Direct and Transitive Dependencies

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

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

CVE-2016-4000 Affected Jython standalone Versions

2 component(s)
Fixed Versions:
2.7.1b3
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

NVD — CVE-2016-4000 NVD
https://nvd.nist.gov/vuln/detail/CVE-2016-4000
Security Fix Commit FIX COMMIT
https://github.com/jython/jython/commit/ee4200fdd5385d3f74a5cf1a781fa52d33bbb274
Jython standalone Security Information SECURITY
https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html
Jython standalone Security Information SECURITY
https://www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html
Jython standalone Security Information SECURITY
https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html
Jython standalone Security Information SECURITY
https://www.oracle.com/security-alerts/cpujul2020.html
Jython standalone Security Information SECURITY
https://www.oracle.com/security-alerts/cpujan2020.html
Jython standalone Security Information SECURITY
https://www.oracle.com/security-alerts/cpuapr2020.html
snyk.io/vuln/snyk-java-orgp... WEB
https://snyk.io/vuln/SNYK-JAVA-ORGPYTHON-31451
Jython standalone Security Information SECURITY
https://security.gentoo.org/glsa/201710-28
Jython standalone Security Information SECURITY
https://security-tracker.debian.org/tracker/CVE-2016-4000
lists.apache.org/thread.html/0919ec1... WEB
https://lists.apache.org/thread.html/0919ec1db20b1022f22b8e78f355667df74d6142b463ff17d03ad533@%3Cdevnull.infra.apache.org%3E
hg.python.org/jython/rev/d06e29d1... WEB
https://hg.python.org/jython/rev/d06e29d100c0
hg.python.org/jython/file/v2.7.1r... WEB
https://hg.python.org/jython/file/v2.7.1rc1/NEWS
Jython standalone Source Repository REPOSITORY
https://github.com/jython/jython
bugs.jython.org/issue2454 WEB
https://bugs.jython.org/issue2454
bugs.debian.org/cgi-bin/bugreport.c... WEB
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864859
bugs.jython.org/issue2454 WEB
http://bugs.jython.org/issue2454
Jython standalone Security Information SECURITY
http://www.debian.org/security/2017/dsa-3893
Jython standalone Security Information SECURITY
http://www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.html

Frequently Asked Questions

What is CVE-2016-4000?
CVE-2016-4000 is a security vulnerability in Jython standalone involving Deserialization of Untrusted Data in Jython under CWE-502: Deserialization of Untrusted Data.
Which Jython standalone versions are affected?
Affected versions include releases prior to 2.7.1b3 across affected packages: org.python:jython-standalone, org.python:jython.
What version fixes CVE-2016-4000?
Upgrading to 2.7.1b3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jython-standalone affected?
Yes, org.python:jython-standalone is affected in releases prior to 2.7.1b3. Upgrade your dependency to 2.7.1b3 or later.
Is jython affected?
Yes, org.python:jython is affected in releases prior to 2.7.1b3. Upgrade your dependency to 2.7.1b3 or later.
What is the CVSS score of CVE-2016-4000?
CVE-2016-4000 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2016-4000?
CVE-2016-4000 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check Maven dependencies for CVE-2016-4000?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.python'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}