KeygraphLabs · CVE MCP

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.

CVSS
8.1
high, from NVD
EPSS
70.4%
percentile 99.4%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

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-07Published
2022-05-13Package advisory GHSA-gxg6-rc6c-v673
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 70.4%
2026-11-30Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-gxg6-rc6c-v673org.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.

NVD · CVE.org