Vulnerabilities in pkg:maven/com.linecorp.centraldogma/centraldogma-server-auth-saml

PACKAGE
Advisory Summary

GHSA-hx5q-v6pj-533r is a CRITICAL (CVSS 9.1) authentication bypass vulnerability (CWE-1395: Dependency on Vulnerable Third-Party Component) affecting Centraldogma server auth saml libraries in the Maven ecosystem. The issue involves saml authentication bypass due to missing validation on unsigned saml messages. Remediation is available by upgrading affected packages to version 0.64.3.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/com.linecorp.centraldogma/centraldogma-server-auth-saml

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/com.linecorp.centraldogma/centraldogma-server-auth-saml. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-hx5q-v6pj-533r - CRITICAL SAML authentication bypass due to missing validation on unsigned SAML messages

GHSA-hx5q-v6pj-533r at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-hx5q-v6pj-533r
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-1395: Dependency on Vulnerable Third-Party Component
Affected Product Centraldogma server auth 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 GHSA-hx5q-v6pj-533r

To remediate this vulnerability, upgrade all affected Centraldogma server auth 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.centraldogma:centraldogma-server-auth-saml fixed: 0.64.3
<dependency>
    <groupId>com.linecorp.centraldogma</groupId>
    <artifactId>centraldogma-server-auth-saml</artifactId>
    <version>0.64.3</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.centraldogma

How to Check if You Are Affected

To determine whether your Java application is affected by GHSA-hx5q-v6pj-533r, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=com.linecorp.centraldogma

Analyze the terminal output to locate any version of Centraldogma server auth saml in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.64.3), your application is affected.

Note: The mvn dependency:tree -Dincludes=com.linecorp.centraldogma 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-1395: Dependency on Vulnerable Third-Party Component, where the product has a dependency on a third-party component that contains one or more known vulnerabilities. In Centraldogma server auth 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 When SAML is used as the authentication mechanism, Central Dogma 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 Central Dogma 0.64.3 by updating its Armeria dependency to 1.27.2. All users who use SAML as the authentication mechanism must upgrade from 0.64.3 or later. ### Workarounds A user can manually upgrade the `armeria-saml` module with the one from Armeria 1.27.2 or later, either by replacing the JAR in the Central Dogma distribution or by updating the dependency tree of the build. ### References [`SamlMessageUtil.validateSignature()`](https://github.com/line/armeria/blob/0efc776988d71be4da6e506ec8a33c2b7b43f567/saml/src/main/java/com/linecorp/armeria/server/saml/SamlMessageUtil.java#L160-L163)

GHSA-hx5q-v6pj-533r Affected Centraldogma server auth saml Versions

1 component(s)
Fixed Versions:
0.64.3
Product / Package Ecosystem Affected Versions Fixed Version
com.linecorp.centraldogma:centraldogma-server-auth-saml
Maven
< 0.64.3
0.64.3

References

Frequently Asked Questions

What is GHSA-hx5q-v6pj-533r?
GHSA-hx5q-v6pj-533r is a security vulnerability in Centraldogma server auth saml involving SAML authentication bypass due to missing validation on unsigned SAML messages under CWE-1395: Dependency on Vulnerable Third-Party Component.
Which Centraldogma server auth saml versions are affected?
Affected versions include releases prior to 0.64.3 across affected packages: com.linecorp.centraldogma:centraldogma-server-auth-saml.
What version fixes GHSA-hx5q-v6pj-533r?
Upgrading to 0.64.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is centraldogma-server-auth-saml affected?
Yes, com.linecorp.centraldogma:centraldogma-server-auth-saml is affected in releases prior to 0.64.3. Upgrade your dependency to 0.64.3 or later.
What is the CVSS score of GHSA-hx5q-v6pj-533r?
GHSA-hx5q-v6pj-533r 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 GHSA-hx5q-v6pj-533r?
GHSA-hx5q-v6pj-533r is classified under CWE-1395: Dependency on Vulnerable Third-Party Component (The product has a dependency on a third-party component that contains one or more known vulnerabilities.).
How can I check Maven dependencies for GHSA-hx5q-v6pj-533r?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.linecorp.centraldogma'. 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-hx5q-v6pj-533r",
  "modified" : "2024-02-26T20:04:50Z",
  "published" : "2024-02-26T20:04:50Z",
  "aliases" : [ ],
  "summary" : "SAML authentication bypass due to missing validation on unsigned SAML messages",
  "details" : "### Impact\n\nWhen SAML is used as the authentication mechanism, Central Dogma 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 Central Dogma 0.64.3 by updating its Armeria dependency to 1.27.2. All users who use SAML as the authentication mechanism must upgrade from 0.64.3 or later.\n\n### Workarounds\n\nA user can manually upgrade the `armeria-saml` module with the one from Armeria 1.27.2 or later, either by replacing the JAR in the Central Dogma distribution or by updating the dependency tree of the build.\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.centraldogma:centraldogma-server-auth-saml"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.64.3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.64.2"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/line/armeria/security/advisories/GHSA-4m6j-23p2-8c54"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/line/centraldogma/security/advisories/GHSA-hx5q-v6pj-533r"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/line/centraldogma/commit/16903426be2e954c050b3ee47b8c38ee3218f0eb"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/line/centraldogma/commit/16903426be2e954c050b3ee47b8c38ee3218f0ebxz"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/line/centraldogma"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/line/centraldogma/releases/tag/centraldogma-0.64.3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1395" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-26T20:04:50Z",
    "nvd_published_at" : null
  }
}