CVE-2026-70457

rsync 3.2.3 < 3.5.0 Out-of-Bounds Write via parse_size_arg()

Published Aug 13, 2026 CVSS 4.0 · 8.3 High EPSS < 1% KEV · Not listed
Description
rsync 3.2.3 before 3.5.0 contains an out-of-bounds write in parse_size_arg() where the return value of snprintf() is used directly as an index into a .bss-segment array without bounds checking. When snprintf truncates the formatted size string, the return value equals the number of characters that would have been written including the truncated portion, and this value may exceed the array length. The subsequent indexed write targets memory outside the intended array bounds, corrupting .bss memory.

Analysis

AI-generated

Technical impact

A memory corruption flaw exists in rsync versions 3.2.3 through 3.4.x where the function parse_size_arg() uses the return value of snprintf() directly as an index into a .bss‑segment array without validating bounds. When snprintf truncates the formatted size string, its return value represents the total number of characters that would have been written, including truncated data, and this value can exceed the array length. The resulting out‑of‑bounds write corrupts memory beyond the intended buffer, potentially leading to arbitrary code execution or denial of service.

Affected Systems

The vulnerability affects the rsync project’s rsync software, specifically all releases from 3.2.3 up to, but not including, 3.5.0. Users running any of these affected versions are at risk and should upgrade to ≥3.5.0.

Risk and Exploitability

The CVSS score of 8.3 reflects a high severity risk with strong impact potential. EPSS data is not available, but the flaw is not listed in CISA’s KEV catalog, indicating it is not currently known to have widespread exploitation. The likely attack vector is a remote attacker who can connect to a running rsync process and send size arguments that trigger the buffer overflow, giving the attacker the ability to overwrite memory and potentially execute arbitrary code. Discovery of an exploit path therefore underscores the need for timely remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade rsync to version 3.5.0 or later, which contains the buffer‑size check correction
  • If upgrading immediately is not possible, restrict rsync access to trusted hosts using firewall rules and deny connections from untrusted networks
  • Disable the rsync service entirely until the patch is applied and the service is verified to be secure

Generated by OpenCVE AI on August 13, 2026 at 17:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4888-1 rsync security update
Debian DSA Debian DSA DSA-6527-1 rsync security update
History
Type Values Removed Values Added
First Time appeared Samba
Samba rsync
CPEs cpe:2.3:a:samba:rsync:*:*:*:*:*:*:*:*
Vendors & Products Samba
Samba rsync
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Rsync Project
Rsync Project rsync
Vendors & Products Rsync Project
Rsync Project rsync
Type Values Removed Values Added
Description rsync 3.2.3 before 3.5.0 contains an out-of-bounds write in parse_size_arg() where the return value of snprintf() is used directly as an index into a .bss-segment array without bounds checking. When snprintf truncates the formatted size string, the return value equals the number of characters that would have been written including the truncated portion, and this value may exceed the array length. The subsequent indexed write targets memory outside the intended array bounds, corrupting .bss memory.
Title rsync 3.2.3 < 3.5.0 Out-of-Bounds Write via parse_size_arg()
Weaknesses CWE-131
CWE-787
References
Metrics cvssV3_1

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

cvssV4_0

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

Weaknesses
  • CWE-131

    Incorrect Calculation of Buffer Size

  • CWE-787

    Out-of-bounds Write

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Aug 14, 2026, 4:51 PM
Reserved
Aug 4, 2026, 2:52 PM
Status
Analyzed
Published
Aug 13, 2026, 3:19 PM
Modified
Oct 24, 2026, 4:10 PM