← VULNERABILITIES

DHI-lrzh-moye-slbv-qdqd

Cpanel::JSON::XS versions before 4.80 for Perl allow memory exhaustion by encoding exponent notation as full decimal…

Unscored
CVSS
—
EPSS
—
Published
2026-11-21
Age
8d old
Modified
2026-11-24
Product
perl-cpanel-json-xs

Description

Cpanel::JSON::XS versions before 4.80 for Perl allow memory exhaustion by encoding exponent notation as full decimal digits under allow_bignum. With allow_bignum, a JSON number with a fraction or exponent decodes to a Math::BigFloat, which stores the exponent separately and so decodes cheaply. Encoding it untyped or as JSON_TYPE_FLOAT writes the plain decimal form with one digit per unit of exponent. Nothing bounds the exponent, so the 12-byte text [1e30000000] encodes to 30 MB. Untrusted JSON decoded with allow_bignum and encoded again can exhaust memory and CPU.

Sources

  • OSV · first seen 8d ago · CC-BY 4.0

References

JSON