PatchSiren cyber security CVE debrief
CVE-2026-8704 TIMLEGGE CVE debrief
Crypt::DSA versions through 1.19 for Perl use a two-argument form of the open() function, which can allow existing files to be modified when the module handles DSA key files. The two-argument open is susceptible to shell metacharacter injection in the filename argument, potentially enabling an attacker to redirect output to arbitrary files or modify existing files if untrusted input is passed as a filename. This vulnerability was addressed in version 1.20. The issue was discussed on the oss-security mailing list and fixed by the maintainer TIMLEGGE.
- Vendor
- TIMLEGGE
- Product
- Crypt::DSA
- CVSS
- MEDIUM 6.5
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-05-15
- Original CVE updated
- 2026-05-18
- Advisory published
- 2026-05-15
- Advisory updated
- 2026-05-18
Who should care
Organizations running Perl applications that use Crypt::DSA for DSA cryptographic operations, particularly those accepting user-supplied filenames for key storage or retrieval. System administrators maintaining Perl-based security infrastructure and developers of applications handling DSA keys through this module.
Technical summary
The Crypt::DSA Perl module through version 1.19 uses the two-argument form of Perl's open() function when handling DSA key files. This form is vulnerable to shell metacharacter injection, allowing an attacker to potentially modify existing files if untrusted input is used in filenames. The vulnerability is classified as CWE-552 (Files or Directories Accessible to External Parties). The fix in version 1.20 adopts the safer three-argument open() form, which prevents interpretation of shell metacharacters in the filename.
Defensive priority
medium
Recommended defensive actions
- Upgrade Crypt::DSA to version 1.20 or later, which replaces two-argument open() calls with three-argument form to prevent file modification via shell metacharacter injection
- Audit application code for any user-supplied filenames passed to Crypt::DSA key operations and validate or sanitize such inputs
- Review file permissions on directories where Crypt::DSA key files are stored to limit unauthorized write access
- Monitor for unexpected file modifications in directories used by Crypt::DSA for key storage
- Consider implementing additional input validation wrappers around Crypt::DSA operations if immediate upgrade is not feasible
Evidence notes
The vulnerability is documented in the Crypt-DSA 1.20 changelog and code diff showing the fix from two-argument to three-argument open() calls. The oss-security mailing list post provides additional context on the security implications.
Official resources
-
CVE-2026-8704 CVE record
CVE.org
-
CVE-2026-8704 NVD detail
NVD
-
Source item URL
nvd_modified
-
Source reference
9b29abf9-4ab0-4765-b253-1875cd9b441e
-
Source reference
9b29abf9-4ab0-4765-b253-1875cd9b441e
-
Source reference
af854a3a-2127-422b-91ae-364da2661108
2026-05-15