NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Maven

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

highCVSS 3.1 8.3GHSA-g3hr-p86p-593h

Impact Attackers can exploit the 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. Patches The issue was fixed via https://github.com/OpenAPITools/openapi-generator/pull/18652 (included in v7.6.0 release) by removing the usage of the outputFolder option.

Published May 28, 2024

Affected packages

org.openapitools:openapi-generator-online

Ecosystem
Maven
Affected
< 7.6.0
Fixed in
7.6.0
Check
mvn dependency:tree -Dincludes=org.openapitools:openapi-generator-online

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Impact

Attackers can exploit the 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.

Patches

The issue was fixed via https://github.com/OpenAPITools/openapi-generator/pull/18652 (included in v7.6.0 release) by removing the usage of the outputFolder option.

Workarounds

No workaround available.

References

No other reference available.

Credited to stefan-schiller-sonarsource.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology