pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/converters/p5-JSON-XS
Module Name: pkgsrc
Committed By: wiz
Date: Sun Nov 22 08:31:59 UTC 2026
Modified Files:
pkgsrc/converters/p5-JSON-XS: Makefile distinfo
Log Message:
p5-JSON-XS: update to 4.06.
4.06 Wed 18 Nov 2026 08:32:16 CET
- a large number of CVEs were reported against Cpanel::JSON::XS,
which is a fork of this module, but CPANSec did not make
any report against JSON::XS for some reason. Here is a review
of these recently reported CVEs and if/how they apply to JSON::XS.
Thanks to everybdoy who reported these issues!
.
Bogus CVEs / not a vulnerability, but fixed in this version:
110682 - Incremental parsing of numbers depended on input
chunk boundaries.
110686 - Use-after-free when an object-filter callback
unregisters itself during decoding.
.
Valid, but already fixed in JSON::XS 4.05 (independently reported):
110672 - Reference leak when decoding malformed object keys.
110673 - Tagged values could bypass max_depth.
.
Not applicable, exist only in Cpanel::JSON::XS:
110674 - Duplicate-key handling involving bare UTF-8 keys
and dupkeys_as_arrayref.
110675 - Malformed UTF-8 accepted in bare object keys.
110677 - Reference leak in dupkeys_as_arrayref.
110684 - Reference leak in Cpanel's encode_stringify.
110687 - Incorrect UTF-16 canonical ordering of Perl
byte-string keys. JSON::XS does not promise
RFC 8785 ordering.
110688 - Quadratic UTF-8 validation during incremental parsing.
.
Not applicable, different implementation behavior:
110680 - Out-of-bounds write when canonical encoding encounters
a growing tied/shared hash. JSON::XS excludes hashes
with read magic from canonical sorting.
110681 - Invalid SV pointers after ithread cloning. JSON::XS
explicitly does not guarantee ithread/MULTIPLICITY
safety.
.
Bogus CVEs / not security issues:
110676 - Large decimal expansion of Math::BigFloat. Normal
behavior of arbitrary-precision numbers, not a
JSON::XS security vulnerability.
110678 - max_size not enforced by void-context incr_parse.
Documented, intentional exception-free buffering;
no decoding is attempted.
110685 - Reference leak when application-supplied THAW throws.
Real leak under unsupported exceptional behavior,
but no demonstrated security vulnerability. Cpanel's
patch fixes the submitted reproducer while exceptions
still leak.
- fix ->boolean_values leaking memory (reported by Albert Gierlach).
- incremental parsing now waits for lookahead before returning
a number, to avoid prematurely ending a numeric JSON prefix
(should fix the same problem as reported in CVE-2026-110682).
Sidenote: I think the cpanel fix does not actually fix the CVE
at all, it simply makes numbers illegal by default, and when
enabled, still misparses them.
To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 pkgsrc/converters/p5-JSON-XS/Makefile
cvs rdiff -u -r1.31 -r1.32 pkgsrc/converters/p5-JSON-XS/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/converters/p5-JSON-XS/Makefile
diff -u pkgsrc/converters/p5-JSON-XS/Makefile:1.48 pkgsrc/converters/p5-JSON-XS/Makefile:1.49
--- pkgsrc/converters/p5-JSON-XS/Makefile:1.48 Sun Nov 15 08:28:03 2026
+++ pkgsrc/converters/p5-JSON-XS/Makefile Sun Nov 22 08:31:58 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.48 2026/11/15 08:28:03 wiz Exp $
+# $NetBSD: Makefile,v 1.49 2026/11/22 08:31:58 wiz Exp $
-DISTNAME= JSON-XS-4.05
+DISTNAME= JSON-XS-4.06
PKGNAME= p5-${DISTNAME}
CATEGORIES= converters perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../../authors/id/M/ML/MLEHMANN/}
Index: pkgsrc/converters/p5-JSON-XS/distinfo
diff -u pkgsrc/converters/p5-JSON-XS/distinfo:1.31 pkgsrc/converters/p5-JSON-XS/distinfo:1.32
--- pkgsrc/converters/p5-JSON-XS/distinfo:1.31 Sun Nov 15 08:28:03 2026
+++ pkgsrc/converters/p5-JSON-XS/distinfo Sun Nov 22 08:31:58 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.31 2026/11/15 08:28:03 wiz Exp $
+$NetBSD: distinfo,v 1.32 2026/11/22 08:31:58 wiz Exp $
-BLAKE2s (JSON-XS-4.05.tar.gz) = 7d955f930519769393940bac1d2e1d31395f4be1e51719d099a3d3bb6b0a0969
-SHA512 (JSON-XS-4.05.tar.gz) = 943b48f881f88440b75865b83953bc1c8dfc42439601319bdbab3979b478d3ece8b4876d5aca6d9d0643a133adc2da5d47b6aa466de0e5373633e476a38726ea
-Size (JSON-XS-4.05.tar.gz) = 87733 bytes
+BLAKE2s (JSON-XS-4.06.tar.gz) = a299a82dac97866f74a0cada0d2057898ebc2deb00ad496f8c893700c23147af
+SHA512 (JSON-XS-4.06.tar.gz) = a17c035880ec1c2a42f614ae3c995e23191c00b48e3a7e6b1b5d73b5c37cddf15bc8625a3560fff53901a99bc958c9dba80c7e5530b71773cbb91315a127f071
+Size (JSON-XS-4.06.tar.gz) = 89273 bytes
Home |
Main Index |
Thread Index |
Old Index