CVE-2024-56327
Python vulnerability analysis and mitigation

Overview

pyrage is a set of Python bindings for the rage file encryption library (age in Rust). The vulnerability affects versions 1.2.0 through 1.2.2, where a plugin name containing a path separator may allow an attacker to execute arbitrary binary through attacker-controlled recipient or identity strings. The issue was discovered and disclosed on December 19, 2024, and has been assigned CVE-2024-56327. Versions of pyrage before 1.2.0 are not affected as they lack plugin support (GitHub Advisory).

Technical details

The vulnerability stems from pyrage's use of the Rust age crate for underlying operations. On UNIX systems, a directory matching ${TMPDIR:-/tmp}/age-plugin-* needs to exist for the attack to succeed. When exploited, 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 either the random file key (if encrypting) or the file header (if decrypting). The format is constrained by the age-plugin protocol (Age Advisory).

Impact

The vulnerability allows attackers to execute arbitrary binaries through maliciously crafted plugin names, recipients, or identities. This could potentially lead to unauthorized code execution on affected systems (Rage Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 1.2.3, and all users are advised to upgrade to this version. There are no known workarounds for this vulnerability (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65896CRITICAL9.8
  • PythonPython
  • asyncmy
NoNoDec 02, 2025
CVE-2025-66423HIGH7.1
  • PythonPython
  • tryton-server
NoYesNov 30, 2025
CVE-2025-66454MEDIUM6.5
  • PythonPython
  • arcade-mcp-server
NoYesDec 02, 2025
CVE-2025-66424MEDIUM6.5
  • PythonPython
  • trytond
NoYesNov 30, 2025
CVE-2025-65858LOW3.5
  • PythonPython
  • calibreweb
NoNoDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management