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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | bsh | 2.0b4-16 | — |
| Debian 13 | bsh | 2.0b4-16 | — |
| Debian 12 | bsh | 2.0b4-16 | — |
| Debian 8 | bsh | 2.0b4-15+deb8u1 | DSA-3504-1 |
| Debian 7 | bsh | 2.0b4-12+deb7u1 | DSA-3504-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 6.0 | bsh | 2.0b4-12+deb6u1 | DLA-443-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | bsh | 2.0b4-15ubuntu0.14.04.1 | USN-2923-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP1 | bsh2 | 2.0.0.b5-3.2 | SUSE-SU-2016:0700-1 |
| SLES 12 | bsh2 | 2.0.0.b5-3.2 | SUSE-SU-2016:0700-1 |
| SLES 11 SP4 | bsh2 | 2.0-318.1 | SUSE-SU-2016:0699-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | bsh2 | 2.0.0.b6-2.7 | openSUSE-SU-2024:10420-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.apache-extras.beanshell:bsh | < 2.0b6 | 2.0b6 | GHSA-gxg6-rc6c-v673 |
Advisories 8
- DLA-443-1 bsh - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-3504-1 bsh - security update Debian Security (DSA / DLA) · Mar 9, 2026
- USN-2923-1 bsh vulnerability Ubuntu Security Notices (USN) · Feb 10, 2026
- SUSE-SU-2016:0700-1 Security update for bsh2 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2016:0699-1 Security update for bsh2 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10420-1 bsh2-2.0.0.b6-2.7 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2026-0180 Dell Data Protection Advisor: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jan 20, 2026
- WID-SEC-2024-3616 Red Hat JBoss Fuse: Mehrere Schwachstellen BSI CERT-Bund (WID) · Dec 5, 2024
References
- RHSA-2016:2035 vendor-advisory
- 84139 vdb-entry
- RHSA-2016:1135 vendor-advisory
- RHSA-2016:0540 vendor-advisory
- RHSA-2016:1376 vendor-advisory
- openSUSE-SU-2016:0788 vendor-advisory
- RHSA-2016:0539 vendor-advisory
- DSA-3504 vendor-advisory
- 1035440 vdb-entry
- openSUSE-SU-2016:0833 vendor-advisory
- USN-2923-1 vendor-advisory
- GLSA-201607-17 vendor-advisory
- RHSA-2019:1545 vendor-advisory
- https://www.oracle.com/security-alerts/cpuoct2020.html
- https://github.com/frohoff/ysoserial/pull/13
- https://github.com/beanshell/beanshell/commit/7c68fde2d6fc65e362f20863d868c112a90a9b49
- https://github.com/beanshell/beanshell/commit/1ccc66bb693d4e46a34a904db8eeff07808d2ced
- https://github.com/beanshell/beanshell/releases/tag/2.0b6
- https://www.rsaconference.com/writable/presentations/file_upload/asd-f03-serial-killer-silently-pwning-your-java-endpoints.pdf