GHSA-wpcv-5jgp-69f3

Suggest an improvement
Source
https://github.com/advisories/GHSA-wpcv-5jgp-69f3
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/05/GHSA-wpcv-5jgp-69f3/GHSA-wpcv-5jgp-69f3.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-wpcv-5jgp-69f3
Aliases
  • CVE-2024-4701
Published
2024-05-09T21:35:23Z
Modified
2024-05-14T20:20:04.185895Z
Severity
  • 9.9 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L CVSS Calculator
Summary
Genie Path Traversal vulnerability via File Uploads
Details

Overview

Path Traversal Vulnerability via File Uploads in Genie

Impact

Any Genie OSS users running their own instance and relying on the filesystem to store file attachments submitted to the Genie application may be impacted. Using this technique, it is possible to write a file with any user-specified filename and file contents to any location on the file system that the Java process has write access - potentially leading to remote code execution (RCE).

Genie users who do not store these attachments locally on the underlying file system are not vulnerable to this issue.

Description

Genie's API accepts a multipart/form-data file upload which can be saved to a location on disk. However, it takes a user-supplied filename as part of the request and uses this as the filename when writing the file to disk. Since this filename is user-controlled, it is possible for a malicious actor to manipulate the filename in order to break out of the default attachment storage path and perform path traversal.

Using this technique it is possible to write a file with any user specified name and file contents to any location on the file system that the Java process has write access to.

Patches

This path traversal issue is fixed in Genie OSS v4.3.18. This issue was fixed in https://github.com/Netflix/genie/pull/1216 and https://github.com/Netflix/genie/pull/1217 and a new release with the fix was created. Please, upgrade your Genie OSS instances to the new version.

Database specific
{
    "nvd_published_at": "2024-05-14T15:44:27Z",
    "cwe_ids": [
        "CWE-22"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2024-05-09T21:35:23Z"
}
References

Affected packages

Maven / com.netflix.genie:genie-web

Package

Name
com.netflix.genie:genie-web
View open source insights on deps.dev
Purl
pkg:maven/com.netflix.genie/genie-web

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All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