CVE-2023-51518: Apache James server Privilege Escalation via JMX Pre-Authentication Deserialization

Summary

27/02/2024
Yes i
Critical
9.8

CVE-2023-51518: Apache James server: Privilege escalation via JMX pre-authentication deserialization. Affects org.apache.james:james-server across 2 version ranges.

< 3.7.5 >= 3.8.0, < 3.8.1

Fixed in 3.7.5 or 3.8.1, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Apache James is an open-source email server that provides a platform for sending, receiving, and managing email messages. It is written in Java and offers various features for email communication. However, versions prior to 3.7.5 and 3.8.0 of Apache James server are vulnerable to a privilege escalation attack through the JMX endpoint. This endpoint, which is bound locally by default, allows for pre-authentication deserialization of untrusted data.

Vulnerability Detail

The vulnerability in Apache James server arises from the ability to deserialize untrusted data without proper authentication. An attacker can exploit this vulnerability by providing a malicious deserialization gadget, which can be part of an exploit chain leading to privilege escalation. By leveraging this vulnerability, an attacker could gain unauthorized access and perform actions with elevated privileges. It is important to note that the JMX endpoint is only bound locally by default, limiting the potential attack surface.

How To Fix

Latest published version: 3.9.1 as of 22 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 3.7.5 3.7.5
  • >= 3.8.0, < 3.8.1 3.8.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

A possible workaround for this vulnerability is to disable the JMX endpoint in Apache James server. This can be achieved by modifying the server configuration to prevent the JMX service from starting. However, it is important to note that this workaround may impact the functionality of certain monitoring or management tools that rely on JMX.

Conclusion

The vulnerability in Apache James server allows for privilege escalation through the JMX pre-authentication deserialization. To mitigate the risk, it is crucial to upgrade to a non-vulnerable version, isolate the server, and consider disabling the JMX endpoint. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.apache.james:james-server →

Share this vulnerability

FAQ

Apache James server is an open-source email server written in Java that provides email communication capabilities.

Versions prior to 3.7.5 and 3.8.0 of Apache James server are affected by this vulnerability.

This vulnerability can be exploited by an attacker to escalate privileges and gain unauthorized access to the Apache James server.

Yes, the JMX endpoint is enabled by default in Apache James server, but it is only bound locally.

Upgrading to a non-vulnerable version of Apache James server, running the server in isolation, and disabling the JMX endpoint are recommended mitigations.

Related vulnerabilities

Recent vulnerabilities recorded for org.apache.james:james-server.

How To Fix

Latest published version: 3.9.1 as of 22 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 3.7.5 3.7.5
  • >= 3.8.0, < 3.8.1 3.8.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback