Swagger Codegen
Approved changes feed: RSS · Atom
cpe:2.3:a:smartbear:swagger-codegen:*:*:*:*:*:*:*:*
part: a version: * update: *
| Vendor | Smartbear (94fec60b-612f-51ea-9024-b74cfc3c3f18) |
|---|---|
| Product | Swagger Codegen (f2ab4cd2-3767-5c0e-97da-b7bea3547272) |
| Edition | * |
| Language | * |
| Software edition | * |
| Target software | * |
| Target hardware | * |
| Other | * |
| Notes | Imported from purl2cpe mapping |
PURL mappings
| PURL | Source | Last updated |
|---|---|---|
pkg:github/swagger-api/swagger-codegen |
purl2cpe | 2026-06-01 10:18:16.426863 |
Vulnerability references
| Identifier | cpeApplicability | Submitted | db.gcve.eu details | Rationale |
|---|---|---|---|---|
CVE:CVE-2021-21364 |
vulnerable | 2026-06-08 05:29:11.755414 |
Generated Code Contains Local Information Disclosure Vulnerability
MEDIUM (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 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.
Published: 2021-03-11T03:05:16.000Z
Updated: 2024-08-03T18:09:15.938Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2021-21363 |
vulnerable | 2026-06-08 05:29:11.754913 |
Generator Web Application: Local Privilege Escalation Vulnerability via System Temp Directory
MEDIUM (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 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.
Published: 2021-03-11T03:05:23.000Z
Updated: 2024-08-03T18:09:16.080Z |
Imported from gcve-enriched-dumps CVE data |
Contribute
You can submit an edit proposal for this CPE entry or suggest a related product/vendor addition using the action button above.