Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.2%top 90%

CVE-2026-42301: CWE-20: Improper Input Validation in befeleme pyp2spec

0
High
VulnerabilityCVE-2026-42301cvecve-2026-42301cwe-20cwe-94
Published: 05/09/2026 (05/09/2026, 03:59:34 UTC)
Source: CVE Database V5
Vendor/Project: befeleme
Product: 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

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected software

pyp2spec
pkg:pypi/pyp2spec
Affected versions
<0.14.1

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

AILast updated: 05/17/2026, 10:42:24 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses