CVE-2008-5313
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedmailscanner 4.68.8 and other versions before 4.74.16-1 might allow local users to overwrite arbitrary files via a symlink attack on certain temporary files used by the (1) f-prot-autoupdate, (2) clamav-autoupdate, (3) avast-autoupdate, and (4) f-prot-6-autoupdate scripts in /etc/MailScanner/autoupdate/; the (5) bitdefender-wrapper, (6) kaspersky-wrapper, (7) clamav-wrapper, and (8) rav-wrapper scripts in /etc/MailScanner/wrapper/; the (9) Quarantine.pm, (10) TNEF.pm, (11) MessageBatch.pm, (12) WorkArea.pm, and (13) SA.pm scripts in /usr/share/MailScanner/MailScanner/; (14) /usr/sbin/MailScanner; and (15) scripts that load the /etc/MailScanner/mailscanner.conf.with.mcp configuration file.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceMailScanner before 4.74.16-1 contains multiple scripts that create temporary files in predictable locations without proper symlink protection, allowing local users to perform symlink attacks and overwrite arbitrary files. Affected components include autoupdate scripts, wrapper scripts for antivirus engines, and several Perl modules.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data= 4.68.8= 4.68.8-1= 4.69.9-3= 4.70.7-1= 4.71.10-1= 4.72.5-1= 4.73.4-2CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Local
- Complexity
- M
- Authentication
- None
- Confidentiality
- Complete
- Integrity
- Complete
- Availability
- Complete
AV:L/AC:M/Au:N/C:C/I:C/A:C
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check installed MailScanner versionRun 'rpm -q MailScanner' or look for version information in /usr/lib/MailScanner/MailScanner.pm, or use 'MailScanner -V'Affected if The version is one of: 4.68.8, 4.68.8-1, 4.69.9-3, 4.70.7-1, 4.71.10-1, 4.72.5-1, 4.73.4-2, or any version earlier than 4.74.16-1
-
Locate autoupdate scriptsSearch for autoupdate-related files in the MailScanner installation directory, typically under /usr/lib/MailScanner/ or /opt/MailScanner/Affected if The scripts exist and contain open() or sysopen() calls creating temp files without O_EXCL flag or File::Temp module
-
Identify antivirus wrapper scriptsLook for wrapper scripts in /usr/lib/MailScanner/MailScanner/ or similar paths, particularly those invoking external antivirus enginesAffected if The wrapper scripts create temporary files in predictable locations like /tmp or /var/tmp without proper symlink protection
-
Check Perl modules for temp file usageExamine Perl modules in the MailScanner lib directory for patterns like 'unlink $tmpfile' or 'open(.*>$tmp' without O_EXCLAffected if The modules use insecure temporary file creation methods in /tmp or /var/tmp with predictable filenames
If the installed MailScanner version is 4.74.16-1 or later, the environment is not affected by this CVE; otherwise, the presence of the vulnerable temp file creation patterns in the scripts indicates exposure.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
From vendor dataUpgrade MailScanner to version 4.74.16-1 or later to obtain the patched version, or apply manual fixes to use secure temporary file creation (e.g., O_EXCL flag, File::Temp module) in the affected scripts.
- Consultation4.0 h
- Implementation8.0 h
- Testing6.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $5,600.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2008-5313 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2008-5313 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data