CVE-2024-22050: Iodine Path Traversal Vulnerability
HIGHCVE-2024-22050 is a HIGH (CVSS 7.5) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Iodine libraries in the RubyGems ecosystem. The issue involves malicious url drafting attack against iodines static file server may allow path traversal. Remediation is available by upgrading affected packages to version 0.7.34.
CVE-2024-22050 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2024-22050
To remediate this vulnerability, upgrade all affected Iodine dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade iodine to 0.7.34
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for iodine
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-22050, inspect your project dependencies for Iodine:
inspect dependencies for iodine
Analyze the terminal output to locate any version of Iodine in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.7.34), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
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 Iodine, 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-22050 Affected Iodine Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
iodine
|
RubyGems |
< 0.7.34
|
0.7.34
|
References
Frequently Asked Questions
What is CVE-2024-22050?
Which Iodine versions are affected?
What version fixes CVE-2024-22050?
Is iodine affected?
What is the CVSS score of CVE-2024-22050?
What CWE is associated with CVE-2024-22050?
How can I check RubyGems dependencies for CVE-2024-22050?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-85rf-xh54-whp3",
"modified" : "2025-11-15T03:10:40Z",
"published" : "2019-10-07T16:52:13Z",
"aliases" : [ "CVE-2024-22050" ],
"summary" : "Malicious URL drafting attack against iodines static file server may allow path traversal",
"details" : "### Impact\n\nA path traversal vulnerability was detected in iodine's static file service. This vulnerability effects any application running iodine's static file server on an effected iodine version.\n\nMalicious URL drafting may cause the static file server to attempt a response containing data from files that shouldn't be normally accessible from the public folder.\n\n### Patches\n\nThe vulnerability was patched in version 0.7.34. Please upgrade to the latest version.\n\n### Workarounds\n\nA possible workaround would be to disable the static file service and it's `X-Sendfile` support, sending static files using nginx or a source code solution (sending the data dynamically).\n\nHowever, it would be better to upgrade iodine to the latest version, as it also contains non-security related fixes.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email [Boaz Segev](https://github.com/boazsegev)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "iodine"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.7.34"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/boazsegev/iodine/security/advisories/GHSA-85rf-xh54-whp3"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-22050"
}, {
"type" : "WEB",
"url" : "https://github.com/boazsegev/iodine/commit/5558233fb7defda706b4f9c87c17759705949889"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/boazsegev/iodine"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/iodine/CVE-2024-22050.yml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-04-24T20:13:10Z",
"nvd_published_at" : null
}
}