CVE-2021-21364
Summary
| CVE | CVE-2021-21364 |
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2021-03-11 03:15:00 UTC |
| Updated | 2022-10-21 22:41:00 UTC |
| 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 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 default, most processes/apis will create files/directories with the permissions `-rw-r--r--` and `drwxr-xr-x` respectively, unless an API that explicitly sets safe file permissions is used. Because this vulnerability impacts generated code, the generated code will remain vulnerable until fixed manually! This vulnerability is fixed in version 2.4.19. Note this is a distinct vulnerability from CVE-2021-21363. |
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|
| Merge pull request from GHSA-hpv8-9rq5-hq7w · swagger-api/swagger-codegen@35adbd5 · GitHub |
MISC |
github.com |
Patch, Third Party Advisory |
| Generated Code Contains Local Information Disclosure Vulnerability · Advisory · swagger-api/swagger-codegen · GitHub |
CONFIRM |
github.com |
Mitigation, Third Party Advisory |
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 982892 Java (maven) Security Update for io.swagger:swagger-codegen (GHSA-hpv8-9rq5-hq7w)