CVE-2026-42301

HIGH CVSS 3.1: 7.8 EPSS 0.20%
Updated Jul 25, 2026
Python
Parameter Value
CVSS 7.8 (HIGH)
Fixed In 0.14.1
Type CWE-20 (Improper Input Validation), CWE-94 (Code Injection)
Vendor Python
Public PoC No

pyp2spec generates working Fedora RPM spec file for Python projects. Prior to version 0.14.1, pyp2spec was writing PyPI package metadata (e.g. the summary field) into the generated spec file without escaping RPM macro directives. When a packager then runs rpmbuild, those directives get evaluated, so a malicious package can execute arbitrary commands on the build machine.

This issue has been patched in version 0.14.1.

Attack Parameters

Attack Vector
Local
Requires local access
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
Required
User action required

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v3.1