GHSA-32gq-x56h-299c: Filippo.io/age Age Vulnerable To Malicious Plugin Vulnerability

MODERATE
CWE-25
Published
Advisory Summary

GHSA-32gq-x56h-299c is a MODERATE age vulnerable to malicious plugin vulnerability (CWE-25: Path Traversal: '/../filedir') affecting Filippo.io/age libraries in the Go ecosystem. The issue involves age vulnerable to malicious plugin names, recipients, or identities causing arbitrary binary execution. Remediation is available by upgrading affected packages to version 1.2.1.

GHSA-32gq-x56h-299c at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-32gq-x56h-299c
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-25: Path Traversal: '/../filedir'
Affected Product Filippo.io/age
Package Ecosystem Go
Published Date
Last Updated

How to Fix GHSA-32gq-x56h-299c

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

filippo.io/age fixed: 1.2.1
Upgrade filippo.io/age to 1.2.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 filippo.io/age

How to Check if You Are Affected

To determine whether your application is affected by GHSA-32gq-x56h-299c, inspect your project dependencies for Filippo.io/age:

inspect dependencies for filippo.io/age

Analyze the terminal output to locate any version of Filippo.io/age in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.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 Filippo.io/age, 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 age CLI through an attacker-controlled recipient or identity string, or to the [`plugin.NewIdentity`](https://pkg.go.dev/filippo.io/age/plugin#NewIdentity), [`plugin.NewIdentityWithoutData`](https://pkg.go.dev/filippo.io/age/plugin#NewIdentityWithoutData), or [`plugin.NewRecipient`](https://pkg.go.dev/filippo.io/age/plugin#NewRecipient) APIs. On UNIX systems, a directory matching `${TMPDIR:-/tmp}/age-plugin-*` needs to exist 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 by the [rage](https://github.com/str4d/rage) project, see advisory [GHSA-4fg7-vxc8-qx5w](https://github.com/str4d/rage/security/advisories/GHSA-4fg7-vxc8-qx5w). Thanks to ⬡-49016 for reporting this.

GHSA-32gq-x56h-299c Affected Filippo.io/age Versions

1 component(s)
Fixed Versions:
1.2.1
Product / Package Ecosystem Affected Versions Fixed Version
filippo.io/age
Go
< 1.2.1
1.2.1

References

Frequently Asked Questions

What is GHSA-32gq-x56h-299c?
GHSA-32gq-x56h-299c is a security vulnerability in Filippo.io/age involving age vulnerable to malicious plugin names, recipients, or identities causing arbitrary binary execution under CWE-25: Path Traversal: '/../filedir'.
Which Filippo.io/age versions are affected?
Affected versions include releases prior to 1.2.1 across affected packages: filippo.io/age.
What version fixes GHSA-32gq-x56h-299c?
Upgrading to 1.2.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is filippo.io/age affected?
Yes, filippo.io/age is affected in releases prior to 1.2.1. Upgrade your dependency to 1.2.1 or later.
What CWE is associated with GHSA-32gq-x56h-299c?
GHSA-32gq-x56h-299c 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 Go dependencies for GHSA-32gq-x56h-299c?
Run the dependency tree command: 'inspect dependencies for filippo.io/age'. 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-32gq-x56h-299c",
  "modified" : "2024-12-20T21:41:09Z",
  "published" : "2024-12-18T18:23:06Z",
  "aliases" : [ ],
  "summary" : "age 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 age CLI through an attacker-controlled recipient or identity string, or to the [`plugin.NewIdentity`](https://pkg.go.dev/filippo.io/age/plugin#NewIdentity), [`plugin.NewIdentityWithoutData`](https://pkg.go.dev/filippo.io/age/plugin#NewIdentityWithoutData), or [`plugin.NewRecipient`](https://pkg.go.dev/filippo.io/age/plugin#NewRecipient) APIs.\n\nOn UNIX systems, a directory matching `${TMPDIR:-/tmp}/age-plugin-*` needs to exist 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 by the [rage](https://github.com/str4d/rage) project, see advisory [GHSA-4fg7-vxc8-qx5w](https://github.com/str4d/rage/security/advisories/GHSA-4fg7-vxc8-qx5w).\n\nThanks to ⬡-49016 for reporting this.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "filippo.io/age"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/FiloSottile/age/security/advisories/GHSA-32gq-x56h-299c"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/str4d/rage/security/advisories/GHSA-4fg7-vxc8-qx5w"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FiloSottile/age/commit/482cf6fc9babd3ab06f6606762aac10447222201"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/FiloSottile/age"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-25" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-12-18T18:23:06Z",
    "nvd_published_at" : null
  }
}