Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package perl-Config-General for 
openSUSE:Factory checked in at 2026-11-19 16:57:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Config-General (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Config-General.new.1251 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Config-General"

Thu Nov 19 16:57:52 2026 rev:40 rq:1398691 version:2.690.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Config-General/perl-Config-General.changes  
2025-01-14 16:23:47.476847359 +0100
+++ 
/work/SRC/openSUSE:Factory/.perl-Config-General.new.1251/perl-Config-General.changes
        2026-11-19 16:59:09.238055165 +0100
@@ -1,0 +2,12 @@
+Wed Nov 18 13:58:39 UTC 2026 - Tina Müller <[email protected]>
+
+- updated to 2.690.0 (2.69)
+   see /usr/share/doc/packages/perl-Config-General/Changelog
+
+  2.69  - fix Changelog
+
+  2.68  - fixes fix codeberg.org/scip/Config-General/issues/10:
+          and closes CVE-2026-129820 + CVE-2026-129821:
+          validate incoming config hashes, forbid comment, here-doc and 
include markers
+
+-------------------------------------------------------------------

Old:
----
  Config-General-2.67.tar.gz

New:
----
  Config-General-2.69.tar.gz
  README.md
  _scmsync.obsinfo
  build.specials.obscpio

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-Config-General.spec ++++++
--- /var/tmp/diff_new_pack.wTrpyM/_old  2026-11-19 16:59:10.264098657 +0100
+++ /var/tmp/diff_new_pack.wTrpyM/_new  2026-11-19 16:59:10.266098742 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-Config-General
 #
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,18 +18,21 @@
 
 %define cpan_name Config-General
 Name:           perl-Config-General
-Version:        2.670.0
+Version:        2.690.0
 Release:        0
-# 2.67 -> normalize -> 2.670.0
-%define cpan_version 2.67
+# 2.69 -> normalize -> 2.690.0
+%define cpan_version 2.69
 License:        Artistic-2.0
 Summary:        Generic Config Module
 URL:            https://metacpan.org/release/%{cpan_name}
 Source0:        
https://cpan.metacpan.org/authors/id/T/TL/TLINDEN/%{cpan_name}-%{cpan_version}.tar.gz
 Source1:        cpanspec.yml
+Source100:      README.md
 BuildRequires:  perl
 BuildRequires:  perl-macros
 Provides:       perl(Config::General) = %{version}
+Provides:       perl(Config::General::Extended) = 2.70.0
+Provides:       perl(Config::General::Interpolated) = 2.160.0
 %undefine       __perllib_provides
 %{perl_requires}
 
@@ -48,7 +51,7 @@
 enhancements such as here-documents, C-style comments or multiline options.
 
 %prep
-%autosetup  -n %{cpan_name}-%{cpan_version}
+%autosetup -n %{cpan_name}-%{cpan_version} -p1
 
 %build
 perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"

++++++ Config-General-2.67.tar.gz -> Config-General-2.69.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Config-General-2.67/Changelog 
new/Config-General-2.69/Changelog
--- old/Config-General-2.67/Changelog   2025-01-08 08:28:11.000000000 +0100
+++ new/Config-General-2.69/Changelog   2026-11-18 11:42:15.000000000 +0100
@@ -1,13 +1,19 @@
-2.67  - fix github.com/TLINDEN/Config-General/issues/5:
+2.69  - fix Changelog
+
+2.68  - fixes fix codeberg.org/scip/Config-General/issues/10:
+        and closes CVE-2026-129820 + CVE-2026-129821:
+        validate incoming config hashes, forbid comment, here-doc and include 
markers
+
+2.67  - fix codeberg.org/scip/Config-General/issues/5:
        fixing tests (add missing file to dist tarball) contributed
        by @paulwalrath.
       - created gitignore file.
 
-2.66  - fix github.com/TLINDEN/Config-General/issues/1:
+2.66  - fix codeberg.org/scip/Config-General/issues/1:
        add support to quote values containing whitespace using the
        new flag -AlwaysQuoteOutput.
 
-      - apply patch by @haarg github.com/TLINDEN/Config-General/pull/2:
+      - apply patch by @haarg codeberg.org/scip/Config-General/pull/2:
        fix exporter setup, use "our" where appropriate.
 
 2.65  - fix rt.cpan.org#132893: clarified license, now licensed
@@ -25,7 +31,7 @@
       - the Catalyst folks who hosted the source of this module
         closed or moved the repository, I have not been informed and
         have therefore lost all history of the module. So I moved
-        to github (https://github.com/TLINDEN/Config-General).
+        to github (https://codeberg.org/scip/Config-General).
         Thanks for nothing, Catalyst.
 
 2.63  - fix for rt.cpan.org#116340: do only consider a backslash
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Config-General-2.67/General.pm 
new/Config-General-2.69/General.pm
--- old/Config-General-2.67/General.pm  2025-01-08 08:15:14.000000000 +0100
+++ new/Config-General-2.69/General.pm  2026-11-18 11:42:59.000000000 +0100
@@ -5,7 +5,7 @@
 #          config values from a given file and
 #          return it as hash structure
 #
-# Copyright (c) 2000-2025 Thomas Linden <tlinden |AT| cpan.org>.
+# Copyright (c) 2000-2026 Thomas Linden <tlinden |AT| cpan.org>.
 # All Rights Reserved. Std. disclaimer applies.
 # Licensed under the Artistic License 2.0.
 #
@@ -20,7 +20,7 @@
 use FileHandle;
 use File::Spec::Functions qw(splitpath file_name_is_absolute catfile catpath);
 use File::Glob qw/:glob/;
-
+use Data::Dumper;
 
 # on debian with perl > 5.8.4 croak() doesn't work anymore without this.
 # There is some require statement which dies 'cause it can't find Carp::Heavy,
@@ -32,7 +32,7 @@
 use Carp;
 use Exporter;
 
-$Config::General::VERSION = "2.67";
+$Config::General::VERSION = "2.69";
 
 use base qw(Exporter);
 our @EXPORT_OK = qw(ParseConfig SaveConfig SaveConfigString);
@@ -286,6 +286,10 @@
     $self->{ConfigFile} = delete $conf{-file};
   }
   if (exists $conf{-hash}) {
+    if (! $self->_validate_input_hash($conf{-hash})) {
+      croak "Config::General: supplied -hash hash contains invalid keys or 
values!\n";
+    }
+    
     $self->{ConfigHash} = delete $conf{-hash};
   }
 
@@ -294,6 +298,10 @@
     $self->{ConfigFile} = delete $conf{-ConfigFile};
   }
   if (exists $conf{-ConfigHash}) {
+    if (! $self->_validate_input_hash($conf{-ConfigHash})) {
+      croak "Config::General: supplied -ConfigHash hash contains invalid keys 
or values!\n";
+    }
+
     $self->{ConfigHash} = delete $conf{-ConfigHash};
   }
 
@@ -340,6 +348,10 @@
   if (exists $conf{-DefaultConfig}) {
     if ($conf{-DefaultConfig} && ref($conf{-DefaultConfig}) eq 'HASH') {
       # copy the hashref so that it is not being modified by subsequent calls, 
fixes bug#142095
+      if (! $self->_validate_input_hash($conf{-DefaultConfig})) {
+        croak "Config::General: supplied -DefaultConfig hash contains invalid 
keys or values!\n";
+      }
+
       $self->{DefaultConfig} = $self->_copy($conf{-DefaultConfig});
     }
     elsif ($conf{-DefaultConfig} && ref($conf{-DefaultConfig}) eq q()) {
@@ -1494,6 +1506,61 @@
   }
 }
 
+sub _validate_input_hash {
+  #
+  # Checks if a given input hash contains invalid keys or values.
+  # Fixes https://codeberg.org/scip/Config-General/issues/9.
+  #
+  my($this, $hash) = @_;
+
+  if (ref($hash) eq '') {
+    return $this->_validate_input_hash_value($hash);
+  }
+  elsif (ref($hash) eq 'ARRAY') {
+    foreach my $sub (@{$hash}) {
+      return $this->_validate_input_hash($sub);
+    }
+  } 
+  
+  foreach my $key (keys %{$hash}) {
+    if (! $this->_validate_input_hash_value($key)) {
+      return 0;
+    }
+
+    if (ref($hash->{$key}) eq 'ARRAY') {
+      foreach my $sub (@{$hash->{$key}}) {
+        if (! $this->_validate_input_hash($sub)) {
+          return 0;
+        }
+      }
+    }
+    elsif(ref($hash->{$key}) eq 'HASH') {
+      if (! $this->_validate_input_hash($hash->{$key})) {
+        return 0;
+      }
+    }
+    else {
+      if (! $this->_validate_input_hash_value($hash->{$key})) {
+        return 0;
+      }
+    }
+  }
+
+  return 1;
+}
+
+sub _validate_input_hash_value {
+  #
+  # Checks a given key or value against a deny regex
+  my ($this, $value) = @_;
+
+  if ($value =~ /(<<|>>|\*\/|\/\*|#)/) {
+    return 0;
+  }
+
+  return 1;
+}
+
 
 #
 # Procedural interface
@@ -2859,7 +2926,7 @@
 
 =head1 LICENSE AND COPYRIGHT
 
-Copyright (c) 2000-2025 Thomas Linden
+Copyright (c) 2000-2026 Thomas Linden
 
 This library is free software; you can redistribute it and/or
 modify it under the same terms of the Artistic License 2.0.
@@ -2888,7 +2955,7 @@
 
 =head1 VERSION
 
-2.67
+2.69
 
 =cut
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Config-General-2.67/META.json 
new/Config-General-2.69/META.json
--- old/Config-General-2.67/META.json   2025-01-08 09:19:51.000000000 +0100
+++ new/Config-General-2.69/META.json   2026-11-18 11:44:32.000000000 +0100
@@ -42,9 +42,9 @@
    "release_status" : "stable",
    "resources" : {
       "repository" : {
-         "url" : "https://github.com/TLINDEN/Config-General";
+         "url" : "https://codeberg.org/scip/Config-General";
       }
    },
-   "version" : "2.67",
+   "version" : "2.69",
    "x_serialization_backend" : "JSON::PP version 4.06"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Config-General-2.67/META.yml 
new/Config-General-2.69/META.yml
--- old/Config-General-2.67/META.yml    2025-01-08 09:19:51.000000000 +0100
+++ new/Config-General-2.69/META.yml    2026-11-18 11:44:32.000000000 +0100
@@ -23,6 +23,6 @@
   FileHandle: '0'
   IO::File: '0'
 resources:
-  repository: https://github.com/TLINDEN/Config-General
-version: '2.67'
+  repository: https://codeberg.org/scip/Config-General
+version: '2.69'
 x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Config-General-2.67/Makefile.PL 
new/Config-General-2.69/Makefile.PL
--- old/Config-General-2.67/Makefile.PL 2022-04-12 13:02:46.000000000 +0200
+++ new/Config-General-2.69/Makefile.PL 2026-11-17 13:50:52.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # Makefile.PL - build file for Config::General
 #
-# Copyright (c) 2000-2022 Thomas Linden <[email protected]>.
+# Copyright (c) 2000-2026 Thomas Linden <[email protected]>.
 # All Rights Reserved. Std. disclaimer applies.
 # Licensed under the Artistic License 2.0.
 #
@@ -22,7 +22,7 @@
                                 },
               'META_MERGE' => {
                                resources => {
-                                             repository => 
'https://github.com/TLINDEN/Config-General'
+                                             repository => 
'https://codeberg.org/scip/Config-General'
                                             },
                               },
               ($ExtUtils::MakeMaker::VERSION ge '6.31'?
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Config-General-2.67/t/run.t 
new/Config-General-2.69/t/run.t
--- old/Config-General-2.67/t/run.t     2025-01-07 17:23:11.000000000 +0100
+++ new/Config-General-2.69/t/run.t     2026-11-17 13:50:52.000000000 +0100
@@ -8,7 +8,7 @@
 
 
 use Data::Dumper;
-use Test::More tests => 79;
+use Test::More tests => 93;
 #use Test::More qw(no_plan);
 
 # ahem, we deliver the test code with a local copy of
@@ -801,3 +801,66 @@
     -AlwaysQuoteOutput => 1);
 my $got59 = $conf59->save_string();
 is_deeply \$expected59, \$got59, "quotes";
+
+
+# test for CVE-2026-129820 and CVE-2026-129821 fixes
+my $cvedefaults = [
+    {
+        "*/ foo" => 1,
+    },
+    {
+        "foo */" => 1,
+    },
+    {
+        "foo <<EOF foo" => 1,
+    },
+    {
+        "<<include nix>>" => 1,
+    },
+    {
+        "*/ foo" => "hans",
+    },
+    {
+        "foo # 1" => "nix",
+    },
+    {
+        "foo" => "*/ hier",
+    },
+    {
+        "foo" => "hier */",
+    },
+    {
+        "foo" => "<<EOF hier",
+    },
+    {
+        "foo" => "<<include hier>>",
+    },
+    {
+        "users" => {
+            "hans" => "*/ maddock",
+        },
+    },
+    {
+        "users" => {
+            "hans" => "maddock /*",
+        },
+    },
+    {
+        "users" => {
+            "hans" => "<<EOF maddock",
+        },
+    },
+    {
+        "list" => [
+            "ok",
+            "*/ foo",
+            ]
+    }
+];
+foreach my $default (@{$cvedefaults}) {
+    eval {
+        my $conf60 = Config::General->new(-ConfigHash => $default) or die "$@";
+    };
+    
+    ok($@, "cve check failed: " . Dumper($default));
+}

++++++ README.md ++++++

## Build Results

Current state of perl in openSUSE:Factory is

![Factory build 
results](https://br.opensuse.org/status/openSUSE:Factory/perl-Config-General/standard)

The current state of perl in the devel project build (devel:languages:perl)

![Devel project build 
results](https://br.opensuse.org/status/devel:languages:perl/perl-Config-General)



++++++ _scmsync.obsinfo ++++++
mtime: 1795015064
commit: d64b48745092fde485bac092fdd4ca33981ca14b46d195421831c1b16b6673f2
url: https://src.opensuse.org/perl/perl-Config-General
revision: d64b48745092fde485bac092fdd4ca33981ca14b46d195421831c1b16b6673f2
projectscmsync: https://src.opensuse.org/perl/_ObsPrj

++++++ build.specials.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore      1970-01-01 01:00:00.000000000 +0100
+++ new/.gitignore      2026-11-18 16:17:44.000000000 +0100
@@ -0,0 +1 @@
+.osc

Reply via email to