Skip to main content

Spring AI CVE-2026-41863

| EUVDEUVD-2026-31638 MEDIUM
Path Traversal (CWE-22)
2026-05-25 vmware GHSA-cc4m-mp48-x7qg
6.5
CVSS 3.1 · Vendor: vmware
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to Spring AI application
  2. Delivery
    Craft prompt to elicit traversal sequence in LLM filename output
  3. Exploit
    LLM returns filename containing '../' traversal
  4. Execution
    Spring AI calls Path.resolve() on unsanitized filename
  5. Persist
    File written outside intended base directory
  6. Impact
    Attacker-controlled content lands in restricted filesystem path

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the attacker to hold at least low-privilege authenticated access to the application (confirmed by PR:L in the CVSS vector). The targeted application must be running Spring AI version 1.1.0 through 1.1.x with the Anthropic Skills API integration enabled and actively invoking file-write operations - deployments that do not use this specific integration feature are not affected. The attacker must be able to influence the content of LLM responses, either by crafting prompts directly or by injecting data that shapes the model's filename output (a form of indirect prompt injection). Exploitation is limited by the non-default nature of this specific Skills API file-write workflow, the authentication barrier, and the requirement to successfully influence model output - SSVC rates it 'Automatable: no' for these reasons. The CVSS scope of Unchanged (S:U) means impact is confined to the application's own security context rather than escalating to a hypervisor or adjacent system.

Impact

The CVSS 3.1 vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N scores 6.5 (Medium). Network attack vector and low attack complexity indicate the vulnerability is reachable without physical or adjacent-network access, but PR:L confirms that at least low-privilege authentication is required, limiting opportunistic mass exploitation. The high integrity impact (I:H) reflects that arbitrary file writes - especially to restricted paths - can cascade into critical outcomes such as cron job injection, configuration tampering, or SSH key planting, even though the CVSS scope is unchanged. EPSS of 0.04% places this in the 11th percentile for exploitation probability, consistent with SSVC's 'Exploitation: none' designation. SSVC also rates this 'Automatable: no', which aligns with the indirect exploitation path through LLM output influence - mass automation is non-trivial. Technical Impact is rated 'partial' by SSVC, somewhat understating the I:H CVSS signal; this may reflect the real-world constraint that exploitation requires a specific deployment using the Anthropic Skills API with file-write operations. Overall, this is a meaningful risk for organizations using the affected integration feature, but is not a broad opportunistic threat given the authentication requirement and low EPSS. No KEV listing and no confirmed POC further support a measured rather than emergency response posture.

Exploit ScenarioDerived

An authenticated user of an application built on Spring AI 1.1.x with the Anthropic Skills API integration active crafts an input designed to elicit a path-traversal sequence in the LLM's file-naming output - for example, prompting the model to name a file '../../etc/cron.d/backdoor'. Spring AI passes this unsanitized string to Path.resolve() within the file-write code path, resolving the traversal sequence to an absolute path outside the intended directory. The attacker's payload is then written to the restricted filesystem location, potentially enabling persistent access or privilege escalation depending on what is written and where. No public exploit identified at time of analysis, but the attack logic is mechanically straightforward for any developer familiar with path traversal.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 08, 2026

Path traversal in Spring AI 1.1.0-1.1.x allows authenticated remote attackers to write arbitrary files outside the intended target directory by exploiting unsanitized LLM-influenced filenames in the Anthropic Skills API file-write workflow. The root cause is Spring AI passing filenames derived from LLM output directly to Path.resolve() without input sanitization, enabling directory escape via traversal sequences. No public exploit identified at time of analysis and EPSS is very low (0.04%, 11th percentile), though the high integrity impact (CVSS I:H) makes unauthorized file writes to restricted directories a meaningful concern in production deployments.

RemediationAI

Consult the Spring security advisory at https://spring.io/security/cve-2026-41863 for the vendor-confirmed fixed version and apply the patch immediately; an exact fix version number was not included in the available intelligence data, so the advisory must be consulted directly to confirm the target upgrade version. Patch available per vendor advisory - do not delay upgrade for teams actively using the Anthropic Skills API integration with file-write functionality. As a compensating control prior to patching, restrict the operating system user running the Spring AI application to the minimum filesystem write permissions required, using OS-level controls (e.g., Linux file permissions, chroot, or container filesystem restrictions) to limit the blast radius of a traversal to a sandboxed directory; note this adds operational complexity and must be tested for compatibility with the application's legitimate write paths. Alternatively, if the Anthropic Skills API file-write feature is non-essential, disabling it entirely eliminates the attack surface without side effects on other Spring AI functionality.

Affected VersionsENISA

Spring AI 1.1.0 ≤1.1.x

Affected Packages

maven org.springframework.ai:spring-ai-anthropic fix: 1.1.7
euvd spring_ai no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in maven, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Spring AI is a Java framework (CPE: cpe:2.3:a:spring:spring_ai:*:*:*:*:*:*:*:*) providing integrations with LLM providers including Anthropic's Skills API. The vulnerability resides in the file-write logic within this integration, where filenames sourced from LLM responses are concatenated into a path using Path.resolve() without prior sanitization. In Java, Path.resolve() does not strip or neutralize path traversal sequences such as '../', meaning an attacker-influenced filename like '../../etc/cron.d/payload' resolves to a fully qualified path outside the intended base directory. This is a textbook CWE-22 (Improper Limitation of a Pathname to a Restricted Directory - 'Path Traversal') pattern, where trust in LLM-generated content is incorrectly extended to filesystem operations. The issue is particularly notable because the attack surface is indirect - the attacker influences the LLM's output rather than directly supplying a filename parameter, which may circumvent input validation applied at the API boundary level.

Know when Spring gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (vmware) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Primary rating from Vendor (vmware) · only source for this CVE.

CVSS VectorVendor: vmware

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

DescriptionCVE.org

Spring AI's support for Anthropic's Skills API used LLM-influenced filenames unsanitized in Path.resolve before writing files to disk. This could allow a malicious user to write files outside the intended target directory, including restricted directories.

Affected versions: Spring AI: 1.1.0 through 1.1.x

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 4 maven packages depend on org.springframework.ai:spring-ai-anthropic (2 direct, 2 indirect)

Ecosystem-wide dependent count for version 1.1.0.

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% exploitable
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

More in Spring

View all
CVE-2025-70982 CRITICAL POC
9.9 Jan 26

Access control bypass in SpringBlade v4.5.0 importUser function allows low-privileged users to import sensitive user dat

CVE-2026-22739 HIGH POC
8.6 Mar 24

Spring Cloud Config Server contains a path traversal vulnerability when using the native file system backend, allowing u

CVE-2025-41242 MEDIUM POC
5.9 Aug 18

Spring Framework MVC applications can be vulnerable to a “Path Traversal Vulnerability” when deployed on a non-compliant

CVE-2025-70983 CRITICAL
9.9 Jan 23

SpringBlade v4.5.0 has an access control flaw in authRoutes allowing low-privileged users to escalate to admin through t

CVE-2026-41699 CRITICAL
9.8 Jun 11

Remote code execution in Spring for GraphQL versions 1.3.0-1.3.8, 1.4.0-1.4.5, and 2.0.0-2.0.3 allows unauthenticated at

CVE-2026-59313 CRITICAL
9.8 Aug 27

Server-Sent Events (SSE) stream corruption affects Spring MVC applications built on the functional web framework across

CVE-2026-22738 CRITICAL
9.8 Mar 27

Spring AI versions 1.0.0 through 1.0.4 and 1.1.0 through 1.1.3 allow unauthenticated remote code execution through Sprin

CVE-2026-41855 CRITICAL
9.8 Jun 09

Unsafe JSON deserialization in Spring Framework's JMS message converters (MappingJackson2MessageConverter and JacksonJso

CVE-2025-41232 CRITICAL
9.1 May 21

Spring Security Aspects may not correctly locate method security annotations on private methods. Rated critical severity

CVE-2026-59283 CRITICAL
9.1 Aug 27

Safety-guard bypass in the Spring Framework SpEL engine (VMware/Broadcom) lets attacker-controlled expression input esca

CVE-2026-40982 CRITICAL
9.1 May 07

Directory traversal in Spring Cloud Config server module allows remote unauthenticated attackers to read arbitrary files

CVE-2026-22732 CRITICAL POC
9.1 Mar 19

Spring Security fails to properly write HTTP response headers in servlet applications across multiple versions (5.7.0-5.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy