Patchfirst
CVE-2024-35219 Public exploit High · 8.3 EPSS 3.6%

OpenAPI Generator Online - Arbitrary File Read/Delete

Fix:upgrade openapi-generator-online to 7.6.0 or later Details ↓

OpenAPITools · openapi-generator

Summary

The openapi-generator product from OpenAPITools contains a path traversal flaw in its online generation service, where the user-supplied outputFolder option is not restricted to a safe directory. An attacker with network access and low privileges (no user interaction needed) can submit a request that reads and deletes files and folders in any writable location on the host, with no special configuration required.

Official description · CVE.org

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.

Breakdown
63.8 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 6 months after disclosure.

  1. Disclosedday 0
  2. First seen exploitedVulnCheck KEV evidence+6 mo

Affected versions and fixes

as published in the CVE record

OpenAPITools openapi-generator

Affected: < 7.6.0

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: org.openapitools:openapi-generator-online.

Mavenorg.openapitools:openapi-generator-onlineGHSA-g3hr-p86p-593h

Upgrade to 7.6.0 or later

Set the version to 7.6.0 or later in your pom.xml or build.gradle.

The first fix for CVE-2024-35219. No other CVE tracked by Patchfirst affects this package.

Affected versions

If you runUpgrade to
All versions before 7.6.07.6.0

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

References

3 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close