Vulnerabilities in pkg:maven/org.openapitools/openapi-generator
PACKAGECVE-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.
pkg:maven/org.openapitools/openapi-generator
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
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).
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.
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator</artifactId>
<version>4.0.0-20190419.052012-560</version>
</dependency>
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
CVE-2019-11405 Affected Openapi generator Versions
1 component(s)| 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?
Which Openapi generator versions are affected?
What version fixes CVE-2019-11405?
Is openapi-generator affected?
What is the CVSS score of CVE-2019-11405?
What CWE is associated with CVE-2019-11405?
How can I check Maven dependencies for CVE-2019-11405?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}