Arbitrary Command Execution Vulnerability in pyp2spec Product by Befeleme
CVE-2026-42301
7.8HIGH
What is CVE-2026-42301?
The pyp2spec tool, used for generating Fedora RPM spec files for Python projects, had a critical issue before version 0.14.1. This vulnerability arose because it failed to properly escape RPM macro directives when writing PyPI package metadata into the generated spec files. If a packager utilizes an unpatched version and builds a malicious package using the rpmbuild command, it could lead to the execution of arbitrary commands on the host machine, compromising the build environment. The vulnerability was addressed in version 0.14.1, making it crucial for users to update their installations to ensure security.
Affected Version(s)
pyp2spec < 0.14.1
