The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2023-27162

CVE-2023-27162: Openapi Generator SSRF Vulnerability

CVE-2023-27162 is a Server-Side Request Forgery flaw in Openapi Generator up to v6.4.0 that enables attackers to access network resources via crafted requests. This article covers technical details, affected versions, and mitigation.

Published: February 4, 2026

CVE-2023-27162 Overview

OpenAPI Generator up to version 6.4.0 contains a Server-Side Request Forgery (SSRF) vulnerability in the /api/gen/clients/{language} component. This vulnerability allows attackers to access network resources and sensitive information via a crafted API request. SSRF vulnerabilities enable malicious actors to make requests from the vulnerable server to internal services, potentially exposing sensitive data or enabling further attacks against internal infrastructure.

Critical Impact

This SSRF vulnerability allows unauthenticated attackers to access internal network resources and sensitive information through the OpenAPI Generator API endpoint, potentially leading to data exfiltration and internal network reconnaissance.

Affected Products

  • OpenAPI Generator versions up to and including 6.4.0
  • Applications using the vulnerable /api/gen/clients/{language} endpoint
  • Self-hosted OpenAPI Generator instances with exposed API endpoints

Discovery Timeline

  • 2023-03-31 - CVE-2023-27162 published to NVD
  • 2025-02-18 - Last updated in NVD database

Technical Details for CVE-2023-27162

Vulnerability Analysis

This Server-Side Request Forgery (SSRF) vulnerability exists in the OpenAPI Generator's client generation API endpoint. The vulnerable component /api/gen/clients/{language} fails to properly validate and sanitize URL parameters in API requests, allowing attackers to specify arbitrary URLs that the server will then request on their behalf.

When the OpenAPI Generator processes a client generation request, it accepts an OpenAPI specification URL as input. The application retrieves the specification from the provided URL without adequate validation, enabling attackers to redirect these requests to internal network resources, cloud metadata endpoints, or other sensitive services that should not be externally accessible.

The vulnerability is classified under CWE-918 (Server-Side Request Forgery), which describes flaws where an attacker can make a server perform requests to unintended locations. In this case, the impact includes potential access to confidential data and the ability to interact with internal services.

Root Cause

The root cause of this vulnerability is insufficient input validation and URL sanitization in the OpenAPI Generator's API endpoint. The application does not implement proper allowlisting or blocklisting mechanisms for URLs provided in client generation requests. This allows attackers to specify internal IP addresses, localhost references, cloud metadata URLs (such as http://169.254.169.254/), or other internal network resources as the OpenAPI specification source.

Attack Vector

An attacker exploits this vulnerability by sending a specially crafted API request to the /api/gen/clients/{language} endpoint with a malicious URL in the openAPIUrl parameter. The server-side application then makes a request to this attacker-controlled URL, potentially exposing internal services or retrieving sensitive information.

The attack requires network access to the vulnerable OpenAPI Generator instance. No authentication or user interaction is required to exploit this vulnerability. Attackers can leverage this to:

  • Access internal network services not exposed to the internet
  • Retrieve cloud instance metadata containing credentials
  • Scan internal networks for available services
  • Exfiltrate sensitive configuration data

Technical details and proof-of-concept information are available in the GitHub Gist Code Snippet and the SJTU Notes Resource.

Detection Methods for CVE-2023-27162

Indicators of Compromise

  • Unusual outbound requests from the OpenAPI Generator server to internal IP ranges (e.g., 10.x.x.x, 172.16.x.x, 192.168.x.x)
  • Requests to cloud metadata endpoints such as 169.254.169.254 originating from the application server
  • API calls to /api/gen/clients/{language} containing suspicious URL parameters pointing to internal resources
  • Unexpected network traffic from the server to localhost or loopback addresses

Detection Strategies

  • Monitor API access logs for requests to /api/gen/clients/ endpoints with URL parameters containing internal IP addresses or metadata service URLs
  • Implement network monitoring to detect outbound connections from the OpenAPI Generator server to internal network ranges
  • Deploy web application firewall (WAF) rules to detect and block SSRF patterns in incoming requests
  • Use intrusion detection systems to alert on requests containing common SSRF payloads

Monitoring Recommendations

  • Enable detailed logging for all API requests to the OpenAPI Generator service, including full request parameters
  • Configure network segmentation alerts to detect when the application server attempts to access restricted internal resources
  • Implement DNS query logging to identify resolution attempts for internal hostnames from the vulnerable application
  • Set up automated alerting for requests containing suspicious URL schemes (e.g., file://, gopher://, dict://)

How to Mitigate CVE-2023-27162

Immediate Actions Required

  • Upgrade OpenAPI Generator to a version newer than 6.4.0 that includes the security fix
  • If immediate upgrade is not possible, restrict network access to the /api/gen/clients/ API endpoints
  • Implement network-level controls to prevent the OpenAPI Generator server from accessing internal resources
  • Review logs for evidence of exploitation attempts targeting this vulnerability

Patch Information

Organizations should upgrade to the latest version of OpenAPI Generator available from the GitHub OpenAPI Generator Repository. Review the release notes for security fixes addressing this SSRF vulnerability. The OpenAPI Generator Homepage provides additional documentation and upgrade guidance.

Workarounds

  • Implement URL allowlisting at the application or proxy level to restrict which external URLs the OpenAPI Generator can access
  • Deploy a web application firewall (WAF) with rules to block requests containing internal IP addresses or metadata service URLs in the openAPIUrl parameter
  • Use network segmentation to isolate the OpenAPI Generator server and prevent it from accessing sensitive internal services
  • Disable or remove the /api/gen/clients/ endpoint if client generation functionality is not required
bash
# Example network restriction using iptables to block internal network access
# Block access to common internal ranges from the application server
iptables -A OUTPUT -d 10.0.0.0/8 -j DROP
iptables -A OUTPUT -d 172.16.0.0/12 -j DROP
iptables -A OUTPUT -d 192.168.0.0/16 -j DROP
iptables -A OUTPUT -d 169.254.169.254 -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeSSRF

  • Vendor/TechOpenapi Generator

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.13%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-918
  • Technical References
  • OpenAPI Generator Homepage

  • GitHub Gist Code Snippet

  • GitHub OpenAPI Generator Repository

  • SJTU Notes Resource
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English