CVE-2026-42301: CWE-20: Improper Input Validation in befeleme pyp2spec
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.
AI Analysis
Technical Summary
pyp2spec versions prior to 0.14.1 fail to properly escape RPM macro directives in PyPI package metadata fields such as the summary. When rpmbuild processes these spec files, the unescaped macros are evaluated, enabling arbitrary command execution on the build system. This is an input validation vulnerability (CWE-20) combined with code injection (CWE-94). The vulnerability has been patched in version 0.14.1.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary commands on the machine performing the RPM build, potentially leading to full system compromise. The vulnerability affects the integrity and confidentiality of the build environment and any systems relying on the built packages.
Mitigation Recommendations
Upgrade pyp2spec to version 0.14.1 or later where this vulnerability is fixed. Since the patch status is not explicitly stated but the description confirms the issue is patched in 0.14.1, applying this update is the recommended remediation.
CVE-2026-42301: CWE-20: Improper Input Validation in befeleme pyp2spec
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.
CVSS v3.1
Score 7.8high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
pyp2spec versions prior to 0.14.1 fail to properly escape RPM macro directives in PyPI package metadata fields such as the summary. When rpmbuild processes these spec files, the unescaped macros are evaluated, enabling arbitrary command execution on the build system. This is an input validation vulnerability (CWE-20) combined with code injection (CWE-94). The vulnerability has been patched in version 0.14.1.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary commands on the machine performing the RPM build, potentially leading to full system compromise. The vulnerability affects the integrity and confidentiality of the build environment and any systems relying on the built packages.
Mitigation Recommendations
Upgrade pyp2spec to version 0.14.1 or later where this vulnerability is fixed. Since the patch status is not explicitly stated but the description confirms the issue is patched in 0.14.1, applying this update is the recommended remediation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-26T12:13:55.552Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69ffe1b2cbff5d8610ead44e
Added to database: 05/10/2026, 01:38:58 UTC
Last enriched: 05/17/2026, 10:42:24 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 122
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.