CVE & CISA-KEV Catalog

CVE-2021-21363

MEDIUM
5.3
CVSS v3
NVD

Description

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

Remediation Available
swagger-codegenNVD
Affected:< 2.4.19Fixed in:2.4.19CVE-2021-21363derived from NVD

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

Attack VectorLocal
Attack ComplexityHigh
Privileges RequiredLow
User InteractionRequired
ScopeChanged

Impact

ConfidentialityNone
IntegrityHigh
AvailabilityNone

CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:N

Exploit Intelligence

0.41%probability of exploitation in 30 days
34thpercentile

Low risk: more likely to be exploited than 34% of all known CVEs.

References

Exploit1

Related Vulnerabilities

Other CWE-378 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2020-27216High7.04.4%-Fix
CVE-2021-21290Medium6.21.8%-Fix
CVE-2016-9485High7.81.2%--
CVE-2022-24823Medium5.51.0%-Fix
CVE-2020-8908Low3.31.0%-Fix
CVE-2021-28168Medium6.20.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
CVE-2021-21363 severity badge

Markdown

[![CVE-2021-21363](https://tridentstack.com/cve/badge/CVE-2021-21363.svg)](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.

See how it worksStart freeThis CVE lookup is free and always will be.

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.