GHSA-qwf7-rv77-fcr3: Duplicate Advisory Path Traversal Vulnerability

LOW
CWE-22
Published
Advisory Summary

GHSA-qwf7-rv77-fcr3 is a LOW path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Duplicate Advisory libraries in the RubyGems ecosystem. The issue involves malicious url drafting attack against iodines static file server may allow path traversal. Remediation is available in the latest vendor maintenance releases.

GHSA-qwf7-rv77-fcr3 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-qwf7-rv77-fcr3
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Duplicate Advisory
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix GHSA-qwf7-rv77-fcr3

To remediate this vulnerability, upgrade all affected Duplicate Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

iodine fixed: Latest secure release
Upgrade iodine to Latest secure release
Verify Direct and Transitive Dependencies

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 GHSA-qwf7-rv77-fcr3, inspect your project dependencies for Duplicate Advisory:

inspect dependencies for iodine

Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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 Duplicate Advisory, 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

### Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-85rf-xh54-whp3. This link is maintained to preserve external references. ### Original Description Path traversal in the static file service in Iodine less than 0.7.33 allows an unauthenticated, remote attacker to read files outside the public folder via malicious URLs.

GHSA-qwf7-rv77-fcr3 Affected Duplicate Advisory Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
iodine
RubyGems

References

Frequently Asked Questions

What is GHSA-qwf7-rv77-fcr3?
GHSA-qwf7-rv77-fcr3 is a security vulnerability in Duplicate Advisory involving Malicious URL drafting attack against iodines static file server may allow path traversal under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to current release patches across affected packages: iodine.
What version fixes GHSA-qwf7-rv77-fcr3?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is iodine affected?
Yes, iodine is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with GHSA-qwf7-rv77-fcr3?
GHSA-qwf7-rv77-fcr3 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (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.).
How can I check RubyGems dependencies for GHSA-qwf7-rv77-fcr3?
Run the dependency tree command: 'inspect dependencies for iodine'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-qwf7-rv77-fcr3",
  "modified" : "2024-01-05T15:28:54Z",
  "published" : "2024-01-04T21:30:24Z",
  "withdrawn" : "2024-01-05T15:28:54Z",
  "aliases" : [ ],
  "summary" : "Duplicate Advisory: Malicious URL drafting attack against iodines static file server may allow path traversal",
  "details" : "### Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-85rf-xh54-whp3. This link is maintained to preserve external references.\n\n### Original Description\nPath traversal in the static file service in Iodine less than 0.7.33 allows an unauthenticated, remote attacker to read files outside the public folder via malicious URLs.\n\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "iodine"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 0.7.33"
    }
  } ],
  "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" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-85rf-xh54-whp3"
  }, {
    "type" : "WEB",
    "url" : "https://vulncheck.com/advisories/vc-advisory-GHSA-85rf-xh54-whp3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-05T15:28:54Z",
    "nvd_published_at" : "2024-01-04T21:15:10Z"
  }
}