Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2004-0686: Buffer overflow in Samba 2.2.x to 2.2.9, and 3.0.0 to 3.0.4, when the "mangling method = hash" option is enabl

45
This month
MEDIUM 5.0WATCHLISTUPGRADEMITIGATE

CVE-2004-0686 is a medium-severity flaw (CVSS 5.0) affecting samba, secure linux. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

Buffer overflow in Samba 2.2.x to 2.2.9, and 3.0.0 to 3.0.4, when the "mangling method = hash" option is enabled in smb.conf, has unknown impact and attack vectors.

Why this priority

  • On your watchlist

A fixed release or distro patch exists.

Risk facts

CVSS score5.0 (Medium)
EPSS exploit chance3.7% (top 10%)
CISA exploited listNo
Published2004-07-27
Last modified2026-06-16
Publisher (CNA): MITRE · Vendor: samba · trustix

Share: LinkedIn · X · Reddit

Last updated 2026-06-16 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

samba samba UPGRADE
Affected: >= 2.2.0 and < 2.2.10 · >= 3.0.0 and < 3.0.5
Fixed in: 2.2.10, 3.0.5
Safe to downgrade to: a release before 2.2.0
1. Check installed version
apt-cache policy samba || rpm -q samba || samba --version
2. UPGRADE to 2.2.10 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade samba
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade samba
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 2.2.0 (Debian / Ubuntu)
apt-cache madison samba sudo apt install samba=<VERSION_BEFORE_2.2.0> sudo apt-mark hold samba
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list samba sudo dnf downgrade samba-<VERSION_BEFORE_2.2.0> sudo dnf versionlock add samba
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
trustix secure linux MITIGATE
Affected: 1.5 · 2.0 · 2.1
Fixed in: no fixed release known
Safe to downgrade to: a release before 1.5
Check your OS release
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2004-0686?

samba: upgrade to 2.2.10, 3.0.5; secure linux: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.

Is CVE-2004-0686 being exploited?

CVE-2004-0686 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2004-0686 affect?

CVE-2004-0686 affects samba, secure linux. Severity is medium (CVSS 5.0). Buffer overflow in Samba 2.2.x to 2.2.9, and 3.0.0 to 3.0.4, when the "mangling method = hash" option is enabled in smb.conf, has unknown impact and attack vectors.

How urgent is CVE-2004-0686?

Priority 45/100. On your watchlist

Software pages

Samba vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.