CVE-2016-2510
BeanShell (bsh) before 2.0b6, when included on the classpath by an application that uses Java serialization or XStream, allows remote…
Check your servers for CVE-2016-2510
The Vulnpocalypse agent sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2016-2510 affects a package, with the command that installs the fix. The free plan covers one server and does not need a credit card.
Description
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.
Exploitation
EPSS 70.4%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 99.5% of all scored CVEs. Scores of 27 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2016-2510 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2016-2510RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2016-2510Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2016-2510
trivy image --scanners vuln IMAGE | grep CVE-2016-2510
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server or read how to install the agent.
References
Advisories
- RHSA-2016:2035 rhn.redhat.com · vendor advisory
- RHSA-2016:1135 access.redhat.com · vendor advisory
- RHSA-2016:0540 rhn.redhat.com · vendor advisory
- RHSA-2016:1376 access.redhat.com · vendor advisory
- openSUSE-SU-2016:0788 lists.opensuse.org · vendor advisory
- RHSA-2016:0539 rhn.redhat.com · vendor advisory
- DSA-3504 debian.org · vendor advisory
- openSUSE-SU-2016:0833 lists.opensuse.org · vendor advisory
- USN-2923-1 ubuntu.com · vendor advisory
- GLSA-201607-17 security.gentoo.org · vendor advisory
- RHSA-2019:1545 access.redhat.com · vendor advisory
- https://github.com/beanshell/beanshell/commit/7c68fde2d6fc65e362f20863d868c112a90a9b49 github.com
- https://github.com/beanshell/beanshell/commit/1ccc66bb693d4e46a34a904db8eeff07808d2ced github.com
- https://github.com/beanshell/beanshell/releases/tag/2.0b6 github.com
Other references
- 84139 securityfocus.com · vdb entry
- 1035440 securitytracker.com · vdb entry
- https://www.oracle.com/security-alerts/cpuoct2020.html oracle.com
- https://github.com/frohoff/ysoserial/pull/13 github.com
- https://www.rsaconference.com/writable/presentations/file_upload/asd-f03-serial-killer-silently-pwning-your-java-endpoints.pdf rsaconference.com
Source: the record CVE-2016-2510 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse