CVE-2021-38542
Apache James vulnerable to STARTTLS command injection (IMAP and POP3)
Reported by apache · Published January 4, 2022
james-server is fixed in 3.6.1 (Maven Central)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.apache.james:james-server | Maven Central | 3.6.1 |
| org.jamesframework:james | Maven Central | 3.6.1 |
| Apache James | Apache Software Foundation | 3.6.1 |
| james | apache | 3.6.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache James | Apache James |
| wolfi | keycloak | * |
| chainguard | keycloak | * |
| Maven | org.apache.james:james-server | 0 |
| Apache Software Foundation | Apache James | * |
| Maven | org.jamesframework:james | 0 |
Timeline
- Jan 4, 2022 CVE Published
- Jan 5, 2022 EPSS Score (30 in total, the first dated here)
- Sep 21, 2022 CVE Updated
- Mar 23, 2026 Security Advisory
- Jul 25, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-38542
vulnetix vdb fixes CVE-2021-38542
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-38542/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- [oss-security] 20220104 CVE-2021-38542: Apache James vulnerable to STARTTLS command injection (IMAP and POP3) mailing-listx_refsource_MLIST
- [oss-security] 20220919 CVE-2022-28220: STARTTLS command injection in Apache JAMES mailing-listx_refsource_MLIST
- https://github.com/advisories/GHSA-84wg-rgp8-2hg4 advisory
- https://nvd.nist.gov/vuln/detail/CVE-2021-38542 advisory