Hi,

A follow-up to my earlier mail, which was a static check only.

I generated the archive from upstream's regression test for this CVE
(tests/data/misc/CVE-2026-78367.py, added by 2a11eb3e4e). Its spec member
name carries a %{lua:...} macro that writes "gotcha" to $RPM_POC_PATH.
I then ran the installed Debian rpmbuild (rpm 6.1.0-1, amd64) the same
way tests/
https://www.google.com/url?q=http://rpmbuild.at&source=gmail&ust=1793791675054000&sa=E
does, with an isolated HOME and _topdir:

RPM_POC_PATH=$PWD/gotcha rpmbuild --define "_topdir $PWD/top" --quiet -ts
evil.tar.gz

Result:
exit status 0
top/SRPMS/poc-1.0-1.src.rpm was created
the file "gotcha" was created, containing "gotcha"

Upstream's test expects the file to be absent ("test -f ... => 1"), so
sid's 6.1.0-1 fails it: the macro in the member name is executed by
just running "rpmbuild -ts" on the tarball.

I have not rebuilt the package with the patch, so the "after" side is
still only the patch-applies check from my previous mail.

Regards

Reply via email to