Skip to content

rsync: `hosts deny` fails OPEN when a configured hostname cannot be resolved, admitting the host it was meant to block

High
tridge published GHSA-6692-28cx-wpqq Aug 13, 2026

Software

rsync

Affected versions

>= 3.1.0, <= 3.4.4

Patched versions

3.5.0

Description

match_hostname() performs a forward DNS lookup of a hostname token written in
hosts allow / hosts deny and compares the result against the connecting
IP. When that lookup FAILED it returned "no match" -- indistinguishable from
a genuine non-match -- so allow_access() fell through and ADMITTED the
connection. A daemon configured hosts deny = <hostname> therefore silently
accepted the very host it was configured to block.

No attacker DNS control is required. Two ordinary situations produce it:

  • a transient resolver failure, and
  • a daemon chroot whose tree lacks resolver configuration. Note this is
    the GLOBAL daemon chroot, entered before module selection, not a
    per-module use chroot: module access checking runs before the per-module
    chroot, so a resolver-less module chroot does not trigger this.
    rsyncd.conf(5) does warn that a daemon chroot may need OS and library
    files present; an administrator who does not supply resolver
    configuration silently loses the deny rule.

forward lookup is enabled by default, so a default daemon that uses hostname
tokens in hosts deny is affected.

Fixed by treating an unresolvable token on a DENY list as a match (deny).
Allow-list tokens keep failing as a non-match, so a resolver failure cannot
grant access through an allow rule either.

The regression drives the fail-open path with a permanently unresolvable
.invalid token; it establishes the behaviour, not a transiently unreachable
real hostname.

This is the sibling of CVE-2026-43617, which fixed only the reverse-lookup
path in the same function; the forward-lookup path was left failing open.

Affected: 3.1.0 through 3.4.4 with forward lookup enabled, which is the DEFAULT (forward lookup of hostname tokens entered in 3.1.0)

Fixed in: 3.5.0

Reporter: Leonid Bugaev (security audit); sibling of CVE-2026-43617

Test: daemon-deny-dns-failopen

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

CVE ID

CVE-2026-70452

Weaknesses

Not Failing Securely ('Failing Open')

When the product encounters an error condition or failure, its design requires it to fall back to a state that is less secure than other options that are available, such as selecting the weakest encryption algorithm or using the most permissive access control restrictions. Learn more on MITRE.

Incorrect Authorization

The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. Learn more on MITRE.

Credits