CVE-2026-57488: pupnp: Integer truncation in HTTP Content-Length parsing enables request smuggling

Published Oct 16, 2026
·
Updated

pupnp is an SDK for development of UPnP device and control point applications. Prior to 2.0.2, rawtoint in upnp/src/genlib/net/http/httpparser.c parses Content-Length with strtol and casts the resulting long to a 32-bit int before the caller stores it as unsigned int. On LP64 systems, values greater than INTMAX can truncate or wrap, so the HTTP parser can accept a body length different from the declared value. A remote adjacent-network peer can use the resulting parser disagreement to leave bytes to be interpreted as another request in persistent or proxied contexts, or can make a worker wait for an extremely large body and cause denial of service. This issue is fixed in 2.0.2.

Affected Software

1 affected component
pupnp pupnp<2.0.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pupnp to a version that resolves this vulnerability.

    Fixed in 2.0.2

Event History

Oct 16, 2026
CVE Published
via MITRE·03:34 PM
Data Sourced
via MITRE·03:34 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to exploitation?

Deployments using pupnp before 2.0.2 on LP64 systems are affected. An attacker must be a remote peer on the adjacent network.

2

What does an attacker need to send?

The attacker needs to send an HTTP request with a Content-Length value greater than INT_MAX. The truncation or wrap can make the parser accept a body length that differs from the declared length.

3

What is the practical impact in persistent or proxied HTTP handling?

Remaining bytes can be interpreted as a subsequent request when parser disagreement occurs in persistent or proxied contexts. An attacker can also cause a worker to wait for an extremely large request body, resulting in denial of service.

4

What remediation is available?

Upgrade pupnp to version 2.0.2, which fixes the issue.

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