CVE-2026-42301

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.
Configurations

No configuration.

History

09 May 2026, 04:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-05-09 04:16

Updated : 2026-05-13 16:49


NVD link : CVE-2026-42301

Mitre link : CVE-2026-42301

CVE.ORG link : CVE-2026-42301


JSON object : View

Products Affected

No product.

CWE
CWE-20

Improper Input Validation

CWE-94

Improper Control of Generation of Code ('Code Injection')