# CVE-2021-38542: Apache James vulnerable to STARTTLS command injection (IMAP and POP3)

- Priority: **Routine**
- Reason: Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-01-04 · Modified: 2024-08-04
- Aliases: CGA-pgpv-68jp-r38v, CGA-qp69-c6g3-rr38, GHSA-84wg-rgp8-2hg4
- Record: https://cvemate.com/vulnerability/CVE-2021-38542 · JSON: https://cvemate.com/vulnerability/CVE-2021-38542/json

## Description

```text
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.
```

## Signals

- CVSS: 5.9 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 2.336%, percentile 84.136%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- apache software foundation apache james: ≥ Apache James, \< 3.6.1
- apache james: \< 3.6.1
- chainguard keycloak (Chainguard): All versions (No fix recorded)
- wolfi keycloak (Wolfi): All versions (No fix recorded)
- org.apache.james james-server (Maven): \< 3.6.1

## References

- <https://www.openwall.com/lists/oss-security/2022/01/04/1>
- <http://www.openwall.com/lists/oss-security/2022/01/04/1>
- <http://www.openwall.com/lists/oss-security/2022/09/20/1>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-38542>

---

Data as of 2026-12-05T05:32:00.719Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
