JSON-XSにメモリの解放後の読み取りによる脆弱性、4.05で修正
Summary
JSON-XS 3.0以降4.05未満のPerlモジュールには、解放済みのスタックメモリを読み取ってしまう脆弱性があります。CVSSは9.1で、allow_tagsを使ってオブジェクトをエンコードする環境が影響を受けます。修正版は4.05なので、JSON-XSを4.05以降に更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
JSON-XS 3.0以降4.05未満のPerlモジュールには、解放済みのスタックメモリを読み取ってしまう脆弱性があります。CVSSは9.1で、allow_tagsを使ってオブジェクトをエンコードする環境が影響を受けます。修正版は4.05なので、JSON-XSを4.05以降に更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| CPANJSON-XS |
≥ 3.0, < 4.05→ 4.05 |
4.05 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-129115 libjson-xs-perl Fix available
- Ubuntu UBUNTU-CVE-2026-129115 libjson-xs-perl No fixed version in this record
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- web metacpan.org
- web nvd.nist.gov
- web github.com