Security Resilience

CVE-2025-5981

Path Traversal in Google Osv-Scalibr 0.1.3 – 0.1.8

Published
18 June 2025
Modified
17 June 2026
Patch / advisory
CVSS Score v4 5.7
Click a component to see what it means
Raw vectorCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:L/VA:N/SC:H/SI:L/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
EPSS Score 0.0022 12th percentile
Risk Priority 35 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2025-5981 is a medium-severity Uncontrolled Search Path Element (CWE-427) vulnerability in Google Osv-Scalibr. Its CVSS base score is 5.7 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Privilege Escalation (T1068); ranked at the 12th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to AC-3 (Access Enforcement) and CM-6 (Configuration Settings) — see the control section below for these in your framework.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

Arbitrary file write as the OSV-SCALIBR user on the host system via a path traversal vulnerability when using OSV-SCALIBR's unpack() function for container images. Particularly, when using the CLI flag --remote-image on untrusted container images.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1003.008 /etc/passwd and /etc/shadow Credential Access
Adversaries may attempt to dump the contents of <code>/etc/passwd</code> and <code>/etc/shadow</code> to enable offline password cracking.
T1068 Exploitation for Privilege Escalation Privilege Escalation
Adversaries may exploit software vulnerabilities in an attempt to elevate privileges.
T1087 Account Discovery Discovery
Adversaries may attempt to get a listing of valid accounts, usernames, or email addresses on a system or within a compromised environment.
T1195 Supply Chain Compromise Initial Access
Adversaries may manipulate products or product delivery mechanisms prior to receipt by a final consumer for the purpose of data or system compromise.
T1195.001 Compromise Software Dependencies and Development Tools Initial Access
Adversaries may manipulate software dependencies and development tools prior to receipt by a final consumer for the purpose of data or system compromise.
T1203 Exploitation for Client Execution Execution
Adversaries may exploit software vulnerabilities in client applications to execute code.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2024-10389Same vendor: Google
CVE-2025-48636Same vendor: Google
CVE-2026-3223Same vendor: Google
CVE-2026-4092Same vendor: Google
CVE-2025-48567Same vendor: Google
CVE-2023-21093Same vendor: Google
CVE-2023-20943Same vendor: Google
CVE-2023-41780Shared CWE-22, CWE-427
CVE-2024-7061Shared CWE-22, CWE-427
CVE-2024-0980Shared CWE-22, CWE-427

Affected Assets

google
osv-scalibr
0.1.3 — 0.1.8

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)
  • 2 hardening rules · 1 OS baseline
Validate
Prove the fix (OWASP ASVS)
  • V5.3.2

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Enforces the intended directory access authorizations that path traversal would otherwise bypass.

Establishes restrictive configuration settings that can define and lock down approved search paths.

Input validation directly neutralizes special path elements before pathname construction occurs.

Limits privileges so unintended actors cannot write to or control directories in the product's search path.

Restricts logical and physical access to change system configuration, including search-path settings and directories.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 mostly match
blocks

Secure-development practices directly address design of search paths and resource loading.

PR.PS-01 partial match
blocks

Hardened configuration baselines can enforce safe search-path settings and reduce exposure.

PR.PS-02 partial match
blocks

Patching/maintenance can remediate known path-traversal flaws in deployed software (partial prevention of exploitability) but does nothing to stop the coding defect from being introduced in the first place.

PR.PS-05 partial match
blocks

Execution allow-listing can block malicious binaries placed in hijackable search locations.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing can detect uncontrolled search-path issues but does not prevent them by itself.

prevents

Training technical teams on secure coding practices (the education and training component of A.6.3) helps some developers avoid introducing uncontrolled search path elements, but the practice is fallible and the weakness is a specific implementation detail that most developers will not internalize from general awareness training.

prevents

Secure coding practices directly address the use of fixed or controlled search paths that can be influenced by unintended actors.

prevents

A.8.30 carries its effect through the secure-development practices (8.25-8.29) its contract requires of the supplier, and CWE-427 is an ordinary software implementation weakness that those practices address; the clause reduces instances in delivered code the way those practices do, at `partial` because the practice is fallible and the clause has a declared ceiling of `partial` on this verb.

blocks

A.8.7's application allowlisting (8.7a) and malware detection (8.7f) can block exploitation of an uncontrolled search path by preventing the attacker's planted DLL/executable from running or detecting it before load, but the code-level weakness itself is untouched and allowlisting does not cover configuration-file or data-file search path elements, leaving a nameable remainder.

finds

A.8.8's reach is DISCLOSURE — it identifies vulnerabilities via published advisories, vendor feeds, and scanning against known-CVE databases. CWE-427 does surface as CVEs (DLL hijacking, dependency confusion, binary planting), so A.8.8 finds the disclosed minority of instances in third-party components and published products, but it does not read source code (that is A.8.28/A.8.29) and cannot find CWE-427 in custom or unpublished code, capping the rung at `partial`.

Hardening callouts derived

Configuration rules from DISA STIG baselines that bear on weaknesses of the type cited by this CVE. Each rule is shown with the relationship its mapping actually records, against the CWE it was authored against. Derived via CVE→CWE over our cross-walk; rows rated `none` are excluded, and each rule says how its mapping was checked.

Definition changed on 29 October 2026. Until then this section listed every rule rated above none, partial included. From that date it lists rules whose mapping is rated full or mostly and checked at llm_unverified or higher; partial mappings show when you ask.

No rule maps to these weaknesses at full or mostly. Tick the option above to see the partial mappings.

Oracle Linux 8 (1 partial rule)
  • V-248577 OL 8 must enable kernel parameters to enforce Discretionary Access Control (DAC) on symlinks. blocks CWE-427

References