# CVE-2021-21363: Generator Web Application: Local Privilege Escalation Vulnerability via System Temp Directory

Source: https://junglewise.ai/threats/cve-2021-21363-generator-web-application-local-privilege-escalation  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-03-11  
License: CC BY 4.0 with a link back

CVE-2021-21363 · Severity: low · CVSS 3.1 · Published 2021-03-11

Generator Web Application: Local Privilege Escalation Vulnerability via System Temp Directory

Technologies: [io.swagger:swagger-codegen (Maven)](https://junglewise.ai/threats/technologies/io-swagger-swagger-codegen). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

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

**How severe is CVE-2021-21363?** Low severity, with a CVSS score of 3.1, published 11 March 2021.

**Which products and versions are affected?** io.swagger:swagger-codegen (Maven) ECOSYSTEM:introduced=0,fixed=2.4.19.

**Is there a fix for CVE-2021-21363?** Yes. io.swagger:swagger-codegen (Maven): upgrade to 2.4.19 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-21363?** Check whether you run io.swagger:swagger-codegen (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

- io.swagger:swagger-codegen (Maven): upgrade to 2.4.19 or later

  ```sh
  # set io.swagger:swagger-codegen to 2.4.19 in your pom.xml or build.gradle
  ```


## Affected products

- io.swagger:swagger-codegen (Maven) ECOSYSTEM:introduced=0,fixed=2.4.19

## Identifiers

- CVE-2021-21363
- GHSA-pc22-3g76-gm6j

## Related threats

- [Generated Code Contains Local Information Disclosure Vulnerability](https://junglewise.ai/threats/cve-2021-21364-generated-code-contains-local-information-disclosure)
- [Deserialization of Untrusted Data in swagger-parser](https://junglewise.ai/threats/cve-2017-1000208-deserialization-of-untrusted-data-in-swagger-parser)
- [Deserialization of Untrusted Data in swagger-codegen](https://junglewise.ai/threats/cve-2017-1000207-deserialization-of-untrusted-data-in-swagger-codegen)
