GHSA-pc22-3g76-gm6j · Severity: low · Ecosystem: maven — Generator Web Application: Local Privilege Escalation Vulnerability via System Temp Directory
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.
Conclusion & alert: CVE-2021-21363 is rated Exploit Available (50/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.04%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2023-03-07 | 0.89% | 0.04% | -0.84% |
| 2 | 2023-02-22 | 1.40% | 0.89% | -0.52% |
| 3 | 2022-12-30 | — | 1.40% | — |
Full EPSS history (7 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 5.3 | 3.1 | MEDIUM |
|
0.8 | 4.0 | [email protected] |
| 7.0 | 3.1 | HIGH |
|
1.0 | 5.9 | [email protected] |
| 4.4 | 2.0 | MEDIUM |
|
3.4 | 6.4 | [email protected] |
GHSA-pc22-3g76-gm6j · Severity: low · Ecosystem: maven — Generator Web Application: Local Privilege Escalation Vulnerability via System Temp Directory
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| smartbear | swagger-codegen | < 2.4.19 | cpe:2.3:a:smartbear:swagger-codegen:*:*:*:*:*:*:*:* |
| URL | Tags |
|---|---|
| https://github.com/swagger-api/swagger-codegen/commit/987ea7a30b463cc239580d6ad166c707ae942a89 | Patch Third Party Advisory |
| https://github.com/swagger-api/swagger-codegen/security/advisories/GHSA-pc22-3g76-gm6j | Exploit Third Party Advisory |