[From nobody Tue Nov 17 12:17:05 2026
Received: (at submit) by bugs.debian.org; 14 Nov 2026 14:48:55 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-107.1 required=4.0 tests=ALL_TRUSTED,BAYES_00,
 DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,
 FOURLA,FROMDEVELOPER,SPF_HELO_NONE,SPF_PASS,USER_IN_DKIM_WELCOMELIST
 autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 45; hammy, 150; neutral, 200; spammy,
 0. spammytokens:
 hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
 0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
 0.000-+--H*RT:311, 0.000-+--H*RT:108
Return-path: &lt;carnil@debian.org&gt;
Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]:38990)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;carnil@debian.org&gt;) id 1xSF3n-009Ls8-1d
 for submit@bugs.debian.org; Sat, 14 Nov 2026 14:48:55 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; 
 s=smtpauto.stravinsky;
 h=X-Debian-User:Content-Type:MIME-Version:Message-ID:
 Subject:To:From:Date:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:
 Content-Description:In-Reply-To:References;
 bh=JWJu7/mwuQ9wbDKoX7hhZSwhlVGIqZI4UQuxFzqOK7E=; b=lnlH7Uvi4G6+vbsg7CobI9rPpp
 sqIfhsAdKP9Qkps9AuZgsuEJgeEbDW98OzDDyO1QlK7bhEJKBbwiTTKArU0L+Ws/yCKySKZdRiRVY
 vjQLzOAkxCEXvgh0dncXOfeIUuUcxuxphmVtjSkZU/Dnhv2rx31XG5ehcDLu8W+ctYny/6mzMYicw
 AeUJLkJTxJt11tkogKOri4GDVdVl6eIh4lmiOf2LAp6FraAOs+ywEgNAyQCVKTzlFJiqhuzqPVitE
 zcQ/940Q6mPnJGrDdKHzT7XloDtlwVUOK3h9YRAeqZpUlVe1Ye1fBhPA9yIAn/n3PfDNj7vyqzVXl
 trAWFXAg==;
Received: from authenticated-user by stravinsky.debian.org with esmtpsa
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;carnil@debian.org&gt;) id 1xSF3k-00Fbkg-1j
 for submit@bugs.debian.org; Sat, 14 Nov 2026 14:48:54 +0000
Received: by eldamar.lan (Postfix, from userid 1000)
 id 284A3DC04FB; Sat, 14 Nov 2026 15:48:51 +0100 (CET)
Date: Sat, 14 Nov 2026 15:48:51 +0100
From: Salvatore Bonaccorso &lt;carnil@debian.org&gt;
To: submit@bugs.debian.org
Subject: libjson-xs-perl: CVE-2026-124536 CVE-2026-124539 CVE-2026-124540
 CVE-2026-124541 CVE-2026-129113 CVE-2026-129114 CVE-2026-129115
Message-ID: &lt;avh006QL8Bd8V4vx@eldamar.lan&gt;
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Debian-User: carnil
Delivered-To: submit@bugs.debian.org

Source: libjson-xs-perl
Version: 4.040-1
X-Debbugs-CC: team@security.debian.org
Severity: important
Tags: security upstream

Hi,

The following vulnerabilities were published for libjson-xs-perl.

CVE-2026-124536[0]:
| JSON::XS versions before 4.05 for Perl allow memory exhaustion by
| buffering incremental input past max_size after a NUL byte in
| incr_parse.  The parser appends each chunk to its buffer and
| compares max_size with how far it has progressed, not with the
| buffer length. It treats a NUL byte as the end of the input, so a
| NUL within the first max_size bytes keeps it short of the limit. The
| buffer keeps growing, and incr_skip cannot remove the NUL.  A peer
| streaming data to an incr_parse consumer can exhaust process memory
| regardless of max_size.


CVE-2026-124539[1]:
| JSON::XS versions before 4.05 for Perl leak the decoded key of an
| object rejected for a missing colon in decode_hv.  Unless it is
| short plain ASCII, a quoted key is decoded into a new scalar.
| Nothing frees that scalar when the object is rejected for a missing
| ':' after the key.  A process that keeps running after a failed
| decode retains one key per rejected document, with its size chosen
| by the sender. Repeated requests exhaust process memory.


CVE-2026-124540[2]:
| JSON::XS versions before 4.05 for Perl allow stack exhaustion via
| nested tagged values under allow_tags in decode_tag.  With
| allow_tags, &quot;(&quot; starts a tagged value. Its tag and value are decoded
| recursively, and each can start another tagged value. Unlike arrays
| and objects, this nesting is not counted against max_depth.  A run
| of &quot;(&quot; bytes exhausts the C stack and triggers an uncatchable
| segmentation fault regardless of max_depth.


CVE-2026-124541[3]:
| JSON::XS versions before 4.05 for Perl leak the decoded part of a
| rejected long string in decode_str.  A string is decoded through a
| fixed-size buffer (16 KiB in 4.04), and each time the buffer fills
| its contents move into a new scalar. Nothing frees that scalar when
| the string is then rejected for a control character, an invalid
| escape, malformed UTF-8 or the end of the input.  A process that
| keeps running after a failed decode retains the decoded part of each
| rejected string, with its size chosen by the sender. Repeated
| requests exhaust process memory.


CVE-2026-129113[4]:
| JSON::XS versions from 4.0_00 before 4.05 for Perl corrupt the
| incremental buffer length by chopping past its end in incr_skip
| after a top-level number.  The incremental parser scans any run of
| digits, signs, dots and exponent markers as one number, but the
| decoder stops at the end of a valid number, so the parser keeps an
| offset into bytes it has not decoded. It then empties the buffer
| without clearing those bytes, and a later incr_parse call without
| new input reads them again and moves the offset past the end of the
| buffer. incr_skip, the documented recovery after an error, removes
| that many bytes and the buffer length wraps.  A peer sending input
| such as &quot;1-2&quot; to an incr_parse consumer can make the next read of
| incr_text exit the process through perl's uncatchable out-of-memory
| path.


CVE-2026-129114[5]:
| JSON::XS versions from 3.04 before 4.05 for Perl write one byte past
| a heap buffer when appending a one-byte chunk in incr_parse.  The
| incremental buffer grows to one and a half times the length it must
| hold, with no room reserved for the terminating NUL. For an empty
| buffer and a one-byte chunk that request is one byte, which a buffer
| whose front was removed by earlier decodes can already have, so
| nothing is reallocated and the NUL lands one byte past the
| allocation.  A peer streaming data to an incr_parse consumer,
| choosing how the input is split into reads, can cause a one-byte
| heap out-of-bounds write.


CVE-2026-129115[6]:
| JSON::XS versions from 3.0 before 4.05 for Perl read freed stack
| memory when a FREEZE result's serialisation grows the Perl stack
| under allow_tags in encode_rv.  With allow_tags, an object's FREEZE
| method is called in list context and each returned value is encoded
| through a saved Perl stack pointer. When encoding a returned value
| calls back into Perl, through TO_JSON under convert_blessed or
| another FREEZE, and that callback grows the stack, the stack is
| reallocated while the saved pointer still refers to the freed block.
| Encoding such objects reads freed memory, and encode can return
| undef without an error.


If you fix the vulnerabilities please also make sure to include the
CVE (Common Vulnerabilities &amp; Exposures) ids in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-124536
    https://www.cve.org/CVERecord?id=CVE-2026-124536
[1] https://security-tracker.debian.org/tracker/CVE-2026-124539
    https://www.cve.org/CVERecord?id=CVE-2026-124539
[2] https://security-tracker.debian.org/tracker/CVE-2026-124540
    https://www.cve.org/CVERecord?id=CVE-2026-124540
[3] https://security-tracker.debian.org/tracker/CVE-2026-124541
    https://www.cve.org/CVERecord?id=CVE-2026-124541
[4] https://security-tracker.debian.org/tracker/CVE-2026-129113
    https://www.cve.org/CVERecord?id=CVE-2026-129113
[5] https://security-tracker.debian.org/tracker/CVE-2026-129114
    https://www.cve.org/CVERecord?id=CVE-2026-129114
[6] https://security-tracker.debian.org/tracker/CVE-2026-129115
    https://www.cve.org/CVERecord?id=CVE-2026-129115

Regards,
Salvatore
]