public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perl-GD-SecurityImage] f45: use Crypt::URandom::MonkeyPatch to override built-in rand
@ 2026-10-11 13:43 Emmanuel Seyman
  0 siblings, 0 replies; only message in thread
From: Emmanuel Seyman @ 2026-10-11 13:43 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/perl-GD-SecurityImage
Branch : f45
Commit : 076b38e2608a9e9bf4e434769c3b726036596f5e
Author : Emmanuel Seyman <emmanuel@seyman.fr>
Date   : 2026-10-11T15:42:19+02:00
Stats  : +41/-6 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/perl-GD-SecurityImage/c/076b38e2608a9e9bf4e434769c3b726036596f5e?branch=f45

Log:
use Crypt::URandom::MonkeyPatch to override built-in rand

---
diff --git a/CVE-2026-13082-r1.patch b/CVE-2026-13082-r1.patch
new file mode 100644
index 0000000..7cfe6b4
--- /dev/null
+++ b/CVE-2026-13082-r1.patch
@@ -0,0 +1,30 @@
+commit bdbf9f7551a22073becec5ad1fea1170765da855
+Author: Robert Rothenberg <rrwo@cpansec.org>
+Date:   Thu Jul 16 18:37:35 2026 +0100
+
+    Use Crypt::URandom::MonkeyPatch to override built-in rand (CVE-2026-13082)
+
+diff --git a/dist.ini b/dist.ini
+index 52ab0b1..b33ca5f 100644
+--- a/dist.ini
++++ b/dist.ini
+@@ -38,6 +38,7 @@ Image::Magick = 6.66
+ 
+ perl              = 5.010
+ GD                = 2.45
++Crypt::URandom::MonkeyPatch = 0
+ 
+ [ExecDir]
+ [ShareDir]
+diff --git a/lib/GD/SecurityImage.pm b/lib/GD/SecurityImage.pm
+index 0bb5786..960bc94 100644
+--- a/lib/GD/SecurityImage.pm
++++ b/lib/GD/SecurityImage.pm
+@@ -3,6 +3,7 @@ package GD::SecurityImage;
+ use strict;
+ use warnings;
+ use vars qw[@ISA $BACKEND];
++use Crypt::URandom::MonkeyPatch;
+ use GD::SecurityImage::Styles;
+ use Carp qw(croak);
+ use constant RGB_WHITE   => ( 255, 255, 255 );

diff --git a/perl-GD-SecurityImage.spec b/perl-GD-SecurityImage.spec
index 3ce44d5..4a788aa 100644
--- a/perl-GD-SecurityImage.spec
+++ b/perl-GD-SecurityImage.spec
@@ -1,12 +1,12 @@
 Name:           perl-GD-SecurityImage
 Version:        1.75
-Release:        23%{?dist}
+Release:        24%{?dist}
 Summary:        Security image (captcha) generator
-# Automatically converted from old format: GPL+ or Artistic - review is highly recommended.
 License:        GPL-1.0-or-later OR Artistic-1.0-Perl
 
-URL:            https://metacpan.org/release/GD-SecurityImage
+URL:            https://metacpan.org/dist/GD-SecurityImage
 Source0:        https://cpan.metacpan.org/authors/id/B/BU/BURAK/GD-SecurityImage-%{version}.tar.gz
+Patch0:         CVE-2026-13082-r1.patch
 BuildArch:      noarch
 # build requirements
 BuildRequires:  glibc-common
@@ -16,6 +16,7 @@ BuildRequires:  perl-generators
 BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
 # runtime requirements
 BuildRequires:  perl(Carp)
+BuildRequires:  perl(Crypt::URandom::MonkeyPatch)
 BuildRequires:  perl(GD) >= 2.45
 BuildRequires:  perl(Image::Magick) >= 6.66
 BuildRequires:  perl(Math::Trig)
@@ -46,13 +47,14 @@ gives you a basic interface to create such an image.
 
 %prep
 %setup -q -n GD-SecurityImage-%{version}
+%patch -P 0 -p1
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
-make %{?_smp_mflags}
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
+%{make_build}
 
 %install
-make pure_install DESTDIR=$RPM_BUILD_ROOT
+%{make_install}
 %{_fixperms} $RPM_BUILD_ROOT/*
 
 %check
@@ -65,6 +67,9 @@ AUTHOR_TESTING=1 RELEASE_TESTING=1 make test
 %{_mandir}/man3/GD*
 
 %changelog
+* Sun Oct 11 2026 Emmanuel Seyman <emmanuel@seyman.fr> - 1.75-24
+- use Crypt::URandom::MonkeyPatch to override built-in rand (CVE-2026-13082)
+
 * Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.75-23
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-11 13:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-11 13:43 [rpms/perl-GD-SecurityImage] f45: use Crypt::URandom::MonkeyPatch to override built-in rand Emmanuel Seyman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox