CVE-2023-27162: OpenAPI Generator vulnerable to Server-Side Request Forgery
9.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.28302%
CWE
Published
3/31/2023
Updated
4/7/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.openapitools:openapi-generator-project | maven | <= 6.4.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability manifests in endpoints that accept user-supplied URLs for OpenAPI spec retrieval. The functions handling these endpoints (generateClient
and generateServer
) directly use the 'openAPIUrl' parameter to make outbound HTTP requests without validating allowed domains/IP ranges. This matches the SSRF behavior described in CVE-2023-27162
where crafted API requests can access network resources. The POC demonstrates SSRF via DNS callbacks when providing attacker-controlled URLs, confirming the lack of input validation in these code paths.