CVE-2026-42301
HIGH 7.8CVSS 3.1pyp2spec is Vulnerable to Code Injection
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.
- Published
- 9 May 2026
- Last modified
- 24 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-20CWE-94
- Also known as
- GHSA-r35x-v8p8-xvhwPYSEC-2026-3003
- Sources
- NVDJSONOSV GHSA-r35x-v8p8-xvhwJSONOSV PYSEC-2026-3003JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | pyp2spec | < 0.14.1 | 0.14.1 |
References
- https://github.com/befeleme/pyp2spec/releases/tag/v0.14.1 · WEB
- https://github.com/befeleme/pyp2spec/security/advisories/GHSA-r35x-v8p8-xvhw · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-42301 · ADVISORY
- https://github.com/befeleme/pyp2spec · PACKAGE
- https://pypi.org/project/pyp2spec · PACKAGE
- https://github.com/advisories/GHSA-r35x-v8p8-xvhw · ADVISORY
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 9 May 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 4 May 2026)