PoC Monitor
← All CVEs
CVE-2026-42301published 9 May 2026 03:59 UTCData: JSON · API

Befeleme pyp2spec

Improper Input Validation leading to Improper Control of Generation of Code ('Code Injection') in 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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.8high · scored by CNA · CWE-20
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

befeleme pyp2spec
  • < 0.14.1

Fixed in 0.14.1

Mitigation

Upgrade pyp2spec to 0.14.1 or later.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published9 May 2026 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.