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
- Vendor advisory github.com/befeleme/pyp2spec/security/advisori…
- Release notes github.com/befeleme/pyp2spec/releases/tag/v0.1…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.