CVE-2021-31845
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 · uneditedA buffer overflow vulnerability in McAfee Data Loss Prevention (DLP) Discover prior to 11.6.100 allows an attacker in the same network as the DLP Discover to execute arbitrary code through placing carefully constructed Ami Pro (.sam) files onto a machine and having DLP Discover scan it, leading to remote code execution with elevated privileges. This is caused by the destination buffer being of fixed size and incorrect checks being made on the source size.
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 confidenceBuffer overflow vulnerability in McAfee DLP Discover when parsing Ami Pro (.sam) files. The scanner uses a fixed-size destination buffer without properly validating the source data size, allowing an attacker to achieve remote code execution with elevated privileges by having DLP Discover scan a specially crafted .sam file.
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< 11.6.100>= 11.7.0, < 11.7.100CVSS 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
- Low
- Privileges
- Low
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
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.
-
Verify McAfee DLP Discover is installedCheck for DLP Discover installation using your system inventory or by searching for DLP Discover components in Program Files or the McAfee installation directoryAffected if DLP Discover software is not present on the system, the vulnerability does not apply
-
Determine the installed DLP Discover versionUse the McAfee ePO console, check the DLP Discover application properties, or run the McAfee product information command for DLP Discover to retrieve the exact version numberAffected if Unable to retrieve version information, proceed to next check with available data
-
Compare your version against affected rangesCheck if your installed version is less than 11.6.100, or greater than or equal to 11.7.0 but less than 11.7.100. Versions 11.6.100 through 11.7.0 (exclusive) and 11.7.100 and later are not affectedAffected if Your version falls within < 11.6.100 or >= 11.7.0 and < 11.7.100, indicating the vulnerable version is installed
-
Verify if .sam file scanning is enabledCheck the DLP Discover scanner configuration settings in the ePO console or scanner policy to determine whether Ami Pro (.sam) file parsing and content extraction is enabledAffected if .sam file scanning is enabled and your version is vulnerable, the buffer overflow can be triggered when scanning a specially crafted .sam file
-
Assess if DLP Discover processes untrusted filesReview the data sources and file repositories configured for DLP Discover scanning to determine if the scanner ingests files from untrusted or external sourcesAffected if DLP Discover scans files from untrusted sources and runs a vulnerable version with .sam scanning enabled, the system is at risk of remote code execution
You are affected if DLP Discover is installed with a version less than 11.6.100 or between 11.7.0 and 11.7.100, and .sam file scanning is enabled on a system that processes files from untrusted sources.
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.
dbcve · scoped11.6.10011.7.100
Upgrade to DLP Discover version 11.6.100 or later. As an interim measure, disable .sam file scanning or isolate DLP Discover systems from untrusted file sources.
Upgrade to DLP Discover 11.6.100 or later (for versions < 11.7.0), or 11.7.100 or later (for versions >= 11.7.0)
- 1. Identify the current installed version of McAfee Data Loss Prevention (DLP) Discover by checking the product console or using the McAfee ePO system.
- 2. If the current version is less than 11.6.100, plan to upgrade to version 11.6.100 or later (preferably the latest 11.6.x release).
- 3. If the current version is 11.7.0 through 11.7.99, plan to upgrade to version 11.7.100 or later (preferably the latest 11.7.x release).
- 4. Download the appropriate updated DLP Discover installation package from the McAfee Knowledge Base (kc.mcafee.com) or your McAfee authorized download site.
- 5. Follow McAfee's standard upgrade procedures for DLP Discover, ensuring proper backup of configuration settings.
- 6. After upgrade, verify the DLP Discover version is now at 11.6.100+ or 11.7.100+ using the product console.
- 7. Test that DLP Discover scanning functionality operates normally after the upgrade.
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation2.0 h
- Testing4.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,464.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2021-31845 — 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-2021-31845 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