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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- https://github.com/befeleme/pyp2spec/security/advisories/GHSA-r35x-v8p8-xvhw vendor-advisory
- https://github.com/befeleme/pyp2spec/releases/tag/v0.14.1
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- pypi.org product
- github.com vendor-advisory