Affected versions
- Affected versions
- <4.27-1ubuntu0.3 || =4.25-1build1 || =4.25-1build2 || =4.27-1 || =4.27-1build1 || =4.27-1ubuntu0.1 || =4.27-1ubuntu0.2
- Fixed version
- 4.27-1ubuntu0.3
- Affected versions
- <4.37-1ubuntu0.2 || =4.37-1 || =4.37-1build1 || =4.37-1build2 || =4.37-1build3 || =4.37-1ubuntu0.1
- Fixed version
- 4.37-1ubuntu0.2
- Affected versions
- <4.40-1ubuntu0.1 || =4.39-2 || =4.40-1
- Fixed version
- 4.40-1ubuntu0.1
- Affected versions
- <4.42-1ubuntu0.1 || =4.40-1 || =4.42-1 || =4.42-1build1
- Fixed version
- 4.42-1ubuntu0.1
- Affected versions
- <3.0210-1ubuntu1+esm1 || =3.0115-1 || =3.0210-1ubuntu1
- Fixed version
- 3.0210-1ubuntu1+esm1
- Affected versions
- <3.0239-1ubuntu0.1~esm1 || =3.0225-1build1 || =3.0239-1
- Fixed version
- 3.0239-1ubuntu0.1~esm1
- Affected versions
- <4.19-1ubuntu0.1+esm1 || =4.12-1 || =4.12-1build1 || =4.15-1 || =4.17-1 || =4.18-1 || =4.19-1 || =4.19-1build1 || =4.19-1ubuntu0.1
- Fixed version
- 4.19-1ubuntu0.1+esm1
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.

