All vulnerabilities

Servers and applications

CVE-2026-70457

rsync: Attacker-chosen-offset write in parse_size_arg() error formatting

Severity
High 8.3
Published
13 Aug 2026
Last changed
24 Oct 2026
Added to UpHeron
1 Nov 2026
Fixed in
3.5.0
Exploit chance
0.4% in the next 30 daysHigher than 32% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
CWE-131Out-of-bounds write (CWE-787)
Attack
Over the network · Only under certain conditions · No login needed · No user action needed
Attacker can
Change some data · Take it down
CVSS 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Also known as
GHSA-pg7g-xqmr-xpfh
Sources
NVD, Project advisories (GitHub)

Description

parse_size_arg() used snprintf()'s return value -- which on truncation is the length the output WOULD have been, not what was written -- as an index into err_buf[]. An oversized --max-size / --min-size / --max-alloc / --bwlimit / --block-size value makes that return value attacker-influenced, producing a two-byte (0x0A, 0x00) write at an attacker-chosen offset in .bss.

These options are forwardable to a daemon by a peer through server_options(), so the value need not come from the local command line. The written bytes are fixed (newline, NUL) and only the offset is controlled, so the demonstrated impact is an out-of-bounds write and corruption of adjacent static state, not useful control of a security-sensitive target.

Fixed by not using the truncation return as an index. A separate integer-overflow defect in the same function -- the size value itself wrapping a signed ssize_t -- is a different issue and is listed under the additional hardening below, not here.

From RsyncProject/rsync's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
rsyncServers and applications · cpe:a:samba:rsync
  • From 3.2.3 before 3.5.0
rsyncServers and applications · github:rsyncproject/rsync
  • From 3.2.3 before 3.5.0

About rsync

file synchronization protocol and software

From Wikidata, CC0 1.0.
GitHub stars
5,367GitHub, 15 Nov 2026
Forks
631GitHub, 15 Nov 2026
Latest release
v3.5.2GitHub, 15 Nov 2026
Released
3 Nov 2026GitHub
Developer
Andrew TridgellWikidata
Written in
CWikidata
First released
19 Jun 1996Wikidata
First published on GitHub
25 May 2020GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-70457
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-70457
  • GitHub Advisory Database https://github.com/advisories/GHSA-pg7g-xqmr-xpfh
  • github.com https://github.com/RsyncProject/rsync/security/advisories/GHSA-pg7g-xqmr-xpfh