Vulnerabilities in pkg:maven/org.apache.james.protocols/protocols-imap

PACKAGE
Advisory Identifier: GHSA-56jp-w6vw-j3jw
Advisory Summary

CVE-2024-37358 is a HIGH (CVSS 8.6) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Protocols imap libraries in the Maven ecosystem. The issue involves apache james vulnerable to denial of service through the use of imap literals. Remediation is available by upgrading affected packages to version 3.7.6, 3.8.2.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apache.james.protocols/protocols-imap

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-56jp-w6vw-j3jw CVE-2024-37358 HIGH Apache James vulnerable to denial of service through the use of IMAP literals

CVE-2024-37358 at a Glance

CVE Identifier CVE-2024-37358
GHSA Identifier GHSA-56jp-w6vw-j3jw
Severity HIGH
CVSS v3.1 Base Score 8.6
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Protocols imap
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 8.6

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:C/C:N/I:N/A:H).

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

How to Fix CVE-2024-37358

To remediate this vulnerability, upgrade all affected Protocols imap 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.james.protocols:protocols-imap fixed: 3.7.6
<dependency>
    <groupId>org.apache.james.protocols</groupId>
    <artifactId>protocols-imap</artifactId>
    <version>3.7.6</version>
</dependency>
org.apache.james.protocols:protocols-imap fixed: 3.8.2
<dependency>
    <groupId>org.apache.james.protocols</groupId>
    <artifactId>protocols-imap</artifactId>
    <version>3.8.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=org.apache.james.protocols

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.apache.james.protocols

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

Note: The mvn dependency:tree -Dincludes=org.apache.james.protocols 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-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Protocols imap, 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

Similarly to CVE-2024-34055, Apache James is vulnerable to denial of service through the abuse of IMAP literals from both authenticated and unauthenticated users, which could be used to cause unbounded memory allocation and very long computations Version 3.7.6 and 3.8.2 restrict such illegitimate use of IMAP literals.

CVE-2024-37358 Affected Protocols imap Versions

2 component(s)
Fixed Versions:
3.7.63.8.2
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.james.protocols:protocols-imap
Maven
< 3.7.6
3.7.6
org.apache.james.protocols:protocols-imap
Maven
≥ 3.8.0
< 3.8.2
3.8.2

References

Frequently Asked Questions

What is CVE-2024-37358?
CVE-2024-37358 is a security vulnerability in Protocols imap involving Apache James vulnerable to denial of service through the use of IMAP literals under CWE-400: Uncontrolled Resource Consumption.
Which Protocols imap versions are affected?
Affected versions include releases prior to 3.7.6, 3.8.2 across affected packages: org.apache.james.protocols:protocols-imap.
What version fixes CVE-2024-37358?
Upgrading to 3.7.6, 3.8.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is protocols-imap affected?
Yes, org.apache.james.protocols:protocols-imap is affected in releases prior to 3.7.6, 3.8.2. Upgrade your dependency to 3.7.6, 3.8.2 or later.
What is the CVSS score of CVE-2024-37358?
CVE-2024-37358 has a CVSS v3.1 base score of 8.6 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H.
What CWE is associated with CVE-2024-37358?
CVE-2024-37358 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check Maven dependencies for CVE-2024-37358?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.james.protocols'. 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-56jp-w6vw-j3jw",
  "modified" : "2025-02-06T19:01:59Z",
  "published" : "2025-02-06T12:31:58Z",
  "aliases" : [ "CVE-2024-37358" ],
  "summary" : "Apache James vulnerable to denial of service through the use of IMAP literals",
  "details" : "Similarly to CVE-2024-34055, Apache James is vulnerable to denial of service through the abuse of IMAP literals from both authenticated and unauthenticated users, which could be used to cause unbounded memory allocation and very long computations\n\nVersion 3.7.6 and 3.8.2 restrict such illegitimate use of IMAP literals.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.james.protocols:protocols-imap"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.7.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.james.protocols:protocols-imap"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.8.0"
      }, {
        "fixed" : "3.8.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-37358"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/james-project/commit/6dd3ad9ea1f6a9bc887d2c7af3f5aa30a60ec769"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/james-project/commit/b2f3c06edfd37b409121bf04c56a6f026048a77e"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/james-project"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/1pxsh11v5s3fkvhnqvkmlqwt3fgpcrqc"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-400", "CWE-770" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-02-06T19:01:59Z",
    "nvd_published_at" : "2025-02-06T12:15:26Z"
  }
}