CVE-2021-21364: swagger-codegen is an open-source project which contains a template-driven engine to generate documentation, A
CVE-2021-21364 is a medium-severity flaw (CVSS 5.3) affecting swagger-codegen. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 temporary directory is shared between all local users. When files/directories are created, the default `umask` settings for the process are respected. As a result, by d
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-21364?
swagger-codegen: upgrade to 2.4.19. Exact commands for each OS are on this page.
Is CVE-2021-21364 being exploited?
CVE-2021-21364 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-21364 affect?
CVE-2021-21364 affects swagger-codegen. Severity is medium (CVSS 5.3). 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
How urgent is CVE-2021-21364?
Priority 24/100. No elevated risk signals yet.
Related CVEs
- CVE-2021-21363 MEDIUM 5.3 UPGRADE swagger-codegen is an open-source project which contains a template-driven engine to generate documentation, A
- CVE-2017-1000208 HIGH 8.8 UPGRADE UPGRADE A vulnerability in Swagger-Parser's (version <= 1.0.30) yaml parsing functionality results in arbitrary code b
- CVE-2017-1000207 HIGH 8.8 UPGRADE UPGRADE A vulnerability in Swagger-Parser's version <= 1.0.30 and Swagger codegen version <= 2.2.2 yaml parsing functi