Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-42301— Improper Input Validation leading to Improper Control of Generation of Code ('Code Injection') in pyp2spec

Quick assessment

Affected
befeleme pyp2spec
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

pyp2spec是Karolina Surma个人开发者的一个生成Fedora RPM规范文件的Python工具。 pyp2spec 0.14.1之前版本存在输入验证错误漏洞,该漏洞源于在生成spec文件时未转义RPM宏指令,可能导致恶意包在构建机器上执行任意命令。

CVSS 7.8 · High EPSS 0.20% · P10

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application

Affected Version Matrix 1

VendorProduct Version RangeStatus
befeleme pyp2spec < 0.14.1 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-42301

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Improper Input Validation leading to Improper Control of Generation of Code ('Code Injection') in pyp2spec
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
输入验证不恰当
Source: CVE Program / CVE List V5
Vulnerability Title
pyp2spec 输入验证错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
pyp2spec是Karolina Surma个人开发者的一个生成Fedora RPM规范文件的Python工具。 pyp2spec 0.14.1之前版本存在输入验证错误漏洞,该漏洞源于在生成spec文件时未转义RPM宏指令,可能导致恶意包在构建机器上执行任意命令。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
befeleme pyp2spec < 0.14.1 -

II. Public POCs for CVE-2026-42301

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 7763 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-42301

登录查看更多情报信息。

Vendor Advisories for CVE-2026-42301 (1)

Other References for CVE-2026-42301 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-42301

No comments yet


Leave a comment