---
id: CVE-2024-12084
title: A heap-based buffer overflow flaw was found in the rsync daemon
summary: >-
  A heap-based buffer overflow flaw was found in the rsync daemon. This issue is
  due to improper handling of attacker-controlled checksum lengths (s2length) in
  the code. When MAX_DIGEST_LEN exceeds the fixed SUM_LENGTH (16 bytes), an
  attac…
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-122
  - CWE-787
vendor: samba
product: rsync
affected:
  - rsync = 3.2.7
  - rsync = 3.3.0
  - almalinux = 10.0
  - arch_linux
  - linux
  - nixos < 24.11
  - nixos = 24.11
  - suse_linux
  - smartos < 20250123
  - enterprise_linux = 10.0
patched:
  - nixos 24.11
  - smartos 20250123
published: '2025-01-15'
updated: '2026-06-25'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-12084'
references:
  - url: 'https://access.redhat.com/errata/RHBA-2025:6470'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/security/cve/CVE-2024-12084'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2330527'
    label: secalert@redhat.com
  - url: 'https://kb.cert.org/vuls/id/952657'
    label: secalert@redhat.com
  - url: 'http://www.openwall.com/lists/oss-security/2025/01/14/6'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.netapp.com/advisory/ntap-20250131-0002/'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://www.kb.cert.org/vuls/id/952657'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://github.com/google/security-research/security/advisories/GHSA-p5pg-x43v-mvqj
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
  - exploit-available
epss: 0.72059
epssPercentile: 0.99413
ingestedAt: '2026-06-29T13:24:34.150Z'
exploits:
  github: 3
  githubRepos:
    - 'https://github.com/themirze/cve-2024-12084'
    - 'https://github.com/rxerium/CVE-2024-12084'
    - 'https://github.com/InkeyP/CVE-2024-12084'
  checkedAt: '2026-09-26T09:05:32.266Z'
exploitAvailable: true
---

## Overview

A heap-based buffer overflow flaw was found in the rsync daemon. This issue is due to improper handling of attacker-controlled checksum lengths (s2length) in the code. When MAX_DIGEST_LEN exceeds the fixed SUM_LENGTH (16 bytes), an attacker can write out of bounds in the sum2 buffer.

## Affected

- `rsync = 3.2.7`
- `rsync = 3.3.0`
- `almalinux = 10.0`
- `arch_linux`
- `linux`
- `nixos < 24.11`
- `nixos = 24.11`
- `suse_linux`
- `smartos < 20250123`
- `enterprise_linux = 10.0`

## Remediation

Upgrade past the affected range:

- `nixos 24.11`
- `smartos 20250123`
