Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package perl-JSON-XS for openSUSE:Factory checked in at 2026-11-18 18:30:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-JSON-XS (Old) and /work/SRC/openSUSE:Factory/.perl-JSON-XS.new.1251 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-JSON-XS" Wed Nov 18 18:30:31 2026 rev:26 rq:1398264 version:4.50.0 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-JSON-XS/perl-JSON-XS.changes 2025-09-09 20:30:47.458606617 +0200 +++ /work/SRC/openSUSE:Factory/.perl-JSON-XS.new.1251/perl-JSON-XS.changes 2026-11-18 18:31:10.951906885 +0100 @@ -1,0 +2,32 @@ +Fri Nov 13 13:09:47 UTC 2026 - Tina Müller <[email protected]> + +- updated to 4.50.0 (4.05) + see /usr/share/doc/packages/perl-JSON-XS/Changes + + 4.05 Fri 13 Nov 2026 05:21:06 CET + - the incremental parser would not properly reset parsing offset + after removing a top-level number json number, causing memory + corruption. this is potentially a very serious vulnerability. + (reported by Albert Gierlach). + CVE-2026-129113 bsc#1290503 + - the ignore initial whitespace optimisation in the incremental + parser could result in the parser reading beyond the end of string, + potentially leading to parsing errors or skipping json texts. + - FREEZE method calls could move the stack and cause a use-after-free. + requires allow_tags and a suitable FREEZE method to be exploited + (reported by Albert Gierlach). + CVE-2026-129115 bsc#1290505 + - json_sv_grow would not allocate space for the trailing 0 byte. + possibly exploitable. (reported by Albert Gierlach). + CVE-2026-129114 bsc#1290504 + - the incremental parser did not properly detect embedded NUL + characters as an error (reported by Peter Juhasz and his LLM). + CVE-2026-124536 bsc#1290499 + - string and object decoding failures could leak a partially + constructed perl scalar (reported by Peter Juhasz). + CVE-2026-124539 bsc#1290500 CVE-2026-124541 bsc#1290502 + - tag decoding ("(tag)value") ignored the recursion limit, + potentially causing stack overflow (reported by Peter Juhasz). + CVE-2026-124540 bsc#1290501 + +------------------------------------------------------------------- Old: ---- JSON-XS-4.04.tar.gz New: ---- JSON-XS-4.05.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-JSON-XS.spec ++++++ --- /var/tmp/diff_new_pack.AjdJJG/_old 2026-11-18 18:31:11.939948743 +0100 +++ /var/tmp/diff_new_pack.AjdJJG/_new 2026-11-18 18:31:11.941948828 +0100 @@ -1,7 +1,7 @@ # # spec file for package perl-JSON-XS # -# 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,10 +18,10 @@ %define cpan_name JSON-XS Name: perl-JSON-XS -Version: 4.40.0 +Version: 4.50.0 Release: 0 -# 4.04 -> normalize -> 4.40.0 -%define cpan_version 4.04 +# 4.05 -> normalize -> 4.50.0 +%define cpan_version 4.05 License: Artistic-1.0 OR GPL-1.0-or-later Summary: JSON serialising/deserialising, done correctly and fast URL: https://metacpan.org/release/%{cpan_name} ++++++ JSON-XS-4.04.tar.gz -> JSON-XS-4.05.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/JSON-XS-4.04/Changes new/JSON-XS-4.05/Changes --- old/JSON-XS-4.04/Changes 2025-09-08 14:51:12.000000000 +0200 +++ new/JSON-XS-4.05/Changes 2026-11-13 05:21:15.000000000 +0100 @@ -10,8 +10,29 @@ TODO: validate_utf8, apparewntly some people confuse themselves. TODO: security considerations +TODO: decode_av/hv can leak memory when exceptions through through. TODO: perl 5.36 has builtin::true/false/is_bool. Not sure how to integrate those. +4.05 Fri 13 Nov 2026 05:21:06 CET + - the incremental parser would not properly reset parsing offset + after removing a top-level number json number, causing memory + corruption. this is potentially a very serious vulnerability. + (reported by Albert Gierlach). + - the ignore initial whitespace optimisation in the incremental + parser could result in the parser reading beyond the end of string, + potentially leading to parsing errors or skipping json texts. + - FREEZE method calls could move the stack and cause a use-after-free. + requires allow_tags and a suitable FREEZE method to be exploited + (reported by Albert Gierlach). + - json_sv_grow would not allocate space for the trailing 0 byte. + possibly exploitable. (reported by Albert Gierlach). + - the incremental parser did not properly detect embedded NUL + characters as an error (reported by Peter Juhasz and his LLM). + - string and object decoding failures could leak a partially + constructed perl scalar (reported by Peter Juhasz). + - tag decoding ("(tag)value") ignored the recursion limit, + potentially causing stack overflow (reported by Peter Juhasz). + 4.04 Fri 05 Sep 2025 23:59:48 CEST - fix heap overflow causing crashes, possibly information disclosure or worse (CVE-2025-40928), and causes JSON::XS to diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/JSON-XS-4.04/META.json new/JSON-XS-4.05/META.json --- old/JSON-XS-4.04/META.json 2025-09-08 14:51:31.000000000 +0200 +++ new/JSON-XS-4.05/META.json 2026-11-13 05:28:30.000000000 +0100 @@ -39,6 +39,6 @@ } }, "release_status" : "stable", - "version" : "4.04", + "version" : "4.05", "x_serialization_backend" : "JSON::PP version 2.27300" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/JSON-XS-4.04/META.yml new/JSON-XS-4.05/META.yml --- old/JSON-XS-4.04/META.yml 2025-09-08 14:51:31.000000000 +0200 +++ new/JSON-XS-4.05/META.yml 2026-11-13 05:28:30.000000000 +0100 @@ -21,5 +21,5 @@ requires: Types::Serialiser: '0' common::sense: '0' -version: '4.04' +version: '4.05' x_serialization_backend: 'CPAN::Meta::YAML version 0.012' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/JSON-XS-4.04/XS.pm new/JSON-XS-4.05/XS.pm --- old/JSON-XS-4.04/XS.pm 2025-09-08 13:53:46.000000000 +0200 +++ new/JSON-XS-4.05/XS.pm 2026-11-13 05:21:22.000000000 +0100 @@ -89,7 +89,7 @@ use common::sense; -our $VERSION = '4.04'; +our $VERSION = '4.05'; our @ISA = qw(Exporter); our @EXPORT = qw(encode_json decode_json); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/JSON-XS-4.04/XS.xs new/JSON-XS-4.05/XS.xs --- old/JSON-XS-4.04/XS.xs 2025-09-06 13:57:10.000000000 +0200 +++ new/JSON-XS-4.05/XS.xs 2026-11-13 04:35:54.000000000 +0100 @@ -180,7 +180,7 @@ json_sv_grow (SV *sv, size_t len1, size_t len2) { len1 = strlen_sum (len1, len2); - len1 = strlen_sum (len1, len1 >> 1); + len1 = strlen_sum (len1, (len1 >> 1) + 1); if (len1 > 4096 - 24) len1 = (len1 | 4095) - 24; @@ -820,11 +820,16 @@ for (i = 0; i < count - 1; ++i) { + PUTBACK; encode_sv (enc, SP[i + 1 - count]); + SPAGAIN; encode_ch (enc, ','); } + PUTBACK; encode_sv (enc, TOPs); + SPAGAIN; + SP -= count; } @@ -1235,6 +1240,7 @@ return sv; fail: + SvREFCNT_dec (sv); dec->cur = dec_cur; return 0; } @@ -1444,7 +1450,15 @@ if (!key) goto fail; - decode_ws (dec); EXPECT_CH (':'); + decode_ws (dec); + + if (*dec->cur != ':') // expect ':' + { + SvREFCNT_dec_NN (key); + ERR (":" " expected"); + } + + ++dec->cur; decode_ws (dec); value = decode_sv (dec); @@ -1593,6 +1607,8 @@ if (!(dec->json.flags & F_ALLOW_TAGS)) ERR ("malformed JSON string, neither array, object, number, string or atom"); + DEC_INC_DEPTH; + ++dec->cur; decode_ws (dec); @@ -1658,6 +1674,7 @@ FREETMPS; LEAVE; + DEC_DEC_DEPTH; return sv; } @@ -1881,7 +1898,7 @@ } } else if (!*p) - goto interrupt; + goto nul; ++p; } @@ -1889,7 +1906,7 @@ // skip a single char inside a string (for \\-processing) case INCR_M_BS: if (!*p) - goto interrupt; + goto nul; ++p; self->incr_mode = INCR_M_STR; @@ -1907,7 +1924,7 @@ break; } else if (!*p) - goto interrupt; + goto nul; ++p; } @@ -1965,11 +1982,11 @@ if (!*p) // if at end of string we have to switch modes { self->incr_mode = INCR_M_BS; - goto interrupt; + goto nul; } } else if (!*p) - goto interrupt; + goto nul; ++p; } @@ -1983,7 +2000,7 @@ { case 0: --p; - goto interrupt; + goto nul; case 0x09: case 0x0a: @@ -2043,8 +2060,16 @@ ; } +nul: // nul character found + if (!*p && p != SvEND (self->incr_text)) + { + self->incr_pos = p - SvPVX (self->incr_text) + 1; // skip 0 byte for incr_skip + croak ("invalid NUL character in JSON text"); + } + interrupt: self->incr_pos = p - SvPVX (self->incr_text); + //printf ("interrupt<%.*s>\n", self->incr_pos, SvPVX(self->incr_text));//D //printf ("return pos %d mode %d nest %d\n", self->incr_pos, self->incr_mode, self->incr_nest);//D } @@ -2306,6 +2331,7 @@ { self->incr_pos = 0; SvCUR_set (self->incr_text, 0); + *SvEND (self->incr_text) = 0; } break; @@ -2315,7 +2341,7 @@ PUTBACK; sv = decode_json (self->incr_text, self, &offset); SPAGAIN; XPUSHs (sv); - self->incr_pos -= offset; + self->incr_pos = 0; self->incr_nest = 0; self->incr_mode = 0; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/JSON-XS-4.04/t/13_limit.t new/JSON-XS-4.05/t/13_limit.t --- old/JSON-XS-4.04/t/13_limit.t 2008-04-05 20:15:46.000000000 +0200 +++ new/JSON-XS-4.05/t/13_limit.t 2026-11-10 04:14:27.000000000 +0100 @@ -1,4 +1,4 @@ -BEGIN { $| = 1; print "1..11\n"; } +BEGIN { $| = 1; print "1..12\n"; } use JSON::XS; @@ -27,3 +27,6 @@ ok (eval { ref $js->max_size (8)->decode ("[ ]") }); eval { $js->max_size (8)->decode ("[ ]") }; ok ($@ =~ /max_size/); +eval { JSON::XS->new->allow_tags->max_depth (4)->decode ("(" x 100) }; +ok ($@ =~ /maximum nesting/); + ++++++ _scmsync.obsinfo ++++++ --- /var/tmp/diff_new_pack.AjdJJG/_old 2026-11-18 18:31:12.064954039 +0100 +++ /var/tmp/diff_new_pack.AjdJJG/_new 2026-11-18 18:31:12.067954167 +0100 @@ -1,6 +1,6 @@ -mtime: 1757350598 -commit: a69ced4fd2b708e9deba2a411e486e71d67e65173524ae177e65c567ba28dd72 -url: https://src.opensuse.org/perl/perl-JSON-XS.git -revision: a69ced4fd2b708e9deba2a411e486e71d67e65173524ae177e65c567ba28dd72 +mtime: 1794951289 +commit: ce4d8ffcfbdfea9b94e3d69c79ce09afdfaba9303223ac3899b7fcc269a53d86 +url: https://src.opensuse.org/perl/perl-JSON-XS +revision: ce4d8ffcfbdfea9b94e3d69c79ce09afdfaba9303223ac3899b7fcc269a53d86 projectscmsync: https://src.opensuse.org/perl/_ObsPrj ++++++ build.specials.obscpio ++++++ ++++++ 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-17 22:34:49.000000000 +0100 @@ -0,0 +1 @@ +.osc
