Security Resilience

CVE-2025-51471

Auth Bypass in Ollama 0.6.7

Public PoCAuth Bypass
Published
22 July 2025
Modified
17 June 2026
Patch / advisory
CVSS Score v3.1 6.9
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N
EPSS Score 0.19 97th percentile
Risk Priority 62 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-51471 is a medium-severity Insufficient Verification of Data Authenticity (CWE-345) vulnerability in Ollama. Its CVSS base score is 6.9 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Credential Access (T1212); ranked in the top 3% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

This vulnerability is AI-related — categorised as NLP and Transformers; in the Privacy and Disclosure risk domain.

The strongest mitigations our analysis identified map to SC-23 (Session Authenticity) and SI-7 (Software, Firmware, and Information Integrity) — see the control section below for these in your framework.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

Cross-Domain Token Exposure in server.auth.getAuthorizationToken in Ollama 0.6.7 allows remote attackers to steal authentication tokens and bypass access controls via a malicious realm value in a WWW-Authenticate header returned by the /api/pull endpoint.

CWE(s)

AI Security AnalysisAI

AI Category
NLP and Transformers
Risk Domain
Privacy and Disclosure
OWASP Top 10 for LLMs 2025
None mapped
Classification Reason
Matched keywords: ollama

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1212 Exploitation for Credential Access Credential Access
Adversaries may exploit software vulnerabilities in an attempt to collect credentials.
T1566 Phishing Initial Access
Adversaries may send phishing messages to gain access to victim systems.
T1566.002 Spearphishing Link Initial Access
Adversaries may send spearphishing emails with a malicious link in an attempt to gain access to victim systems.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2024-12055Same product: Ollama Ollama
CVE-2026-7482Same product: Ollama Ollama
CVE-2025-44779Same product: Ollama Ollama
CVE-2025-66960Same product: Ollama Ollama
CVE-2025-66959Same product: Ollama Ollama
CVE-2025-0315Same product: Ollama Ollama
CVE-2024-8063Same product: Ollama Ollama
CVE-2026-7020Same product: Ollama Ollama
CVE-2025-0312Same product: Ollama Ollama
CVE-2025-15514Same product: Ollama Ollama

Affected Assets

ollama
ollama
0.6.7

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)

—

Validate
Prove the fix (OWASP ASVS)
  • V4.4.4
  • V7.6.2

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Explicit requirement to protect session authenticity structurally prevents the weakness for communications.

Integrity verification tools detect (but do not stop) the acceptance of data lacking authenticity.

Limits the lifetime of any session (fixed or not), thereby reducing the window during which a stolen identifier remains usable.

Enforces that only properly authorized (i.e., freshly authenticated) sessions can access resources, making a pre-existing fixed session ID unusable.

Forces re-authentication under defined conditions, which should result in issuance of a fresh session identifier and invalidation of any prior one.

Cryptographic mechanisms can be used to verify authenticity, thereby preventing acceptance of invalid data.

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.AA-03 mostly match
blocks

Proper authentication processes must invalidate prior session identifiers to prevent fixation attacks.

PR.AA-01 partial match
blocks

Managing identities and credentials includes handling session identifiers as temporary credentials that must be invalidated on re-authentication.

PR.AA-04 partial match
blocks

Protecting and verifying identity assertions encompasses secure handling and regeneration of session tokens.

PR.PS-01 partial match
blocks

Configuration baselines can enforce session regeneration and timeout settings that block fixation.

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 missing or weak data authenticity verification.

finds

A.5.22 is a supplier relationship management control that monitors service performance, reviews reports and conducts supplier audits for agreement compliance; it has no SOURCE reach (does not read code), no RUNTIME reach (does not exercise the application), and its DISCLOSURE reach is bounded to what suppliers report or what surface-level audits surface — none of which discovers a session-handling implementation defect like CWE-384 in deployed code.

prevents

Secure coding practices include implementing proper data authenticity checks.

finds

A.8.8's reach is DISCLOSURE — it sees only what vendors publish. Session fixation is primarily a first-party design/implementation flaw in custom session-handling code, which A.8.8 does not reach; it finds the weakness only where it surfaces as a published advisory in a third-party component (e.g., CVE-2022-2820, the Tomcat default case), which is a minority of instances.

removes

Configuration management defines and enforces secure baselines and monitors for deviations, but it does not itself invalidate existing session identifiers or alter the session management logic of a deployed application, so the weakness remains present.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

References