Vulnerabilities in pkg:maven/org.apache.james/james-server-jmap-draft

PACKAGE
Advisory Identifier: GHSA-57m2-h3fw-rxhw
Advisory Summary

CVE-2024-45626 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting James server jmap draft libraries in the Maven ecosystem. The issue involves apache james vulnerable to denial of service through jmap html to text conversion. Remediation is available by upgrading affected packages to version 3.8.2, 3.7.6.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apache.james/james-server-jmap-draft

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-57m2-h3fw-rxhw CVE-2024-45626 HIGH Apache James vulnerable to denial of service through JMAP HTML to text conversion

CVE-2024-45626 at a Glance

CVE Identifier CVE-2024-45626
GHSA Identifier GHSA-57m2-h3fw-rxhw
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product James server jmap draft
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.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: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 Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2024-45626

To remediate this vulnerability, upgrade all affected James server jmap draft 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:james-server-jmap-draft fixed: 3.8.2
<dependency>
    <groupId>org.apache.james</groupId>
    <artifactId>james-server-jmap-draft</artifactId>
    <version>3.8.2</version>
</dependency>
org.apache.james:james-server-jmap-draft fixed: 3.7.6
<dependency>
    <groupId>org.apache.james</groupId>
    <artifactId>james-server-jmap-draft</artifactId>
    <version>3.7.6</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

How to Check if You Are Affected

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

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

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

Note: The mvn dependency:tree -Dincludes=org.apache.james 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 James server jmap draft, 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

Apache James server JMAP HTML to text plain implementation in versions below 3.8.2 and 3.7.6 is subject to unbounded memory consumption that can result in a denial of service. Users are recommended to upgrade to version 3.7.6 and 3.8.2, which fix this issue.

CVE-2024-45626 Affected James server jmap draft Versions

2 component(s)
Fixed Versions:
3.8.23.7.6
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.james:james-server-jmap-draft
Maven
≥ 3.8.0
< 3.8.2
3.8.2
org.apache.james:james-server-jmap-draft
Maven
< 3.7.6
3.7.6

References

Frequently Asked Questions

What is CVE-2024-45626?
CVE-2024-45626 is a security vulnerability in James server jmap draft involving Apache James vulnerable to denial of service through JMAP HTML to text conversion under CWE-400: Uncontrolled Resource Consumption.
Which James server jmap draft versions are affected?
Affected versions include releases prior to 3.8.2, 3.7.6 across affected packages: org.apache.james:james-server-jmap-draft.
What version fixes CVE-2024-45626?
Upgrading to 3.8.2, 3.7.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is james-server-jmap-draft affected?
Yes, org.apache.james:james-server-jmap-draft is affected in releases prior to 3.8.2, 3.7.6. Upgrade your dependency to 3.8.2, 3.7.6 or later.
What is the CVSS score of CVE-2024-45626?
CVE-2024-45626 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2024-45626?
CVE-2024-45626 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-45626?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.james'. 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-57m2-h3fw-rxhw",
  "modified" : "2025-02-11T19:04:24Z",
  "published" : "2025-02-06T12:31:58Z",
  "aliases" : [ "CVE-2024-45626" ],
  "summary" : "Apache James vulnerable to denial of service through JMAP HTML to text conversion",
  "details" : "Apache James server JMAP HTML to text plain implementation in versions below 3.8.2 and 3.7.6 is subject to unbounded memory consumption that can result in a denial of service.\n\nUsers are recommended to upgrade to version 3.7.6 and 3.8.2, which fix this issue.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.james:james-server-jmap-draft"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.8.0"
      }, {
        "fixed" : "3.8.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.james:james-server-jmap-draft"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.7.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-45626"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/james-project/pull/1422"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/james-project/commit/372f1f83b6825fb0f92147803a9bf215b8ff690d"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/james-project/commit/537ae380f9837f74c075f0ed2b625affa9b20122"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/linagora/james-project"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/1fr9hvpsylomwwfr3rv82g84sxszn4kl"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2025/02/05/7"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-02-06T19:02:30Z",
    "nvd_published_at" : "2025-02-06T12:15:27Z"
  }
}