CVE-2024-35219
Java vulnerability analysis and mitigation

Overview

OpenAPI Generator, a popular tool for generating API client libraries and server stubs, was found to contain a path traversal vulnerability (CVE-2024-35219) in versions prior to 7.6.0. The vulnerability was discovered in the online service component that allows users to generate code based on OpenAPI specifications. The issue was publicly disclosed on May 27, 2024, after being identified by a security researcher from SonarSource (Sonar Blog).

Technical details

The vulnerability stems from improper handling of the 'outputFolder' option in the generator's online service. When users submit a request, they can specify an arbitrary output folder path through this option. The application fails to properly validate or sanitize this input, allowing for path traversal sequences (../../) to access directories outside the intended scope. The vulnerability has been assigned a CVSS v3.1 base score of 8.3 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H, indicating network accessibility with low attack complexity (GitHub Advisory).

Impact

The vulnerability allows attackers to read and delete files and folders from any writable directory on the system where the OpenAPI Generator online service is running. This presents a significant security risk as it could lead to unauthorized access to sensitive files and potential data loss through malicious file deletion (GitHub Advisory, Sonar Blog).

Exploitability

The vulnerability can be exploited by sending a specially crafted request to the API endpoint with a manipulated 'outputFolder' parameter. The attack requires network access and low privileges, but no user interaction is needed. The vulnerability was discovered through taint analysis, which revealed a complex taint flow traversing 28 steps from the user input to the dangerous file operation (Sonar Blog).

Mitigation and workarounds

The vulnerability has been fixed in OpenAPI Generator version 7.6.0 by completely removing the usage of the 'outputFolder' option. Users are strongly advised to upgrade to this version or later. No workarounds are available for users who cannot immediately upgrade (GitHub Advisory, GitHub PR).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-10050HIGH8.7
  • Java logoJava
  • spark-kubernetes-operator-fips
NoYesAug 04, 2026
CVE-2026-56818MEDIUM6.5
  • Java logoJava
  • netty-javadoc
NoYesAug 07, 2026
CVE-2026-48047MEDIUM5.9
  • Java logoJava
  • org.xwiki.platform:xwiki-platform-webjars-api
NoYesAug 07, 2026
CVE-2026-53573MEDIUM4.8
  • Java logoJava
  • org.geonetwork-opensource:geonetwork
NoYesJul 31, 2026
CVE-2026-71497MEDIUM4.7
  • Java logoJava
  • jsoup
NoYesAug 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management