CVE-2021-21363
MEDIUMDescription
swagger-codegen is an open-source project which contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition. In swagger-codegen before version 2.4.19, on Unix like systems, the system's temporary directory is shared between all users on that system. A collocated user can observe the process of creating a temporary sub directory in the shared temporary directory and race to complete the creation of the temporary subdirectory. This vulnerability is local privilege escalation because the contents of the `outputFolder` can be appended to by an attacker. As such, code written to this directory, when executed can be attacker controlled. For more details refer to the referenced GitHub Security Advisory. This vulnerability is fixed in version 2.4.19. Note this is a distinct vulnerability from CVE-2021-21364.
How to fix
TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works
Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.
CVSS v3 Vector
Exploitability
Impact
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:N
Exploit Intelligence
Low risk: more likely to be exploited than 34% of all known CVEs.
References
Related Vulnerabilities
Other CWE-378 vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2020-27216 | High | 7.0 | 4.4% | - | Fix |
| CVE-2021-21290 | Medium | 6.2 | 1.8% | - | Fix |
| CVE-2016-9485 | High | 7.8 | 1.2% | - | - |
| CVE-2022-24823 | Medium | 5.5 | 1.0% | - | Fix |
| CVE-2020-8908 | Low | 3.3 | 1.0% | - | Fix |
| CVE-2021-28168 | Medium | 6.2 | 0.9% | - | Fix |
Common questions
How do I fix CVE-2021-21363?
Upgrade swagger-codegen to 2.4.19 or later.
Is CVE-2021-21363 being actively exploited?
Not that we know of. CVE-2021-21363 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.41% is the estimated probability that it will be exploited in the next 30 days. That is higher than 34% of all scored CVEs.
How severe is CVE-2021-21363?
CVE-2021-21363 has a CVSS v3 base score of 5.3, rated medium. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.
What does CVE-2021-21363 affect?
Published advisories record a fix for swagger-codegen (NVD). Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.
Embed a live status badge for CVE-2021-21363
Markdown
[](https://tridentstack.com/cve/CVE-2021-21363)HTML
<a href="https://tridentstack.com/cve/CVE-2021-21363"><img src="https://tridentstack.com/cve/badge/CVE-2021-21363.svg" alt="CVE-2021-21363"></a>Find and fix vulnerabilities across your fleet
TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.
This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.