CVE-2016-2510 · mitre
CVE-2016-2510
BeanShell (bsh) before 2.0b6, when included on the classpath by an application that uses Java serialization or XStream, allows remote attackers to execute arbitrary code via crafted serialized data, related to XThis.Handler.
Published 2016-04-07, last changed 2026-06-17. Weakness: CWE-19.
How to fix
Upgrade to a fixed version: org.apache-extras.beanshell:bsh 2.0b6 (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 beanshell/beanshell by 1ccc66bb69, 7c68fde2d6, 7bf2199161. Functions changed by the fix: XThis, getInterface, invoke, invokeImpl, readResolve. Regression tests: tests/junitTests/src/bsh/BshSerializationTest.java. Confidence: verified (a record names this commit as the fix, and it changed these functions).
Timeline
| 2016-04-07 | Published |
| 2022-05-13 | Package advisory GHSA-gxg6-rc6c-v673 |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 70.4% |
| 2026-11-30 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-gxg6-rc6c-v673 | org.apache-extras.beanshell:bsh (Maven) | 2.0b6 |
Also known as: GHSA-gxg6-rc6c-v673
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-2510, or call /api/v1/vulnerabilities/CVE-2016-2510. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.