Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS13cGN2LTVqZ3AtNjlmM84AA74R
Genie Path Traversal vulnerability via File Uploads
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.
Permalink: https://github.com/advisories/GHSA-wpcv-5jgp-69f3JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS13cGN2LTVqZ3AtNjlmM84AA74R
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: 4 months ago
Updated: 4 months ago
CVSS Score: 9.9
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L
Identifiers: GHSA-wpcv-5jgp-69f3, CVE-2024-4701
References:
- https://github.com/Netflix/genie/security/advisories/GHSA-wpcv-5jgp-69f3
- https://github.com/Netflix/genie/pull/1217
- https://github.com/Netflix/genie/commit/6bad017d8078c94e80d6c6fe8abd693910bf55cf
- https://github.com/Netflix/genie/releases/tag/v4.3.18
- https://nvd.nist.gov/vuln/detail/CVE-2024-4701
- https://github.com/Netflix/security-bulletins/blob/master/advisories/nflx-2024-001.md
- https://github.com/advisories/GHSA-wpcv-5jgp-69f3
Blast Radius: 1.0
Affected Packages
maven:com.netflix.genie:genie-web
Dependent packages: 5Dependent repositories: 0
Downloads:
Affected Version Ranges: < 4.3.18
Fixed in: 4.3.18
All affected versions: 1.0.0, 1.0.1, 2.0.0, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1, 2.2.3, 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.0.6, 3.0.7, 3.0.8, 3.0.9, 3.0.10, 3.0.11, 3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.2.0, 3.2.1, 3.2.2, 3.2.3, 3.2.4, 3.2.5, 3.3.0, 3.3.2, 3.3.3, 3.3.4, 3.3.5, 3.3.6, 3.3.7, 3.3.8, 3.3.9, 3.3.10, 3.3.11, 3.3.12, 3.3.13, 3.3.14, 3.3.15, 3.3.16, 3.3.17, 3.3.18, 3.3.19, 3.3.20, 3.3.22, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.0.5, 4.0.6, 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.1.4, 4.1.5, 4.1.6, 4.2.0, 4.2.1, 4.2.2, 4.3.0, 4.3.2, 4.3.3, 4.3.4, 4.3.5, 4.3.6, 4.3.7, 4.3.8, 4.3.11, 4.3.12, 4.3.13, 4.3.14, 4.3.15, 4.3.16, 4.3.17
All unaffected versions: 4.3.18, 4.3.19