← 漏洞与更新

中危漏洞公告Javanginx

JSON-java: JSONTokener Has Unbounded Numeric String Resource-Exhaustion DoS

受影响

软件包受影响版本修复版本
maven:org.json:json>= 20150729, < 2026071920260719

1. Executive Summary JSON-java version 20260522 contains an unguarded path from an HTTP request body to unbounded BigInteger and BigDecimal construction. JSONTokener.nextSimpleValue() accumulates numeric characters into a StringBuilder with no length cap, then passes the full string to JSONObject.stringToNumber(), which calls new BigInteger(val) or new BigDecimal(val) directly. Both constructors have polynomial time complexity (O(n^1.585) for BigInteger). A 488 KB JSON body — well within nginx'…

在 GitHub Advisory Database 阅读

2026/11/10 06:12,GitHub Advisory Database 发布了“JSON-java: JSONTokener Has Unbounded Numeric String Resource-Exhaustion DoS”(类型:漏洞公告)。严重程度为“中危”(medium)。相关技术:Java、nginx。CVE:CVE-2026-59171。