CVE-2024-56327: Pyrage Pyrage Vulnerable To Malicious Plugin Vulnerability
HIGHCVE-2024-56327 is a HIGH (CVSS 9.8) pyrage vulnerable to malicious plugin vulnerability (CWE-25: Path Traversal: '/../filedir') affecting Pyrage libraries in the PyPI ecosystem. The issue involves pyrage vulnerable to malicious plugin names, recipients, or identities causing arbitrary binary execution. Remediation is available by upgrading affected packages to version 1.2.3.
CVE-2024-56327 at a Glance
Security Impact
CVSS: 9.8
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:H/A:H).
How to Fix CVE-2024-56327
To remediate this vulnerability, upgrade all affected Pyrage dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install pyrage>=1.2.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show pyrage
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2024-56327, inspect your installed packages using pip:
pip show pyrage
Analyze the terminal output to locate any version of Pyrage in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.3), your application is affected.
Note: The pip show pyrage command checks currently installed packages in your active Python environment.
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 Pyrage, 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-56327 Affected Pyrage Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
pyrage
|
PyPI |
≥ 1.2.0
< 1.2.3
|
1.2.3
|
References
Frequently Asked Questions
What is CVE-2024-56327?
Which Pyrage versions are affected?
What version fixes CVE-2024-56327?
Is pyrage affected?
What is the CVSS score of CVE-2024-56327?
What CWE is associated with CVE-2024-56327?
How can I check PyPI dependencies for CVE-2024-56327?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-47h8-jmp3-9f28",
"modified" : "2024-12-20T18:35:12Z",
"published" : "2024-12-19T15:14:06Z",
"aliases" : [ "CVE-2024-56327" ],
"summary" : "pyrage vulnerable to malicious plugin names, recipients, or identities causing arbitrary binary execution",
"details" : "`pyrage` uses the Rust `age` crate for its underlying operations, and `age` is vulnerable to GHSA-4fg7-vxc8-qx5w.\n\nAll details of GHSA-4fg7-vxc8-qx5w are relevant to `pyrage` for the versions specified in this advisory. See GHSA-4fg7-vxc8-qx5w for full details.\n\nVersions of `pyrage` before 1.2.0 lack plugin support and are therefore **not affected**.\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" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "pyrage"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.2.0"
}, {
"fixed" : "1.2.3"
} ]
} ]
} ],
"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/woodruffw/pyrage/security/advisories/GHSA-47h8-jmp3-9f28"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-56327"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-4fg7-vxc8-qx5w"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/woodruffw/pyrage"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1395", "CWE-25", "CWE-94" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-12-19T15:14:06Z",
"nvd_published_at" : "2024-12-19T23:15:07Z"
}
}