CVE Catalog

CVE-2026-42301

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.20%

10th percentile - higher than 10% of all known CVEs

Summary

The pyp2spec tool generates Fedora RPM spec files for Python projects. Prior to version 0.14.1, pyp2spec wrote PyPI package metadata (e.g., the summary field) into the generated spec file without escaping RPM macro directives. When running rpmbuild, those directives get evaluated, allowing a malicious package to execute arbitrary commands on the build machine.

Risk Assessment

Risk of remote code execution on the RPM build machine, potentially compromising the entire software build and distribution process.

Recommendation

Update pyp2spec to version 0.14.1 or later and verify PyPI package metadata before generating spec files.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS