CVE-2024-1735: Armeria saml Authentication Bypass Vulnerability

CRITICAL
Advisory Identifier: GHSA-4m6j-23p2-8c54
CVSS 9.1
CWE-304
Published
Advisory Summary

CVE-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.

CVE-2024-1735 at a Glance

CVE Identifier CVE-2024-1735
GHSA Identifier GHSA-4m6j-23p2-8c54
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-304: Missing Critical Step in Authentication
Affected Product Armeria saml
Package Ecosystem Maven
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (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.

com.linecorp.armeria:armeria-saml fixed: 1.27.2
<dependency>
    <groupId>com.linecorp.armeria</groupId>
    <artifactId>armeria-saml</artifactId>
    <version>1.27.2</version>
</dependency>
Verify Direct and Transitive Dependencies

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

### Impact The 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. ### Patches The 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. ### Workarounds There is no known workaround for this vulnerability. ### References [`SamlMessageUtil.validateSignature()`](https://github.com/line/armeria/blob/0efc776988d71be4da6e506ec8a33c2b7b43f567/saml/src/main/java/com/linecorp/armeria/server/saml/SamlMessageUtil.java#L160-L163)

CVE-2024-1735 Affected Armeria saml Versions

1 component(s)
Fixed Versions:
1.27.2
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?
CVE-2024-1735 is a security vulnerability in Armeria saml involving Armeria SAML authentication bypass due to missing validation on unsigned SAML messages under CWE-304: Missing Critical Step in Authentication.
Which Armeria saml versions are affected?
Affected versions include releases prior to 1.27.2 across affected packages: com.linecorp.armeria:armeria-saml.
What version fixes CVE-2024-1735?
Upgrading to 1.27.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is armeria-saml affected?
Yes, com.linecorp.armeria:armeria-saml is affected in releases prior to 1.27.2. Upgrade your dependency to 1.27.2 or later.
What is the CVSS score of CVE-2024-1735?
CVE-2024-1735 has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2024-1735?
CVE-2024-1735 is classified under CWE-304: Missing Critical Step in Authentication (The product implements an authentication technique, but it skips a step that weakens the technique.).
How can I check Maven dependencies for CVE-2024-1735?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.linecorp.armeria'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}