CVE-2021-38542: Apache James vulnerable to STARTTLS command injection (IMAP and POP3)
Vulnerability summary
CVE-2021-38542 is a medium (CVSS 5.9) vulnerability in apache software foundation apache james. EPSS estimates a 2.34% chance of exploitation in the next 30 days, higher than 84.1% of scored vulnerabilities.
Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 0 · Related 2Timeline
- 04-01-2022PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · WolfiEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · ChainguardEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · MavenEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
2.34%
Chance of exploitation in the next 30 days
Percentile
84%
Versus all other CVEs
30-day change
Decrease -0.01 pp
From 2.35% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-77Improper Neutralization of Special Elements used in a CommandThe product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.
- CWE-327Use of a Broken or Risky Cryptographic AlgorithmThe product uses a broken or risky cryptographic algorithm or protocol.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Apache1 product
- james< 3.6.1
Apache software foundation1 product
- apache james≥ Apache James, < 3.6.1
Chainguard1 product
- keycloakAll versions (No fix recorded)
Org.apache.james1 product
- james-server< 3.6.1
Wolfi1 product
- keycloakAll versions (No fix recorded)
5 vendors · 5 products
References
4 links- www.openwall.com/lists/oss-security/2022/01/04/1X Refsource MISCAdvisoryWEBMailing ListThird Party Advisory
- www.openwall.com/lists/oss-security/2022/01/04/1Mailing ListX Refsource MLISTAdvisoryWEBThird Party Advisory
- www.openwall.com/lists/oss-security/2022/09/20/1Mailing ListX Refsource MLISTAdvisoryWEBThird Party Advisory