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

- Severity: Medium 5.9 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.34%, higher than 84% of CVEs (2026-12-01)
- Published: 2022-01-04T08:55:21.000Z
- Modified: 2026-09-10T03:49:10.761Z
- Also known as: GHSA-84wg-rgp8-2hg4
- Weaknesses: CWE-77, CWE-327
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache James: from Apache James before 3.6.1
- org.apache.james:james-server (Maven): before 3.6.1
- apache james: before 3.6.1

## Every score

- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:P/I:N/A:N`

## References

- <https://www.openwall.com/lists/oss-security/2022/01/04/1> (mailing-list, third-party-advisory, web)
- <http://www.openwall.com/lists/oss-security/2022/01/04/1> (mailing-list, third-party-advisory, web)
- <http://www.openwall.com/lists/oss-security/2022/09/20/1> (mailing-list, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-38542> (advisory)

## Sources

- CVE List: [CVE-2021-38542](https://www.cve.org/CVERecord?id=CVE-2021-38542), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-84wg-rgp8-2hg4](https://github.com/advisories/GHSA-84wg-rgp8-2hg4), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2021-38542](https://nvd.nist.gov/vuln/detail/CVE-2021-38542), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-38542 · Whole record: https://cve.day/CVE-2021-38542.json · Rebuilt by cve.day 2026-11-25T22:58:06.393Z
