CVE-2026-42301befeleme pyp2spec
High 7.8
Follow: this CVE · befeleme · befeleme pyp2spec We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 7.8
- EPSS
- —
- Auth required
- Yes
- Published
- May 9, 2026
- Updated
- Jul 24, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for pyp2spec.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | pyp2spec |
< 0.14.1 |
0.14.1 |
pip install "pyp2spec>=0.14.1" |
| PyPI | pyp2spec |
< 0.14.1 |
0.14.1 |
pip install "pyp2spec>=0.14.1" |
Per OSV / GitHub Advisories (GHSA-r35x-v8p8-xvhw, PYSEC-2026-3003). Check the version in your lockfile before upgrading.
Affected products
- befeleme · pyp2spec
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.