# CVE-2017-5641: Apache Flex BlazeDS unsafe deserialization

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 20.75% (percentile 98, 2026-11-26)
- **CWE:** CWE-502
- **Aliases:** GHSA-w8v7-prhw-xjpw
- **Published:** 2017-12-28T15:00:00.000Z
- **Modified:** 2026-06-17T01:20:54.510Z

## Who should check

- Projects that depend on Maven package org.apache.flex.blazeds:flex-messaging-core (\< 4.7.3)
- Projects that depend on Maven package org.apache.flex.blazeds:flex-messaging-remoting (\< 4.7.3)
- Anyone running Apache Software Foundation Apache Flex Blaze DS before 4.7.3

## Description

Previous versions of Apache Flex BlazeDS (4.7.2 and earlier) did not restrict which types were allowed for AMF(X) object deserialization by default. During the deserialization process code is executed that for several known types has undesired side-effects. Other, unknown types may also exhibit such behaviors. One vector in the Java standard library exists that allows an attacker to trigger possibly further exploitable Java deserialization of untrusted data. Other known vectors in third party libraries can be used to trigger remote code execution.

## Affected and fixed versions

- Maven `org.apache.flex.blazeds:flex-messaging-core`: affected \< 4.7.3; fixed 4.7.3 (osv)
- Maven `org.apache.flex.blazeds:flex-messaging-remoting`: affected \< 4.7.3; fixed 4.7.3 (osv)
- Apache Software Foundation Apache Flex Blaze DS: before 4.7.3 (cvelist)

## Mitigation

- Upgrade org.apache.flex.blazeds:flex-messaging-core to 4.7.3 or later.
- Upgrade org.apache.flex.blazeds:flex-messaging-remoting to 4.7.3 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2017-5641. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2017-5641.md
Affected: org.apache.flex.blazeds:flex-messaging-core < 4.7.3; org.apache.flex.blazeds:flex-messaging-remoting < 4.7.3
Fixed in: 4.7.3

Steps:
1. Search this machine and project for org.apache.flex.blazeds:flex-messaging-core (Maven), org.apache.flex.blazeds:flex-messaging-remoting (Maven), Apache Software Foundation Apache Flex Blaze DS: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2017-5641 being exploited?

There is no confirmed exploitation: CVE-2017-5641 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 20.75% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2017-5641?

Critical: CVSS 9.8 (v3.1, scored by NVD). Remote, no login needed.

### Which versions are affected by CVE-2017-5641?

org.apache.flex.blazeds:flex-messaging-core \< 4.7.3; org.apache.flex.blazeds:flex-messaging-remoting \< 4.7.3.

### Is there a fix for CVE-2017-5641?

Yes. Fixed in 4.7.3. Upgrade org.apache.flex.blazeds:flex-messaging-core to 4.7.3 or later. Upgrade org.apache.flex.blazeds:flex-messaging-remoting to 4.7.3 or later.

### How do I check if I'm affected by CVE-2017-5641?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://issues.apache.org/jira/browse/FLEX-35290>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2017-5641>
- patch: <https://github.com/apache/flex-blazeds/commit/11b0aa132d9a43bf81fa12654ff227ff247b4627>
- patch: <https://github.com/apache/flex-blazeds/commit/f861f0993c35e664906609cad275e45a71e2aaf1>
- other: <https://www.kb.cert.org/vuls/id/307983>
- other: <http://www.securityfocus.com/bid/97383>
- other: <http://www.securitytracker.com/id/1038273>
- other: <http://mail-archives.apache.org/mod_mbox/flex-dev/201703.mbox/%3C6B86C8D0-6E36-48F5-AC81-4AB3978F6746%40c-ware.de%3E>
- other: <https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbhf03823en_us>
- other: <https://www.zerodayinitiative.com/advisories/ZDI-22-507/>
- other: <https://www.zerodayinitiative.com/advisories/ZDI-22-506/>
- other: <https://github.com/apache/flex-blazeds>
- other: <https://web.archive.org/web/20170920093830/http://www.securitytracker.com/id/1038273>
- other: <https://web.archive.org/web/20210124021605/http://www.securityfocus.com/bid/97383>
- other: <https://www.zerodayinitiative.com/advisories/ZDI-22-506>
- other: <https://www.zerodayinitiative.com/advisories/ZDI-22-507>
- other: <http://mail-archives.apache.org/mod_mbox/flex-dev/201703.mbox/%3C6B86C8D0-6E36-48F5-AC81-4AB3978F6746@c-ware.de%3E>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2017-5641>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-w8v7-prhw-xjpw> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2017-5641> · JSON: <https://flawdb.com/api/v1/entries/CVE-2017-5641>
