Vulnerabilities in pkg:maven/org.apache.flex.blazeds/flex-messaging-core
PACKAGECVE-2017-5641 is a CRITICAL (CVSS 9.8) apache flex blazeds unsafe deserialization vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Flex messaging core libraries in the Maven ecosystem. The issue involves apache flex blazeds unsafe deserialization. Remediation is available by upgrading affected packages to version 4.7.3.
pkg:maven/org.apache.flex.blazeds/flex-messaging-core
Vulnerability advisories affecting package pkg:maven/org.apache.flex.blazeds/flex-messaging-core. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-w8v7-prhw-xjpw | CVE-2017-5641 | CRITICAL | Apache Flex BlazeDS unsafe deserialization |
CVE-2017-5641 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2017-5641
To remediate this vulnerability, upgrade all affected Flex messaging core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.apache.flex.blazeds</groupId>
<artifactId>flex-messaging-core</artifactId>
<version>4.7.3</version>
</dependency>
<dependency>
<groupId>org.apache.flex.blazeds</groupId>
<artifactId>flex-messaging-remoting</artifactId>
<version>4.7.3</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.apache.flex.blazeds
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2017-5641, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.flex.blazeds
Analyze the terminal output to locate any version of Flex messaging core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.7.3), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.flex.blazeds command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Flex messaging core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2017-5641 Affected Flex messaging core Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.flex.blazeds:flex-messaging-core
|
Maven |
< 4.7.3
|
4.7.3
|
|
org.apache.flex.blazeds:flex-messaging-remoting
|
Maven |
< 4.7.3
|
4.7.3
|
References
Frequently Asked Questions
What is CVE-2017-5641?
Which Flex messaging core versions are affected?
What version fixes CVE-2017-5641?
Is flex-messaging-core affected?
Is flex-messaging-remoting affected?
What is the CVSS score of CVE-2017-5641?
What CWE is associated with CVE-2017-5641?
How can I check Maven dependencies for CVE-2017-5641?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-w8v7-prhw-xjpw",
"modified" : "2023-10-06T21:06:16Z",
"published" : "2022-05-13T01:02:10Z",
"aliases" : [ "CVE-2017-5641" ],
"summary" : "Apache Flex BlazeDS unsafe deserialization",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.flex.blazeds:flex-messaging-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.7.3"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 4.7.2"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.flex.blazeds:flex-messaging-remoting"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.7.3"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 4.7.2"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-5641"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/flex-blazeds/commit/11b0aa132d9a43bf81fa12654ff227ff247b4627"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/flex-blazeds/commit/f861f0993c35e664906609cad275e45a71e2aaf1"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/flex-blazeds"
}, {
"type" : "WEB",
"url" : "https://issues.apache.org/jira/browse/FLEX-35290"
}, {
"type" : "WEB",
"url" : "https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbhf03823en_us"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20170920093830/http://www.securitytracker.com/id/1038273"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20210124021605/http://www.securityfocus.com/bid/97383"
}, {
"type" : "WEB",
"url" : "https://www.kb.cert.org/vuls/id/307983"
}, {
"type" : "WEB",
"url" : "https://www.zerodayinitiative.com/advisories/ZDI-22-506"
}, {
"type" : "WEB",
"url" : "https://www.zerodayinitiative.com/advisories/ZDI-22-507"
}, {
"type" : "WEB",
"url" : "http://mail-archives.apache.org/mod_mbox/flex-dev/201703.mbox/%3C6B86C8D0-6E36-48F5-AC81-4AB3978F6746@c-ware.de%3E"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-502" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-25T21:59:21Z",
"nvd_published_at" : "2017-12-28T15:29:00Z"
}
}