CVE-2025-61667
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 · uneditedThe Datadog Agent collects events and metrics from hosts and sends them to Datadog. A vulnerability within the Datadog Linux Host Agent versions 7.65.0 through 7.70.2 exists due to insufficient permissions being set on the `opt/datadog-agent/python-scripts/__pycache__` directory during installation. Code in this directory is only run by the Agent during Agent install/upgrades. This could allow an attacker with local access to modify files in this directory, which would then subsequently be run when the Agent is upgraded, resulting in local privilege escalation. This issue requires local access to the host and a valid low privilege account to be vulnerable. Note that this vulnerability only impacts the Linux Host Agent. Other variations of the Agent including the container, kubernetes, windows host and other agents are not impacted. Version 7.71.0 contains a patch for the issue.
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 confidenceThe Datadog Linux Host Agent (versions 7.65.0-7.70.2) sets insufficient permissions on the `opt/datadog-agent/python-scripts/__pycache__` directory during installation. A local attacker with a low-privilege account can modify Python scripts in this directory, which are executed during Agent upgrades, leading to local privilege escalation to root.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS 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
- Authentication
- X
- User interaction
- P
- Scope
- X
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
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 Datadog Agent installationRun `datadog-agent version` or check for the directory `/opt/datadog-agent`Affected if Agent is not installed means not affected by this CVE
-
Check installed versionRun `datadog-agent version` and compare the reported version to the affected range 7.65.0-7.70.2Affected if Version falls between 7.65.0 and 7.70.2 inclusive means the version is vulnerable
-
Inspect __pycache__ directory permissionsRun `ls -la /opt/datadog-agent/python-scripts/__pycache__` and examine the permission bitsAffected if Directory shows world-writable permissions (the 'w' bit is set for 'others', such as 'drwxrwxrwx') means the vulnerability is present and exploitable
Your environment is affected if the Datadog Agent version is 7.65.0 through 7.70.2 AND the /opt/datadog-agent/python-scripts/__pycache__ directory is world-writable.
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 · scopedUpgrade Datadog Linux Host Agent to version 7.71.0 or later. Verify proper directory permissions after upgrade to ensure the `__pycache__` directory is not world-writable.
7.71.0 or later
- 1. Identify the current Datadog Agent version by running 'datadog-agent version' or checking the installed package
- 2. If the version is between 7.65.0 and 7.70.2 inclusive, plan for an upgrade
- 3. Review the Datadog Agent upgrade documentation for your installation method (package manager, ansible, puppet, etc.)
- 4. Before upgrading, ensure you have valid backups and can rollback if needed
- 5. Upgrade the Datadog Agent to version 7.71.0 or later using your deployment method
- 6. After upgrade, verify the new version is running with 'datadog-agent version'
- 7. Confirm the Agent is functioning correctly by checking status with 'datadog-agent status'
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation2.0 h
- Testing3.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 $2,512.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-61667 — 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-2025-61667 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