CVE-2026-28525

SWUpdate Integer Underflow in Multipart Upload Parser

Published Apr 23, 2026 CVSS 4.0 · 8.2 High EPSS < 1% KEV · Not listed
Description
SWUpdate contains an integer underflow vulnerability in the multipart upload parser in mongoose_multipart.c that allows unauthenticated attackers to cause a denial of service by sending a crafted HTTP POST request to /upload with a malformed multipart boundary and controlled TCP stream timing. Attackers can trigger an integer underflow in the mg_http_multipart_continue_wait_for_chunk() function when the buffer length falls within a specific range, causing an out-of-bounds heap read past the allocated receive buffer to a local IPC socket.

Analysis

AI-generated

Technical impact

Based on the updated description, SWUpdate contains an integer underflow in the multipart upload parser within mg_http_multipart_continue_wait_for_chunk() in mongoose_multipart.c. A crafted HTTP POST to /upload with a malformed multipart boundary and controlled TCP stream timing can trigger the underflow when the buffer length falls within a specific range, resulting in an out‑of‑bounds heap read past the allocated receive buffer into a local IPC socket. This corrupts internal structures, causing the update daemon to crash and denying service. The weakness maps to CWE‑125 and CWE‑191.

Affected Systems

The vulnerable code resides in the SWUpdate project maintained by sbabic. No explicit version range is provided; the flaw exists in the code as of the referenced commit. Any system running SWUpdate without the applied changes from that commit is susceptible to exploitation.

Risk and Exploitability

The CVSS score of 8.2 indicates high severity, but the EPSS score is less than 1%, suggesting that while the exploit can be achieved, its likelihood of emerging in the wild is low at present. The vulnerability is not in the CISA KEV catalog. Exploitation requires unauthenticated access to the /upload endpoint and the ability to send a crafted request; attack can be performed from any network location that can reach the endpoint. Successful exploitation would disrupt the OTA update process and could be leveraged for repeated denial‑of‑service attacks against affected devices.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update SWUpdate to a version that includes the fix from the commit beee2dc0feef1cfe84f1aa6fc980e104b2e47a74 or newer.
  • Restrict the /upload endpoint to authenticated clients, or place it behind an authenticated reverse proxy to prevent unauthenticated attackers from sending malicious POST requests.
  • If an immediate unavailable, mitigate by blocking untrusted traffic to /upload and applying rate limiting or boundary size checks to reduce the impact of malformed multipart uploads.

Generated by OpenCVE AI on May 26, 2026 at 01:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Swupdate
Swupdate swupdate
CPEs cpe:2.3:a:swupdate:swupdate:*:*:*:*:*:*:*:*
Vendors & Products Swupdate
Swupdate swupdate
Type Values Removed Values Added
Description SWUpdate contains an integer underflow vulnerability in the multipart upload parser in mongoose_multipart.c that allows unauthenticated attackers to cause a denial of service by sending a crafted HTTP POST request to /upload with a malformed multipart boundary and controlled TCP stream timing. Attackers can trigger an integer underflow in the mg_http_multipart_continue_wait_for_chunk() function when the buffer length falls within a specific range, causing an out-of-bounds heap read that writes data beyond the allocated receive buffer to a local IPC socket. SWUpdate contains an integer underflow vulnerability in the multipart upload parser in mongoose_multipart.c that allows unauthenticated attackers to cause a denial of service by sending a crafted HTTP POST request to /upload with a malformed multipart boundary and controlled TCP stream timing. Attackers can trigger an integer underflow in the mg_http_multipart_continue_wait_for_chunk() function when the buffer length falls within a specific range, causing an out-of-bounds heap read past the allocated receive buffer to a local IPC socket.
Type Values Removed Values Added
First Time appeared Sbabic
Sbabic swupdate
Vendors & Products Sbabic
Sbabic swupdate
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description SWUpdate contains an integer underflow vulnerability in the multipart upload parser in mongoose_multipart.c that allows unauthenticated attackers to cause a denial of service by sending a crafted HTTP POST request to /upload with a malformed multipart boundary and controlled TCP stream timing. Attackers can trigger an integer underflow in the mg_http_multipart_continue_wait_for_chunk() function when the buffer length falls within a specific range, causing an out-of-bounds heap read that writes data beyond the allocated receive buffer to a local IPC socket.
Title SWUpdate Integer Underflow in Multipart Upload Parser
Weaknesses CWE-125
CWE-191
References
Metrics cvssV3_1

{'score': 6.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:H'}

cvssV4_0

{'score': 8.2, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-125

    Out-of-bounds Read

  • CWE-191

    Integer Underflow (Wrap or Wraparound)

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jul 28, 2026, 1:48 AM
Reserved
Feb 27, 2026, 9:07 PM
Status
Analyzed
Published
Apr 23, 2026, 9:16 PM
Modified
Oct 26, 2026, 9:10 PM