Skip to content

CVE-2026-42301 Improper Input Validation leading to Improper Control of Generation of Code ('Code Injection') in pyp2spec

HighCVSS 7.8 EPSS 0.20%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total

Description

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
pypi pyp2spec(PyPI) < 0.14.1; = 0.1.0; = 0.2.0; = 0.3.0 +18 more 0.14.1 Fixed
befeleme pyp2spec = < 0.14.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
befeleme pyp2spec = < 0.14.1 No fix listed
pypi pyp2spec(PyPI) < 0.14.1 0.14.1
pypi pyp2spec(PyPI) = 0.1.0 No fix listed
pypi pyp2spec(PyPI) = 0.10.0 No fix listed
pypi pyp2spec(PyPI) = 0.11.0 No fix listed
pypi pyp2spec(PyPI) = 0.11.1 No fix listed
pypi pyp2spec(PyPI) = 0.12.0 No fix listed
pypi pyp2spec(PyPI) = 0.12.1 No fix listed
pypi pyp2spec(PyPI) = 0.12.2 No fix listed
pypi pyp2spec(PyPI) = 0.13.0 No fix listed
pypi pyp2spec(PyPI) = 0.2.0 No fix listed
pypi pyp2spec(PyPI) = 0.3.0 No fix listed
pypi pyp2spec(PyPI) = 0.3.1 No fix listed
pypi pyp2spec(PyPI) = 0.3.2 No fix listed
pypi pyp2spec(PyPI) = 0.3.3 No fix listed
pypi pyp2spec(PyPI) = 0.4.0 No fix listed
pypi pyp2spec(PyPI) = 0.5.0 No fix listed
pypi pyp2spec(PyPI) = 0.5.0a1 No fix listed
pypi pyp2spec(PyPI) = 0.6.0 No fix listed
pypi pyp2spec(PyPI) = 0.6.1 No fix listed
pypi pyp2spec(PyPI) = 0.7.0 No fix listed
pypi pyp2spec(PyPI) = 0.8.0 No fix listed
pypi pyp2spec(PyPI) = 0.9.0 No fix listed

References