{
  "threat_severity" : "Moderate",
  "public_date" : "2021-04-27T00:00:00Z",
  "bugzilla" : {
    "description" : "openapi-generator: Using File.createTempFile in JDK results in creating insecure temporary files",
    "id" : "1955717",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1955717"
  },
  "cvss3" : {
    "cvss3_base_score" : "6.2",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N",
    "status" : "draft"
  },
  "cwe" : "CWE-552",
  "details" : [ "OpenAPI Generator allows generation of API client libraries, server stubs, documentation and configuration automatically given an OpenAPI Spec. Using `File.createTempFile` in JDK will result in creating and using insecure temporary files that can leave application and system data vulnerable to attacks. OpenAPI Generator maven plug-in creates insecure temporary files during the process. The issue has been patched with `Files.createTempFile` and released in the v5.1.0 stable version." ],
  "package_state" : [ {
    "product_name" : "Red Hat Advanced Cluster Management for Kubernetes 2",
    "fix_state" : "Not affected",
    "package_name" : "openapi-generator",
    "cpe" : "cpe:/a:redhat:acm:2"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2021-21429\nhttps://nvd.nist.gov/vuln/detail/CVE-2021-21429" ],
  "name" : "CVE-2021-21429",
  "csaw" : false
}