GHSA-35fr-h7jr-hh86: Armeria Improper Neutralization Of CRLF Sequences Vulnerability

MODERATE
CVSS 6.5
CWE-113 CWE-74
Published
Advisory Summary

GHSA-35fr-h7jr-hh86 is a MODERATE (CVSS 6.5) improper neutralization of crlf sequences vulnerability (CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')) affecting Armeria libraries in the Maven ecosystem. The issue involves improper neutralization of crlf sequences in http headers ('http response splitting') in armeria. Remediation is available by upgrading affected packages to version 0.97.0.

GHSA-35fr-h7jr-hh86 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-35fr-h7jr-hh86
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')
Affected Product Armeria
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 6.5

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:L/I:L/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 Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix GHSA-35fr-h7jr-hh86

To remediate this vulnerability, upgrade all affected Armeria 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 fixed: 0.97.0
<dependency>
    <groupId>com.linecorp.armeria</groupId>
    <artifactId>armeria</artifactId>
    <version>0.97.0</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 GHSA-35fr-h7jr-hh86, 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 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.97.0), 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-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting'), where the product receives data from an http agent/component (e.g., web server, proxy, browser, etc.), but it does not neutralize or incorrectly neutralizes cr and lf characters before the data is included in outgoing http headers. In Armeria, 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

Versions of Armeria 0.85.0 through and including 0.96.0 are vulnerable to HTTP response splitting, which allows remote attackers to inject arbitrary HTTP headers via CRLF sequences when unsanitized data is used to populate the headers of an HTTP response. ### Impact 1. Cross-User Defacement 2. Cache Poisoning 3. Cross-Site Scripting (XSS) 4. Page Hijacking ### Root Cause The root cause is due to the usage of Netty without the HTTP header validation. https://github.com/line/armeria/blob/f0d870fde1088114070be31b67f7df0a21e835c6/core/src/main/java/com/linecorp/armeria/common/DefaultHttpHeaders.java#L23 ### Patches This vulnerability has been patched in 0.97.0. ### References [CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Response Splitting')](https://cwe.mitre.org/data/definitions/113.html) https://github.com/ratpack/ratpack/security/advisories/GHSA-mvqp-q37c-wf9j ### For more information If you have any questions or comments about this advisory: * Open an issue in [GitHub](https://github.com/line/armeria/issues)

GHSA-35fr-h7jr-hh86 Affected Armeria Versions

1 component(s)
Fixed Versions:
0.97.0
Product / Package Ecosystem Affected Versions Fixed Version
com.linecorp.armeria:armeria
Maven
≥ 0.85.0
< 0.97.0
0.97.0

References

Frequently Asked Questions

What is GHSA-35fr-h7jr-hh86?
GHSA-35fr-h7jr-hh86 is a security vulnerability in Armeria involving Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Response Splitting') in Armeria under CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting').
Which Armeria versions are affected?
Affected versions include releases prior to 0.97.0 across affected packages: com.linecorp.armeria:armeria.
What version fixes GHSA-35fr-h7jr-hh86?
Upgrading to 0.97.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is armeria affected?
Yes, com.linecorp.armeria:armeria is affected in releases prior to 0.97.0. Upgrade your dependency to 0.97.0 or later.
What is the CVSS score of GHSA-35fr-h7jr-hh86?
GHSA-35fr-h7jr-hh86 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with GHSA-35fr-h7jr-hh86?
GHSA-35fr-h7jr-hh86 is classified under CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting') (The product receives data from an HTTP agent/component (e.g., web server, proxy, browser, etc.), but it does not neutralize or incorrectly neutralizes CR and LF characters before the data is included in outgoing HTTP headers.).
How can I check Maven dependencies for GHSA-35fr-h7jr-hh86?
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-35fr-h7jr-hh86",
  "modified" : "2021-04-27T18:03:07Z",
  "published" : "2019-12-06T18:55:47Z",
  "aliases" : [ ],
  "summary" : "Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Response Splitting') in Armeria",
  "details" : "Versions of Armeria 0.85.0 through and including 0.96.0 are vulnerable to HTTP response splitting, which allows remote attackers to inject arbitrary HTTP headers via CRLF sequences when unsanitized data is used to populate the headers of an HTTP response.\n\n### Impact\n\n1. Cross-User Defacement\n2. Cache Poisoning\n3. Cross-Site Scripting (XSS)\n4. Page Hijacking\n\n\n### Root Cause\n\nThe root cause is due to the usage of Netty without the HTTP header validation.\n\nhttps://github.com/line/armeria/blob/f0d870fde1088114070be31b67f7df0a21e835c6/core/src/main/java/com/linecorp/armeria/common/DefaultHttpHeaders.java#L23\n\n### Patches\n\nThis vulnerability has been patched in 0.97.0.\n\n### References\n\n[CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Response Splitting')](https://cwe.mitre.org/data/definitions/113.html)\nhttps://github.com/ratpack/ratpack/security/advisories/GHSA-mvqp-q37c-wf9j\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [GitHub](https://github.com/line/armeria/issues)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.linecorp.armeria:armeria"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.85.0"
      }, {
        "fixed" : "0.97.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/line/armeria/security/advisories/GHSA-35fr-h7jr-hh86"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-113", "CWE-74" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-04-27T18:03:07Z",
    "nvd_published_at" : null
  }
}