Lucene search

K
cveGitHub_MCVE-2021-21363
HistoryMar 11, 2021 - 3:15 a.m.

CVE-2021-21363

2021-03-1103:15:11
CWE-379
CWE-378
GitHub_M
web.nvd.nist.gov
79
2
swagger-codegen
cve-2021-21363
open-source
api
security vulnerability
unix
temporary directory
privilege escalation

CVSS2

4.4

Attack Vector

LOCAL

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:L/AC:M/Au:N/C:P/I:P/A:P

CVSS3

7

Attack Vector

LOCAL

Attack Complexity

HIGH

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

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

AI Score

6

Confidence

High

EPSS

0

Percentile

15.6%

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.

Affected configurations

Nvd
Vulners
Node
smartbearswagger-codegenRange<2.4.19
VendorProductVersionCPE
smartbearswagger-codegen*cpe:2.3:a:smartbear:swagger-codegen:*:*:*:*:*:*:*:*

CNA Affected

[
  {
    "product": "swagger-codegen",
    "vendor": "swagger-api",
    "versions": [
      {
        "status": "affected",
        "version": "< 2.4.19"
      }
    ]
  }
]

Social References

More

CVSS2

4.4

Attack Vector

LOCAL

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:L/AC:M/Au:N/C:P/I:P/A:P

CVSS3

7

Attack Vector

LOCAL

Attack Complexity

HIGH

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

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

AI Score

6

Confidence

High

EPSS

0

Percentile

15.6%