Skip to content
High 7.5

JSON-XSにメモリ解放漏れの脆弱性、繰り返しの要求でメモリを使い果たすおそれ

CVE-2026-124541 First seen on SecPulse

Summary

JSON-XSの4.05より前のバージョンには、デコードに失敗した長い文字列の一部が解放されず残る脆弱性があります。送信者が指定したサイズ分のメモリが保持されるため、要求を繰り返されると、プロセスのメモリが使い果たされるおそれがあります。修正版の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の4.05より前のバージョンには、デコードに失敗した長い文字列の一部が解放されず残る脆弱性があります。送信者が指定したサイズ分のメモリが保持されるため、要求を繰り返されると、プロセスのメモリが使い果たされるおそれがあります。修正版の4.05以降に更新してください。

Affected packages

PackageAffected → Fixed
CPANJSON-XS
< 4.05→ 4.05

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

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.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details