CVE-2016-4000 · mitre
CVE-2016-4000
Jython before 2.7.1rc1 allows attackers to execute arbitrary code via a crafted serialized PyFunction object.
Published 2017-07-06, last changed 2026-06-17. Weakness: CWE-502.
How to fix
Upgrade to a fixed version: org.python:jython-standalone 2.7.1b3 (Maven); org.python:jython 2.7.1b3 (Maven). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in jython/jython by ee4200fdd5. Functions changed by the fix: PyBytecode, readResolve. Regression tests: Lib/test/test_java_integration.py, Lib/test/test_new.py. Confidence: inferred (code changed near the fix, but no record names this exact commit as the fix).
Timeline
| 2017-07-06 | Published |
| 2022-05-13 | Package advisory GHSA-6r7r-jj8h-pq6v |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 5.46% |
| 2026-12-02 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-6r7r-jj8h-pq6v | org.python:jython-standalone (Maven) | 2.7.1b3 |
| GHSA-6r7r-jj8h-pq6v | org.python:jython (Maven) | 2.7.1b3 |
Also known as: GHSA-6r7r-jj8h-pq6v
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2013-2027 | 2015-02-13 | 4.6 | same package: org.python:jython-standalone (Maven) |
| CVE-2026-114724 | 2026-10-22 | 8.1 | same weakness (CWE-502) from the same CNA (mitre) |
| CVE-2026-37719 | 2026-10-05 | 9.8 | same weakness (CWE-502) from the same CNA (mitre) |
| CVE-2026-36471 | 2026-09-21 | 5.8 | same weakness (CWE-502) from the same CNA (mitre) |
| CVE-2026-51106 | 2026-08-26 | 9.3 | same weakness (CWE-502) from the same CNA (mitre) |
| CVE-2026-51368 | 2026-08-25 | 9.8 | same weakness (CWE-502) from the same CNA (mitre) |
| CVE-2026-51947 | 2026-07-01 | 9.8 | same weakness (CWE-502) from the same CNA (mitre) |
| CVE-2026-39253 | 2026-06-23 | 8.1 | same weakness (CWE-502) from the same CNA (mitre) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2016-4000, or call /api/v1/vulnerabilities/CVE-2016-4000. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.