Apache James vulnerable to STARTTLS command injection (IMAP and POP3)
Check todaySensitive data exposure over the network, no login needed.
5.9MEDIUM
Key Information:
- Vendor
Apache
- Status
- CVE ID
- CVE ID:
- CVE-2021-38542
- Vendor
- CVE Published:
- 4 January 2022
- Fixed in
- Fixed in:
- 3.6.1
Timeline
Vulnerability published
Vulnerability Reserved
How risky is it?
- Yes: Works over the network, no login needed
- No: No public exploit yet
- No: Not on CISA's exploited list
- No: No ransomware use seen
Our verdict
Check today
Find out if you're affected. If you are, patch.
What to do
1Update to a fixed version
Apache James Apache James to below 3.6.1 is vulnerable
Install Apache James 3.6.1 or later
2Can't patch yet? Reduce exposure
It can be reached over the network, so limit who can reach Apache James. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.
3Why it's rated "Check today"
- It can be exploited remotely without credentials.
- Its CVSS severity is medium (5.9).
What is CVE-2021-38542?
Apache James prior to release 3.6.1 is vulnerable to a buffering attack relying on the use of the STARTTLS command. This can result in Man-in -the-middle command injection attacks, leading potentially to leakage of sensible information.
References
openwall.com ยท 1 โ
x_refsource_MISC
openwall.com ยท 1 โ
mailing-listx_refsource_MLIST
openwall.com ยท 1 โ
mailing-listx_refsource_MLIST
More Apache Vulnerabilities
Key Exchange Vulnerability in Apache Tomcat
CVE-2026-133325
ApacheApache Tomcat๐๐พ9.8CRITICAL
Improper Exception Management in Apache Tomcat Affects Multiple Versions
CVE-2026-116561
ApacheApache Tomcat๐9.1CRITICAL
Deserialization Vulnerability in Apache Roller Affects Multiple Versions
CVE-2026-129448
ApacheApache Roller๐๐พ9.8CRITICAL
Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities ยท Report a correction
CVSS V3.1
Score:
5.9
Severity:
MEDIUM
Confidentiality:
High
Integrity:
None
Availability:
High
Attack Vector:
Network
Attack Complexity:
High
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged
Credit
We thanks Benoit Tellier, Raphael Ouazana for reporting this vulnerability as well as Damian Poddebniak, Fabian Ising, Hanno Bรถck, and Sebastian Schinzel Mรผnster University of Applied Science for their research and tools regarding STARTTLS security.