GHSA-4fg7-vxc8-qx5w: Rage Rage Vulnerable To Malicious Plugin Vulnerability

MODERATE
CWE-25
Published
Advisory Summary

GHSA-4fg7-vxc8-qx5w is a MODERATE rage vulnerable to malicious plugin vulnerability (CWE-25: Path Traversal: '/../filedir') affecting Rage libraries in the crates.io ecosystem. The issue involves rage vulnerable to malicious plugin names, recipients, or identities causing arbitrary binary execution. Remediation is available by upgrading affected packages to version 0.6.1, 0.7.2, 0.8.2, 0.9.3, 0.10.1, 0.11.1.

GHSA-4fg7-vxc8-qx5w at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-4fg7-vxc8-qx5w
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-25: Path Traversal: '/../filedir'
Affected Product Rage
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-4fg7-vxc8-qx5w

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

rage fixed: 0.6.1
Upgrade rage to 0.6.1
age fixed: 0.6.1
Upgrade age to 0.6.1
age fixed: 0.7.2
Upgrade age to 0.7.2
age fixed: 0.8.2
Upgrade age to 0.8.2
age fixed: 0.9.3
Upgrade age to 0.9.3
age fixed: 0.10.1
Upgrade age to 0.10.1
age fixed: 0.11.1
Upgrade age to 0.11.1
rage fixed: 0.7.2
Upgrade rage to 0.7.2
rage fixed: 0.8.2
Upgrade rage to 0.8.2
rage fixed: 0.9.3
Upgrade rage to 0.9.3
rage fixed: 0.10.1
Upgrade rage to 0.10.1
rage fixed: 0.11.1
Upgrade rage to 0.11.1
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 rage

How to Check if You Are Affected

To determine whether your application is affected by GHSA-4fg7-vxc8-qx5w, inspect your project dependencies for Rage:

inspect dependencies for rage

Analyze the terminal output to locate any version of Rage in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.1), 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-25: Path Traversal: '/../filedir', where the product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize "/../" sequences that can resolve to a location that is outside of that directory. In Rage, 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

A plugin name containing a path separator may allow an attacker to execute an arbitrary binary. Such a plugin name can be provided to the `rage` CLI through an attacker-controlled recipient or identity string, or to the following `age` APIs when the `plugin` feature flag is enabled: - [`age::plugin::Identity::from_str`](https://docs.rs/age/0.11.0/age/plugin/struct.Identity.html#impl-FromStr-for-Identity) (or equivalently [`str::parse::<age::plugin::Identity>()`](https://doc.rust-lang.org/stable/core/primitive.str.html#method.parse)) - [`age::plugin::Identity::default_for_plugin`](https://docs.rs/age/0.11.0/age/plugin/struct.Identity.html#method.default_for_plugin) - [`age::plugin::IdentityPluginV1::new`](https://docs.rs/age/0.11.0/age/plugin/struct.IdentityPluginV1.html#method.new) - [`age::plugin::Recipient::from_str`](https://docs.rs/age/0.11.0/age/plugin/struct.Recipient.html#impl-FromStr-for-Recipient) (or equivalently [`str::parse::<age::plugin::Recipient>()`](https://doc.rust-lang.org/stable/core/primitive.str.html#method.parse)) - [`age::plugin::RecipientPluginV1::new`](https://docs.rs/age/0.11.0/age/plugin/struct.RecipientPluginV1.html#method.new) On UNIX systems, a directory matching `age-plugin-*` needs to exist in the working directory for the attack to succeed. The binary is executed with a single flag, either `--age-plugin=recipient-v1` or `--age-plugin=identity-v1`. The standard input includes the recipient or identity string, and the random file key (if encrypting) or the header of the file (if decrypting). The format is constrained by the [age-plugin](https://c2sp.org/age-plugin) protocol. An equivalent issue was fixed in [the reference Go implementation of age](https://github.com/FiloSottile/age), see advisory [GHSA-32gq-x56h-299c](https://github.com/FiloSottile/age/security/advisories/GHSA-32gq-x56h-299c). Thanks to ⬡-49016 for reporting this issue.

GHSA-4fg7-vxc8-qx5w Affected Rage Versions

12 component(s)
Fixed Versions:
0.6.10.7.20.8.20.9.30.10.10.11.1
Product / Package Ecosystem Affected Versions Fixed Version
rage
crates.io
≥ 0.6.0
< 0.6.1
All 1 versions
0.6.0
0.6.1
age
crates.io
≥ 0.6.0
< 0.6.1
All 1 versions
0.6.0
0.6.1
age
crates.io
≥ 0.7.0
< 0.7.2
0.7.2
age
crates.io
≥ 0.8.0
< 0.8.2
0.8.2
age
crates.io
≥ 0.9.0
< 0.9.3
0.9.3
age
crates.io
≥ 0.10.0
< 0.10.1
All 1 versions
0.10.0
0.10.1
age
crates.io
≥ 0.11.0
< 0.11.1
All 1 versions
0.11.0
0.11.1
rage
crates.io
≥ 0.7.0
< 0.7.2
0.7.2
rage
crates.io
≥ 0.8.0
< 0.8.2
0.8.2
rage
crates.io
≥ 0.9.0
< 0.9.3
0.9.3
rage
crates.io
≥ 0.10.0
< 0.10.1
All 1 versions
0.10.0
0.10.1
rage
crates.io
≥ 0.11.0
< 0.11.1
All 1 versions
0.11.0
0.11.1

References

Frequently Asked Questions

What is GHSA-4fg7-vxc8-qx5w?
GHSA-4fg7-vxc8-qx5w is a security vulnerability in Rage involving rage vulnerable to malicious plugin names, recipients, or identities causing arbitrary binary execution under CWE-25: Path Traversal: '/../filedir'.
Which Rage versions are affected?
Affected versions include releases prior to 0.6.1, 0.7.2, 0.8.2, 0.9.3, 0.10.1, 0.11.1 across affected packages: rage, age.
What version fixes GHSA-4fg7-vxc8-qx5w?
Upgrading to 0.6.1, 0.7.2, 0.8.2, 0.9.3, 0.10.1, 0.11.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is rage affected?
Yes, rage is affected in releases prior to 0.6.1, 0.7.2, 0.8.2, 0.9.3, 0.10.1, 0.11.1. Upgrade your dependency to 0.6.1, 0.7.2, 0.8.2, 0.9.3, 0.10.1, 0.11.1 or later.
Is age affected?
Yes, age is affected in releases prior to 0.6.1, 0.7.2, 0.8.2, 0.9.3, 0.10.1, 0.11.1. Upgrade your dependency to 0.6.1, 0.7.2, 0.8.2, 0.9.3, 0.10.1, 0.11.1 or later.
What CWE is associated with GHSA-4fg7-vxc8-qx5w?
GHSA-4fg7-vxc8-qx5w is classified under CWE-25: Path Traversal: '/../filedir' (The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize "/../" sequences that can resolve to a location that is outside of that directory.).
How can I check crates.io dependencies for GHSA-4fg7-vxc8-qx5w?
Run the dependency tree command: 'inspect dependencies for rage'. 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-4fg7-vxc8-qx5w",
  "modified" : "2025-01-03T19:29:42Z",
  "published" : "2024-12-18T18:21:55Z",
  "aliases" : [ ],
  "summary" : "rage vulnerable to malicious plugin names, recipients, or identities causing arbitrary binary execution",
  "details" : "A plugin name containing a path separator may allow an attacker to execute an arbitrary binary.\n\nSuch a plugin name can be provided to the `rage` CLI through an attacker-controlled recipient or identity string, or to the following `age` APIs when the `plugin` feature flag is enabled:\n- [`age::plugin::Identity::from_str`](https://docs.rs/age/0.11.0/age/plugin/struct.Identity.html#impl-FromStr-for-Identity) (or equivalently [`str::parse::<age::plugin::Identity>()`](https://doc.rust-lang.org/stable/core/primitive.str.html#method.parse))\n- [`age::plugin::Identity::default_for_plugin`](https://docs.rs/age/0.11.0/age/plugin/struct.Identity.html#method.default_for_plugin)\n- [`age::plugin::IdentityPluginV1::new`](https://docs.rs/age/0.11.0/age/plugin/struct.IdentityPluginV1.html#method.new)\n- [`age::plugin::Recipient::from_str`](https://docs.rs/age/0.11.0/age/plugin/struct.Recipient.html#impl-FromStr-for-Recipient) (or equivalently [`str::parse::<age::plugin::Recipient>()`](https://doc.rust-lang.org/stable/core/primitive.str.html#method.parse))\n- [`age::plugin::RecipientPluginV1::new`](https://docs.rs/age/0.11.0/age/plugin/struct.RecipientPluginV1.html#method.new)\n\nOn UNIX systems, a directory matching `age-plugin-*` needs to exist in the working directory for the attack to succeed.\n\nThe binary is executed with a single flag, either `--age-plugin=recipient-v1` or `--age-plugin=identity-v1`. The standard input includes the recipient or identity string,  and the random file key (if encrypting) or the header of the file (if decrypting). The format is constrained by the [age-plugin](https://c2sp.org/age-plugin) protocol.\n\nAn equivalent issue was fixed in [the reference Go implementation of age](https://github.com/FiloSottile/age), see advisory [GHSA-32gq-x56h-299c](https://github.com/FiloSottile/age/security/advisories/GHSA-32gq-x56h-299c).\n\nThanks to ⬡-49016 for reporting this issue.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "rage"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.6.0"
      }, {
        "fixed" : "0.6.1"
      } ]
    } ],
    "versions" : [ "0.6.0" ]
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "age"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.6.0"
      }, {
        "fixed" : "0.6.1"
      } ]
    } ],
    "versions" : [ "0.6.0" ]
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "age"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.7.0"
      }, {
        "fixed" : "0.7.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "age"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.8.0"
      }, {
        "fixed" : "0.8.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "age"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.9.0"
      }, {
        "fixed" : "0.9.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "age"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.10.0"
      }, {
        "fixed" : "0.10.1"
      } ]
    } ],
    "versions" : [ "0.10.0" ]
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "age"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.11.0"
      }, {
        "fixed" : "0.11.1"
      } ]
    } ],
    "versions" : [ "0.11.0" ]
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "rage"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.7.0"
      }, {
        "fixed" : "0.7.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "rage"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.8.0"
      }, {
        "fixed" : "0.8.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "rage"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.9.0"
      }, {
        "fixed" : "0.9.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "rage"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.10.0"
      }, {
        "fixed" : "0.10.1"
      } ]
    } ],
    "versions" : [ "0.10.0" ]
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "rage"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.11.0"
      }, {
        "fixed" : "0.11.1"
      } ]
    } ],
    "versions" : [ "0.11.0" ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/str4d/rage/security/advisories/GHSA-4fg7-vxc8-qx5w"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/str4d/rage/commit/703152ecfa86f27952a35b57dd525ed39396a227"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/str4d/rage"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2024-0432.html"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2024-0433.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-25" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-12-18T18:21:55Z",
    "nvd_published_at" : null
  }
}