All vulnerabilities

Servers and applications

CVE-2026-70458

rsync: Out-of-bounds write from a FLAG_HLINKED file entry accepted without -H

Severity
High 8.8
Published
13 Aug 2026
Last changed
6 Nov 2026
Added to UpHeron
3 Nov 2026
Fixed in
3.5.0
Exploit chance
0.4% in the next 30 daysHigher than 39% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Out-of-bounds write (CWE-787)
Attack
Over the network · No login needed · No user action needed
Attacker can
Change some data · Take it down
CVSS vector
CVSS:4.0/AV:N/AC:L/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-gg3m-4m9m-268h
Sources
NVD, Project advisories (GitHub)

Description

A malicious peer marks a file entry FLAG_HLINKED even though hard links were not negotiated (-H absent), which the receiver accepted. (Accepting the flag on a DIRECTORY entry was a second invalid form closed by the same fix; the demonstrated write is on a regular file.) The HLINK_BUMP()/OPT_EXTRA offset computed for such an entry then places attacker-supplied bytes just outside the pool entry that was allocated for it.

Reaching the write requires protocol-30 incremental recursion, a regular file, --checksum in use, and -H absent: the extra hard-link slots are reserved only when preserve_hard_links is set, and the out-of-bounds write lands through F_SUM(file).

Fixed by refusing FLAG_HLINKED when hard links are not in use and refusing it on a directory entry.

Affected: 3.0.0 through 3.4.4

Fixed in: 3.5.0 (part of the malicious-peer robustness work)

Reporter: Greg Kroah-Hartman (daemon-protocol fuzzing)

Test: proto-hlink-flag-oob

From RsyncProject/rsync's security advisory.

Affected software

SoftwareAffected versions
rsyncServers and applications · cpe:a:samba:rsync
  • From 3.0.0 before 3.5.0
rsyncServers and applications · github:rsyncproject/rsync
  • From 3.0.0 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-70458
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-70458
  • GitHub Advisory Database https://github.com/advisories/GHSA-gg3m-4m9m-268h
  • github.com https://github.com/RsyncProject/rsync/security/advisories/GHSA-gg3m-4m9m-268h