CVE-2026-71562: httpc does not bound server-supplied numeric header values before integer conversion

Published Sep 1, 2026
·
Updated

Improper Validation of Specified Quantity in Input vulnerability in Erlang/OTP inets httpc allows a malicious or compromised HTTP server to degrade availability by returning a numeric header whose value is a very long run of digits.

httpchandler.erl converts the server-supplied Content-Length with listtointeger/1 before comparing it against maxbodysize, so the size check cannot protect the conversion, and the option defaults to nolimit in any case. The same unbounded conversion appears in httpcresponse:formatresponse/1 for Content-Length and in httpcresponse:getmsfromretryafter/1 for Retry-After, which is guarded only by a check that the first character is a digit. A value of up to roughly 1.26 million digits converts successfully and costs the requesting process hundreds of milliseconds of arbitrary-precision arithmetic per response. The conversion function is documented to accept integers of any size, so bounding the input is the caller's responsibility.

This issue affects OTP from OTP 17.0 before OTP 27.3.4.17, from OTP 28.0 before OTP 28.5.0.6, and from OTP 29.0 before OTP 29.0.6, corresponding to inets from 5.10 before 9.3.2.7, from 9.4 before 9.6.2.3, and from 9.7 before 9.7.2. Whether OTP before OTP 17.0, corresponding to inets before 5.10, is affected is unknown.

Affected Software

2 affected components
Erlang/OTP OTP>17.0<27.3.4.17, >28.0<28.5.0.6, >29.0<=29.0.6
Erlang/OTP inets<9.3.2.7, >9.4<9.6.2.3, >=9.7<9.7.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Erlang/OTP inets httpc to a version that resolves this vulnerability.

    Fixed in 27.3.4.17
  2. Upgrade

    Upgrade Erlang/OTP inets httpc to a version that resolves this vulnerability.

    Fixed in 28.5.0.6
  3. Upgrade

    Upgrade Erlang/OTP inets httpc to a version that resolves this vulnerability.

    Fixed in 29.0.6
  4. Upgrade

    Upgrade Erlang/OTP inets httpc to a version that resolves this vulnerability.

    Fixed in 9.3.2.7
  5. Upgrade

    Upgrade Erlang/OTP inets httpc to a version that resolves this vulnerability.

    Fixed in 9.6.2.3
  6. Upgrade

    Upgrade Erlang/OTP inets httpc to a version that resolves this vulnerability.

    Fixed in 9.7.2
  7. Configuration

    Ensure httpc does not use the default max_body_size value of "nolimit"; configure max_body_size to a finite bounded value because httpc converts server-supplied Content-Length with list_to_integer/1 before comparing against max_body_size.

    Erlang/OTP inets httpc max_body_size = not specified (set to a finite, bounded value instead of default nolimit)
  8. Compensating control

    Mitigate availability impact by limiting or filtering untrusted HTTP responses (for example, ensure you only communicate with trusted/controlled HTTP servers) so an attacker cannot return numeric headers with extremely long digit runs that are converted by httpc.

Event History

Sep 1, 2026
CVE Published
via MITRE·02:33 PM
Data Sourced
via MITRE·02:33 PM
DescriptionWeakness
Data Sourced
via NVD·03:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are realistically exposed to this issue?

Deployments using Erlang/OTP inets httpc to make requests to malicious or compromised HTTP servers are exposed. A server-controlled Content-Length or Retry-After value can trigger expensive arbitrary-precision integer conversion in the requesting process.

2

Does the default httpc configuration prevent exploitation?

No. The max_body_size option defaults to nolimit, and even when configured, Content-Length is converted with list_to_integer/1 before it is compared with max_body_size.

3

What does an attacker need to do to exploit this?

An attacker needs to control or compromise an HTTP server that the affected httpc client contacts. They can return a numeric header containing a very long sequence of digits; Content-Length and Retry-After are affected conversion paths.

4

What versions contain fixes?

Fixed releases are OTP 27.3.4.17, OTP 28.5.0.6, and OTP 29.0.6. The corresponding fixed inets releases are 9.3.2.7, 9.6.2.3, and the affected ranges also include inets 9.7 and later through the incomplete range stated in the advisory data.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203