Vulnerabilities in pkg:maven/org.apache.sshd/sshd-common

PACKAGE
Advisory Identifier: GHSA-2326-hx7g-3m9r
Advisory Summary

CVE-2024-41909 is a HIGH (CVSS 5.9) integrity check bypass vulnerability (CWE-354: Improper Validation of Integrity Check Value) affecting Apache MINA SSHD libraries in the Maven ecosystem. The issue involves integrity check bypass. Remediation is available by upgrading affected packages to version 2.12.0.

3 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apache.sshd/sshd-common

3 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.apache.sshd/sshd-common. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-2326-hx7g-3m9r CVE-2024-41909 HIGH Apache MINA SSHD: integrity check bypass
GHSA-mjmq-gwgm-5qhm CVE-2023-35887 MODERATE Apache MINA SSHD information disclosure vulnerability
GHSA-fhw8-8j55-vwgq CVE-2022-45047 CRITICAL Unsafe deserialization in Apache MINA SSHD

CVE-2024-41909 at a Glance

CVE Identifier CVE-2024-41909
GHSA Identifier GHSA-2326-hx7g-3m9r
Severity HIGH
CVSS v3.1 Base Score 5.9
CWE Classification CWE-354: Improper Validation of Integrity Check Value
Affected Product Apache MINA SSHD
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2024-41909

To remediate this vulnerability, upgrade all affected Apache MINA SSHD dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.apache.sshd:sshd-common fixed: 2.12.0
<dependency>
    <groupId>org.apache.sshd</groupId>
    <artifactId>sshd-common</artifactId>
    <version>2.12.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=org.apache.sshd

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2024-41909, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.sshd

Analyze the terminal output to locate any version of Apache MINA SSHD in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.12.0), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.sshd 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-354: Improper Validation of Integrity Check Value, where the product does not validate or incorrectly validates the integrity check values or "checksums" of a message. this may prevent it from detecting if the data has been modified or corrupted in transmission. In Apache MINA SSHD, 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

Like many other SSH implementations, Apache MINA SSHD suffered from the issue that is more widely known as CVE-2023-48795. An attacker that can intercept traffic between client and server could drop certain packets from the stream, potentially causing client and server to consequently end up with a connection for which some security features have been downgraded or disabled, aka a Terrapin attack The mitigations to prevent this type of attack were implemented in Apache MINA SSHD 2.12.0, both client and server side. Users are recommended to upgrade to at least this version. Note that both the client and the server implementation must have mitigations applied against this issue, otherwise the connection may still be affected.

CVE-2024-41909 Affected Apache MINA SSHD Versions

1 component(s)
Fixed Versions:
2.12.0
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.sshd:sshd-common
Maven
< 2.12.0
2.12.0

References

Frequently Asked Questions

What is CVE-2024-41909?
CVE-2024-41909 is a security vulnerability in Apache MINA SSHD involving integrity check bypass under CWE-354: Improper Validation of Integrity Check Value.
Which Apache MINA SSHD versions are affected?
Affected versions include releases prior to 2.12.0 across affected packages: org.apache.sshd:sshd-common.
What version fixes CVE-2024-41909?
Upgrading to 2.12.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sshd-common affected?
Yes, org.apache.sshd:sshd-common is affected in releases prior to 2.12.0. Upgrade your dependency to 2.12.0 or later.
What is the CVSS score of CVE-2024-41909?
CVE-2024-41909 has a CVSS v3.1 base score of 5.9 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2024-41909?
CVE-2024-41909 is classified under CWE-354: Improper Validation of Integrity Check Value (The product does not validate or incorrectly validates the integrity check values or "checksums" of a message. This may prevent it from detecting if the data has been modified or corrupted in transmission.).
How can I check Maven dependencies for CVE-2024-41909?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.sshd'. 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-2326-hx7g-3m9r",
  "modified" : "2025-03-27T23:38:06Z",
  "published" : "2024-08-12T18:30:47Z",
  "aliases" : [ "CVE-2024-41909" ],
  "summary" : "Apache MINA SSHD: integrity check bypass",
  "details" : "Like many other SSH implementations, Apache MINA SSHD suffered from the issue that is more widely known as CVE-2023-48795. An attacker that can intercept traffic between client and server could drop certain packets from the stream, potentially causing client and server to consequently end up with a connection for which \nsome security features have been downgraded or disabled, aka a Terrapin \nattack\n\nThe mitigations to prevent this type of attack were implemented in Apache MINA SSHD 2.12.0, both client and server side. Users are recommended to upgrade to at least this version. Note that both the client and the server implementation must have mitigations applied against this issue, otherwise the connection may still be affected.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.sshd:sshd-common"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.12.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-41909"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/mina-sshd/issues/445"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/mina-sshd/pull/449"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/mina-sshd/commit/315739e4e9d1dc7a4ff32ea64936982ed0b73e76"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/mina-sshd/commit/6b0fd46f64bcb75eeeee31d65f10242660aad7c1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/mina-sshd/commit/7b2c781640a7a78a9455b86593a1f63c9e8cab92"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/mina-sshd"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/mina-sshd/releases/tag/sshd-2.12.0"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/vwf1ot8wx1njyy8n19j5j2tcnjnozt3b"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20241011-0006"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-354" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-08-12T19:52:15Z",
    "nvd_published_at" : "2024-08-12T16:15:15Z"
  }
}