Security mailing lists by PureSourceCode

CVE-2026-42301

HIGH 7.8CVSS 3.1

pyp2spec is Vulnerable to Code Injection

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.

Published
9 May 2026
Last modified
24 Jul 2026
Assigned by
security-advisories@github.com
NVD status
Deferred
Weakness
CWE-20CWE-94
Also known as
GHSA-r35x-v8p8-xvhwPYSEC-2026-3003
Sources
NVDJSONOSV GHSA-r35x-v8p8-xvhwJSONOSV PYSEC-2026-3003JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 HIGH 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
OSV PyPA CVSS 3.1 HIGH 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV PyPI pyp2spec < 0.14.1 0.14.1

References

History

  • 25 Nov 2026 21:02 UTC · NVD: first stored (published 9 May 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 4 May 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.