GHSA-32gq-x56h-299c: Filippo.io/age Age Vulnerable To Malicious Plugin Vulnerability
MODERATEGHSA-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
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.
Upgrade filippo.io/age to 1.2.1
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
GHSA-32gq-x56h-299c Affected Filippo.io/age Versions
1 component(s)| 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?
Which Filippo.io/age versions are affected?
What version fixes GHSA-32gq-x56h-299c?
Is filippo.io/age affected?
What CWE is associated with GHSA-32gq-x56h-299c?
How can I check Go dependencies for GHSA-32gq-x56h-299c?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}