Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2021-21364

published medium CVSS 3.1 · 5.3

Generated Code Contains Local Information Disclosure Vulnerability

Published
11 Mar 2021, 03:05:16 UTC
Updated
03 Aug 2024, 18:09:15 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
swagger-api — swagger-codegen< 2.4.19 Affected Not stated GitHub_M

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.

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
5.3 / 10
Severity
medium
Provider
GitHub_M · cna
Vector string
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:N/A:N

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
swagger-api swagger-codegen < 2.4.19 (affected) GitHub_M · cna

Weaknesses

3
  • CWE-200 CWE-200 Information Exposure (GitHub_M · cna)
  • CWE-378 CWE-378: Creation of Temporary File With Insecure Permissions (GitHub_M · cna)
  • CWE-732 CWE-732 Incorrect Permission Assignment for Critical Resource (GitHub_M · cna)

References

2

Provider assertions

2

GitHub_M · cna

Generated Code Contains Local Information Disclosure Vulnerability

CVE · adp

CVE Program Container

Provenance

Schema
5.1
Searchable
yes
Content hash
2d4a1aa6da805cdeb97985223416d5c6e7fb619dff1d5920dfa33c19d027b68d
Ingested
23 Sep 2026, 07:52:31 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected