CVE-2026-129115
published critical CVSS 3.1 · 9.1JSON::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
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Not stated | — | JSON-XS3.0 to < 4.05 · Other versions: unaffected | Affected | Not stated | CPANSec |
| Amazon Linux | AL2 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-JSON-XSaarch64 | Advisory build | 4.50.0-1.1 | OPENSUSE-SU-2026:12601-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-JSON-XSppc64le | Advisory build | 4.50.0-1.1 | OPENSUSE-SU-2026:12601-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-JSON-XSs390x | Advisory build | 4.50.0-1.1 | OPENSUSE-SU-2026:12601-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-JSON-XSx86_64 | Advisory build | 4.50.0-1.1 | OPENSUSE-SU-2026:12601-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.1 / 10
- Severity
- critical
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| JSON-XS | 3.0 to < 4.05 (affected · custom)Default: unaffected | CPANSec · cna |
Weaknesses
1- CWE-416 CWE-416 Use After Free
References
1Provider assertions
2CPANSec · cna
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
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 853652a0dab01ee78310b9d721a661de1cb60111d27bcbb8ce7faf81796cf517
- Ingested
- 17 Nov 2026, 15:28:48 UTC
- Source record
- Official CVE record