# CVE-2024-35219: OpenAPI Generator Online - Arbitrary File Read/Delete

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.3
- **CVSS:** 8.3 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 3.52% (percentile 90, 2026-11-26)
- **CWE:** CWE-22
- **Aliases:** GHSA-g3hr-p86p-593h
- **Published:** 2024-05-27T16:11:22.875Z
- **Modified:** 2026-09-10T03:50:00.426Z

## Who should check

- Projects that depend on Maven package org.openapitools:openapi-generator-online (\< 7.6.0)
- Anyone running OpenAPITools openapi-generator \< 7.6.0

## Description

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec. Prior to version 7.6.0, attackers can exploit a path traversal vulnerability to read and delete files and folders from an arbitrary, writable directory as anyone can set the output folder when submitting the request via the \`outputFolder\` option. The issue was fixed in version 7.6.0 by removing the usage of the \`outputFolder\` option. No known workarounds are available.

## Affected and fixed versions

- Maven `org.openapitools:openapi-generator-online`: affected \< 7.6.0; fixed 7.6.0 (osv)
- OpenAPITools openapi-generator: \< 7.6.0 (cvelist)

## Mitigation

- Upgrade org.openapitools:openapi-generator-online to 7.6.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-35219. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-35219.md
Affected: org.openapitools:openapi-generator-online < 7.6.0
Fixed in: 7.6.0

Steps:
1. Search this machine and project for org.openapitools:openapi-generator-online (Maven), OpenAPITools openapi-generator: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-35219 being exploited?

There is no confirmed exploitation: CVE-2024-35219 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 3.52% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-35219?

High: CVSS 8.3 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2024-35219?

org.openapitools:openapi-generator-online \< 7.6.0.

### Is there a fix for CVE-2024-35219?

Yes. Fixed in 7.6.0. Upgrade org.openapitools:openapi-generator-online to 7.6.0 or later.

### How do I check if I'm affected by CVE-2024-35219?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/OpenAPITools/openapi-generator/security/advisories/GHSA-g3hr-p86p-593h>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-35219>
- patch: <https://github.com/OpenAPITools/openapi-generator/pull/18652>
- patch: <https://github.com/OpenAPITools/openapi-generator/commit/edbb021aadae47dcfe690313ce5119faf77f800d>
- other: <https://github.com/OpenAPITools/openapi-generator>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-35219>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-g3hr-p86p-593h> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-35219> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-35219>
