Alpine: multiple perl-convert-asn1 packages: security update to 0.37-r0

high Tenable Cloud Security Plugin ID 482195

Description

There are packages installed that are affected by multiple vulnerabilities referenced in the following CVEs:

- Convert::ASN1 versions before 0.37 for Perl allow memory exhaustion via unlimited recursion depth in
constructed-form string decoding. Any constructed-form string element causes the decoder to recurse on the
element's contents. The BER encoding controls nesting depth at four bytes per level, with no bound
checked. Perl recursion is heap-allocated, so the process grows without a stack crash. An attacker who
controls the decoded data can exhaust memory with a small deeply nested constructed string.
(CVE-2026-126956)

- Convert::ASN1 versions before 0.37 for Perl allow CPU exhaustion via quadratic bigint loop in os2ip. Every
INTEGER or ENUMERATED longer than four content octets reaches os2ip, which iterates over each content
octet with $result = ($result * 256) + $octet. Each multiplication operates on a bigint that grows by one
octet per step, so decoding an n-octet value takes O(n^2) bigint work. Nothing limits content length
before this loop runs. An attacker who controls the decoded data can exhaust CPU with a single oversized
INTEGER or ENUMERATED value. (CVE-2026-126540)

- Convert::ASN1 versions before 0.37 for Perl allow memory exhaustion via unbounded MSG_PEEK buffer doubling
in asn_recv. asn_recv peeks the socket in a loop, doubling the buffer size on each pass until a tag and
length can be decoded. An inverted boolean guard ($tb || rather than $tb &&) prevents the need-more-data
exit from firing once a tag byte has been decoded. When asn_decode_length returns no value because the
length is absent or incomplete, no exit fires for that case either. MSG_PEEK leaves socket data
unconsumed, so each re-peek returns at once while the buffer size doubles. A single truncated BER header
sent to a process calling asn_recv doubles the peek buffer until memory is exhausted. Perl's realloc
failure is fatal and not catchable with eval. (CVE-2026-126568)

- Convert::ASN1 versions before 0.37 for Perl allow CPU exhaustion via unchecked exponent length in binary
REAL decoding. Binary REAL decoding never bounds-checks the exponent length against the available content.
For a minimal one-byte binary REAL, the exponent byte is read from outside the element, making the
mantissa length -1. Perl reads a negative length as an offset from the end of the string, so the mantissa
is nearly all of the input that follows the element. The long-form exponent path also omits the extra
length octet when sizing the mantissa. An attacker who controls the decoded data can exhaust CPU with a
list of such values, as each mantissa loop iterates over the remaining input. The decoded values are also
computed from bytes outside each element. (CVE-2026-126576)

- Convert::ASN1 versions before 0.37 for Perl allow CPU exhaustion via exponent-notation string in INTEGER
encoding. The encoder routes any value with abs >= 2**31 to i2osp without validating that it is an
integer. A string in exponent notation such as "1e8000" passes that threshold. Math::BigInt expands it to
an 8001-digit integer, and i2osp's per-octet conversion loop is quadratic in that size. An attacker who
controls encoded INTEGER values can exhaust CPU with a short exponent-notation string. (CVE-2026-126682)

Solution

Update the perl-convert-asn1 library and its related packages to version 0.37-r0 or later.

See Also

https://security.alpinelinux.org/vuln/CVE-2026-126540

https://security.alpinelinux.org/vuln/CVE-2026-126568

https://security.alpinelinux.org/vuln/CVE-2026-126576

https://security.alpinelinux.org/vuln/CVE-2026-126682

https://security.alpinelinux.org/vuln/CVE-2026-126819

https://security.alpinelinux.org/vuln/CVE-2026-126956

https://security.alpinelinux.org/vuln/CVE-2026-131868

https://security.alpinelinux.org/vuln/CVE-2026-131877

Plugin Details

Severity: High

ID: 482195

Version: Revision 1.2

Type: Local

Published: 11/21/2026

Updated: 11/23/2026

Supported Sensors: Agentless Assessment, Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.92

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.7

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P

CVSS Score Source: CVE-2026-126956

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS Score Source: CVE-2026-131877

Vulnerability Information

Exploit Ease: No known exploits are available

Vulnerability Publication Date: 11/20/2026

Reference Information

CVE: CVE-2026-126540, CVE-2026-126568, CVE-2026-126576, CVE-2026-126682, CVE-2026-126819, CVE-2026-126956, CVE-2026-131868, CVE-2026-131877