CVE-2024-35219 is a high-severity (CVSS 8.3) Path Traversal vulnerability in org.openapitools:openapi-generator-online. A fix is available for org.openapitools:openapi-generator-online — see the affected versions and patch details below.
OpenAPI Generator Online - Arbitrary File Read/Delete
Exploitation Status
Proof-of-concept exploit code exists
- CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.
Exploitation and automatability from CISA’s SSVC triage for CVE-2024-35219.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.openapitools:openapi-generator-onlineReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
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 Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.openapitools:openapi-generator-online | all versions | 7.6.0org.openapitools:openapi-generator-online:7.6.0 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.openapitools:openapi-generator-online, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.openapitools:openapi-generator-online to 7.6.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2024-35219 is resolved across your whole dependency graph.
Workarounds
Resolve every user-supplied path to its canonical form and reject anything that escapes the intended directory, and run the component under an account that has no read or write access outside the directory it legitimately serves.
How to detect CVE-2024-35219
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id cve-2024-35219 -u https://target- Template
- OpenAPI Generator <= 7.5.0 - Arbitrary File Read/Delete
- Severity
- high
- Impact
- Authenticated attackers can read and delete arbitrary files and folders from writable directories.
- Remediation
- Update OpenAPI Generator to a version later than 7.5.0.
Template by ProjectDiscovery nuclei-templates (iamnoooob, rootxharsh, pdresearch), MIT licensed. View the full template. Scan only systems you are authorised to test.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
This vulnerability in OpenAPI Generator is classified as Moderate severity due to its potential to be exploited for unauthorized file system access, allowing attackers to perform read and delete operations on files and folders within any writable directory. The impact is mitigated by the requirement that attackers…
Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.Source: Red Hat security advisory for CVE-2024-35219 (CC BY 4.0)
Frequently Asked Questions
Is CVE-2024-35219 in your dependencies?
Find it across Maven, including transitive dependencies.