CVE Explorer
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"cweId":"CWE-94","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:75f538e88bec2678c9990d45562eccc8c30fbd9712c4edd3f10ff90352534869 · sha256:76e887ce481844c6… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-20","description":"CWE-20: Improper Input Validation","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:75f538e88bec2678c9990d45562eccc8c30fbd9712c4edd3f10ff90352534869 · sha256:76e887ce481844c6… · /containers/cna/problemTypes/0/descriptions/0
Affected products and versions
1 source assertion{"product":"pyp2spec","vendor":"befeleme","versions":[{"status":"affected","version":"< 0.14.1"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:75f538e88bec2678c9990d45562eccc8c30fbd9712c4edd3f10ff90352534869 · sha256:76e887ce481844c6… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:75f538e88bec2678c9990d45562eccc8c30fbd9712c4edd3f10ff90352534869 · sha256:76e887ce481844c6… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
2 source assertions{"cweId":"CWE-94","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:75f538e88bec2678c9990d45562eccc8c30fbd9712c4edd3f10ff90352534869 · sha256:76e887ce481844c6… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-20","description":"CWE-20: Improper Input Validation","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:75f538e88bec2678c9990d45562eccc8c30fbd9712c4edd3f10ff90352534869 · sha256:76e887ce481844c6… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"name":"https://github.com/befeleme/pyp2spec/releases/tag/v0.14.1","tags":["x_refsource_MISC"],"url":"https://github.com/befeleme/pyp2spec/releases/tag/v0.14.1"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:75f538e88bec2678c9990d45562eccc8c30fbd9712c4edd3f10ff90352534869 · sha256:76e887ce481844c6… · /containers/cna/references/1
{"name":"https://github.com/befeleme/pyp2spec/security/advisories/GHSA-r35x-v8p8-xvhw","tags":["x_refsource_CONFIRM"],"url":"https://github.com/befeleme/pyp2spec/security/advisories/GHSA-r35x-v8p8-xvhw"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:75f538e88bec2678c9990d45562eccc8c30fbd9712c4edd3f10ff90352534869 · sha256:76e887ce481844c6… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.