CVE-20XX-?
agent?

CVE-2021-21364

5.3 MEDIUM 0.3% exploit odds Fix listed

What it is

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.

At a glance

Exploitability
Can be exploited locally on the machine with a low-privilege account, but needs a user to act. High risk of data exposure.
Exploit odds
0.3% chance of exploitation in the next 30 days (EPSS).
Fix
A patch, advisory or fixed version is referenced. Upgrade or apply it.

Timeline

  1. PublishedDisclosed publicly on CVE.org and NVD
  2. Last updatedMost recent change to the record

Why it ranks here

Details

Published
Last modified
Exploit probability
0.3% · EPSS, next 30 days
Weakness
CWE-200 · Information exposure
Record status
Modified

Affected

Attack profile CVSS 3.1 · 5.3

Attack vector
Local
Complexity
High
Privileges needed
Low
User interaction
Required
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None
Raw vector

CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:N/A:N

Is it in your code?

Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.

Read https://cve-list.com/agent/cve/CVE-2021-21364.md and follow it. Check whether this project is affected by CVE-2021-21364. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.

· More options · Status badge

Meme: I wake up, CVE-2021-21364
Download Square Reddit

Fix and advisories

References

NVD record · CVE.org record