CVE-2024-4701: Genie web Path Traversal Vulnerability
CRITICALCVE-2024-4701 is a CRITICAL (CVSS 9.9) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Genie web libraries in the Maven ecosystem. The issue involves genie path traversal vulnerability via file uploads. Remediation is available by upgrading affected packages to version 4.3.18.
CVE-2024-4701 at a Glance
Security Impact
CVSS: 9.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L).
How to Fix CVE-2024-4701
To remediate this vulnerability, upgrade all affected Genie web dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>com.netflix.genie</groupId>
<artifactId>genie-web</artifactId>
<version>4.3.18</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=com.netflix.genie
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2024-4701, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=com.netflix.genie
Analyze the terminal output to locate any version of Genie web in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.3.18), your application is affected.
Note: The mvn dependency:tree -Dincludes=com.netflix.genie command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Genie web, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-4701 Affected Genie web Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
com.netflix.genie:genie-web
|
Maven |
< 4.3.18
|
4.3.18
|
References
Frequently Asked Questions
What is CVE-2024-4701?
Which Genie web versions are affected?
What version fixes CVE-2024-4701?
Is genie-web affected?
What is the CVSS score of CVE-2024-4701?
What CWE is associated with CVE-2024-4701?
How can I check Maven dependencies for CVE-2024-4701?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wpcv-5jgp-69f3",
"modified" : "2024-05-14T20:04:56Z",
"published" : "2024-05-09T21:35:23Z",
"aliases" : [ "CVE-2024-4701" ],
"summary" : "Genie Path Traversal vulnerability via File Uploads",
"details" : "### Overview\nPath Traversal Vulnerability via File Uploads in Genie \n\n### Impact\nAny 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).\n\nGenie users who do not store these attachments locally on the underlying file system are not vulnerable to this issue. \n\n### Description\nGenie'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. \n\nUsing 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.\n\n### Patches\nThis 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](https://github.com/Netflix/genie/releases/tag/v4.3.18) with the fix was created. Please, upgrade your Genie OSS instances to the new version.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "com.netflix.genie:genie-web"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.3.18"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/Netflix/genie/security/advisories/GHSA-wpcv-5jgp-69f3"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-4701"
}, {
"type" : "WEB",
"url" : "https://github.com/Netflix/genie/pull/1217"
}, {
"type" : "WEB",
"url" : "https://github.com/Netflix/genie/commit/6bad017d8078c94e80d6c6fe8abd693910bf55cf"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Netflix/genie"
}, {
"type" : "WEB",
"url" : "https://github.com/Netflix/genie/releases/tag/v4.3.18"
}, {
"type" : "WEB",
"url" : "https://github.com/Netflix/security-bulletins/blob/master/advisories/nflx-2024-001.md"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-09T21:35:23Z",
"nvd_published_at" : "2024-05-14T15:44:27Z"
}
}