Vulnerabilities in pkg:maven/org.openapitools/openapi-generator

PACKAGE
Advisory Identifier: GHSA-27j5-2h6r-c9q2
Advisory Summary

CVE-2019-11405 is a HIGH (CVSS 7.4) openapi tools openapi generator uses vulnerability (CWE-311: Missing Encryption of Sensitive Data) affecting Openapi generator libraries in the Maven ecosystem. The issue involves openapi tools openapi generator uses http in various files. Remediation is available by upgrading affected packages to version 4.0.0-20190419.052012-560.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.openapitools/openapi-generator

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.openapitools/openapi-generator. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-27j5-2h6r-c9q2 CVE-2019-11405 HIGH OpenAPI Tools OpenAPI Generator uses HTTP in various files
GHSA-cqxr-xf2w-943w CVE-2021-21430 MODERATE Creation of Temporary File in Directory with Insecure Permissions in auto-generated Java, Scala code

CVE-2019-11405 at a Glance

CVE Identifier CVE-2019-11405
GHSA Identifier GHSA-27j5-2h6r-c9q2
Severity HIGH
CVSS v3.1 Base Score 7.4
CWE Classification CWE-311: Missing Encryption of Sensitive Data
Affected Product Openapi generator
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2019-11405

To remediate this vulnerability, upgrade all affected Openapi generator dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.openapitools:openapi-generator fixed: 4.0.0-20190419.052012-560
<dependency>
    <groupId>org.openapitools</groupId>
    <artifactId>openapi-generator</artifactId>
    <version>4.0.0-20190419.052012-560</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.openapitools

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2019-11405, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.openapitools

Analyze the terminal output to locate any version of Openapi generator in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.0.0-20190419.052012-560), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.openapitools command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-311: Missing Encryption of Sensitive Data, where the product does not encrypt sensitive or critical information before storage or transmission. In Openapi generator, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

OpenAPI Tools OpenAPI Generator before 4.0.0-20190419.052012-560 uses http:// URLs in various build.gradle, build.gradle.mustache, and build.sbt files, which may have caused insecurely resolved dependencies.

CVE-2019-11405 Affected Openapi generator Versions

1 component(s)
Fixed Versions:
4.0.0-20190419.052012-560
Product / Package Ecosystem Affected Versions Fixed Version
org.openapitools:openapi-generator
Maven
< 4.0.0-20190419.052012-560
4.0.0-20190419.052012-560

References

Frequently Asked Questions

What is CVE-2019-11405?
CVE-2019-11405 is a security vulnerability in Openapi generator involving OpenAPI Tools OpenAPI Generator uses HTTP in various files under CWE-311: Missing Encryption of Sensitive Data.
Which Openapi generator versions are affected?
Affected versions include releases prior to 4.0.0-20190419.052012-560 across affected packages: org.openapitools:openapi-generator.
What version fixes CVE-2019-11405?
Upgrading to 4.0.0-20190419.052012-560 (or the latest patched release for your respective branch) resolves the vulnerability.
Is openapi-generator affected?
Yes, org.openapitools:openapi-generator is affected in releases prior to 4.0.0-20190419.052012-560. Upgrade your dependency to 4.0.0-20190419.052012-560 or later.
What is the CVSS score of CVE-2019-11405?
CVE-2019-11405 has a CVSS v3.1 base score of 7.4 (HIGH) with vector string CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2019-11405?
CVE-2019-11405 is classified under CWE-311: Missing Encryption of Sensitive Data (The product does not encrypt sensitive or critical information before storage or transmission.).
How can I check Maven dependencies for CVE-2019-11405?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.openapitools'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-27j5-2h6r-c9q2",
  "modified" : "2022-11-22T19:04:53Z",
  "published" : "2022-05-24T16:44:03Z",
  "aliases" : [ "CVE-2019-11405" ],
  "summary" : "OpenAPI Tools OpenAPI Generator uses HTTP in various files",
  "details" : "OpenAPI Tools OpenAPI Generator before 4.0.0-20190419.052012-560 uses http:// URLs in various build.gradle, build.gradle.mustache, and build.sbt files, which may have caused insecurely resolved dependencies.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.openapitools:openapi-generator"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.0.0-20190419.052012-560"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-11405"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/OpenAPITools/openapi-generator/issues/2253"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/OpenAPITools/openapi-generator/pull/2248"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/OpenAPITools/openapi-generator/pull/2697"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/OpenAPITools/openapi-generator"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-311" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-11-22T19:04:53Z",
    "nvd_published_at" : "2019-04-22T11:29:00Z"
  }
}