# CVE-2021-38542: Command Injection in Apache James

Source: https://junglewise.ai/threats/cve-2021-38542-command-injection-in-apache-james  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-01-08  
License: CC BY 4.0 with a link back

CVE-2021-38542 · Severity: low · CVSS 3.1 · Published 2022-01-08

Command Injection in Apache James

Technologies: [org.apache.james:james-server (Maven)](https://junglewise.ai/threats/technologies/org-apache-james-james-server). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2021-38542 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-38542 being exploited in the wild.

**How severe is CVE-2021-38542?** Low severity, with a CVSS score of 3.1, published 8 January 2022.

**Which products and versions are affected?** org.apache.james:james-server (Maven) ECOSYSTEM:introduced=0,fixed=3.6.1.

**Is there a fix for CVE-2021-38542?** Yes. org.apache.james:james-server (Maven): upgrade to 3.6.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-38542?** Check whether you run org.apache.james:james-server (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.apache.james:james-server (Maven): upgrade to 3.6.1 or later

  ```sh
  # set org.apache.james:james-server to 3.6.1 in your pom.xml or build.gradle
  ```


## Affected products

- org.apache.james:james-server (Maven) ECOSYSTEM:introduced=0,fixed=3.6.1

## Identifiers

- CVE-2021-38542
- GHSA-84wg-rgp8-2hg4

## Related threats

- [SMTP smuggling in Apache James](https://junglewise.ai/threats/cve-2023-51747-smtp-smuggling-in-apache-james)
- [Apache James server: Privilege escalation via JMX pre-authentication deserialization](https://junglewise.ai/threats/cve-2023-51518-apache-james-server-privilege-escalation-via-jmx-pre)
- [Apache James server allows an attacker with local access to access private user data in transit](https://junglewise.ai/threats/cve-2022-45935-apache-james-server-allows-an-attacker-with-local-access-to)
- [Apache James vulnerable to buffering attack](https://junglewise.ai/threats/cve-2022-28220-apache-james-vulnerable-to-buffering-attack)
- [Apache James Server OS Command Injection](https://junglewise.ai/threats/cve-2015-7611-apache-james-server-os-command-injection)
