Vulnerabilities in pkg:maven/com.linecorp.armeria/armeria-saml
PACKAGECVE-2024-1735 is a CRITICAL (CVSS 9.1) authentication bypass vulnerability (CWE-304: Missing Critical Step in Authentication) affecting Armeria saml libraries in the Maven ecosystem. The issue involves armeria saml authentication bypass due to missing validation on unsigned saml messages. Remediation is available by upgrading affected packages to version 1.27.2.
pkg:maven/com.linecorp.armeria/armeria-saml
Vulnerability advisories affecting package pkg:maven/com.linecorp.armeria/armeria-saml. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-4m6j-23p2-8c54 | CVE-2024-1735 | CRITICAL | Armeria SAML authentication bypass due to missing validation on unsigned SAML messages |
CVE-2024-1735 at a Glance
Security Impact
CVSS: 9.1
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:N).
How to Fix CVE-2024-1735
To remediate this vulnerability, upgrade all affected Armeria saml 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>com.linecorp.armeria</groupId>
<artifactId>armeria-saml</artifactId>
<version>1.27.2</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=com.linecorp.armeria
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2024-1735, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=com.linecorp.armeria
Analyze the terminal output to locate any version of Armeria saml in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.27.2), your application is affected.
Note: The mvn dependency:tree -Dincludes=com.linecorp.armeria 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-304: Missing Critical Step in Authentication, where the product implements an authentication technique, but it skips a step that weakens the technique. In Armeria saml, 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-2024-1735 Affected Armeria saml Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
com.linecorp.armeria:armeria-saml
|
Maven |
< 1.27.2
|
1.27.2
|
References
Frequently Asked Questions
What is CVE-2024-1735?
Which Armeria saml versions are affected?
What version fixes CVE-2024-1735?
Is armeria-saml affected?
What is the CVSS score of CVE-2024-1735?
What CWE is associated with CVE-2024-1735?
How can I check Maven dependencies for CVE-2024-1735?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4m6j-23p2-8c54",
"modified" : "2024-02-26T20:04:37Z",
"published" : "2024-02-26T20:04:37Z",
"aliases" : [ "CVE-2024-1735" ],
"summary" : "Armeria SAML authentication bypass due to missing validation on unsigned SAML messages",
"details" : "### Impact\n\nThe SAML implementation provided by `armeria-saml` currently accepts unsigned SAML messages (assertions, logout requests, etc.) as they are, rather than rejecting them by default. As a result, an attacker can forge a SAML message to authenticate themselves, despite the fact that such an unsigned SAML message should be rejected.\n\n### Patches\n\nThe vulnerability has been patched in Armeria version 1.27.2. All users who rely on `armeria-saml` older than version 1.27.2 must upgrade to 1.27.2 or later.\n\n### Workarounds\n\nThere is no known workaround for this vulnerability.\n\n### References\n\n[`SamlMessageUtil.validateSignature()`](https://github.com/line/armeria/blob/0efc776988d71be4da6e506ec8a33c2b7b43f567/saml/src/main/java/com/linecorp/armeria/server/saml/SamlMessageUtil.java#L160-L163)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "com.linecorp.armeria:armeria-saml"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.27.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.27.1"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/line/armeria/security/advisories/GHSA-4m6j-23p2-8c54"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-1735"
}, {
"type" : "WEB",
"url" : "https://github.com/line/armeria/commit/b2aa9f49b46a7b0e03d8b8d753809cd1e8e2016c"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/line/armeria"
}, {
"type" : "WEB",
"url" : "https://github.com/line/armeria/blob/0efc776988d71be4da6e506ec8a33c2b7b43f567/saml/src/main/java/com/linecorp/armeria/server/saml/SamlMessageUtil.java#L160-L163"
}, {
"type" : "WEB",
"url" : "https://github.com/line/armeria/releases/tag/armeria-1.27.2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-304" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2024-02-26T20:04:37Z",
"nvd_published_at" : "2024-02-26T16:27:53Z"
}
}