CVE-2026-40086: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in danielgatis rembg
CVE-2026-40086 is a path traversal vulnerability in the rembg tool prior to version 2. 0. 75. It allows unauthenticated remote attackers to read arbitrary files on the server by exploiting a crafted request with a malicious model_path parameter. This causes the server to attempt loading arbitrary files as ONNX models, potentially revealing file existence, permissions, and contents through error messages. The vulnerability has a medium severity with a CVSS score of 5. 3 and is fixed in version 2. 0. 75.
AI Analysis
Technical Summary
Rembg versions before 2.0.75 contain a path traversal vulnerability (CWE-22) in its HTTP server component. An attacker can send a specially crafted request with a malicious model_path parameter to force the server to load arbitrary files from the filesystem as ONNX models. This can disclose information about file existence, permissions, and possibly file contents via error messages. The vulnerability does not require authentication and has no impact on integrity or availability. It is addressed in rembg version 2.0.75.
Potential Impact
The vulnerability allows unauthenticated remote attackers to read arbitrary files on the server hosting rembg, potentially exposing sensitive information. The CVSS score of 5.3 reflects a medium impact primarily on confidentiality. There is no impact on integrity or availability according to the CVSS vector. No known exploits are reported in the wild at this time.
Mitigation Recommendations
This vulnerability is fixed in rembg version 2.0.75. Users should upgrade to version 2.0.75 or later to remediate this issue. Patch status is confirmed by the vendor stating the fix is included in version 2.0.75. No additional mitigation steps are indicated.
CVE-2026-40086: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in danielgatis rembg
Description
CVE-2026-40086 is a path traversal vulnerability in the rembg tool prior to version 2. 0. 75. It allows unauthenticated remote attackers to read arbitrary files on the server by exploiting a crafted request with a malicious model_path parameter. This causes the server to attempt loading arbitrary files as ONNX models, potentially revealing file existence, permissions, and contents through error messages. The vulnerability has a medium severity with a CVSS score of 5. 3 and is fixed in version 2. 0. 75.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Rembg versions before 2.0.75 contain a path traversal vulnerability (CWE-22) in its HTTP server component. An attacker can send a specially crafted request with a malicious model_path parameter to force the server to load arbitrary files from the filesystem as ONNX models. This can disclose information about file existence, permissions, and possibly file contents via error messages. The vulnerability does not require authentication and has no impact on integrity or availability. It is addressed in rembg version 2.0.75.
Potential Impact
The vulnerability allows unauthenticated remote attackers to read arbitrary files on the server hosting rembg, potentially exposing sensitive information. The CVSS score of 5.3 reflects a medium impact primarily on confidentiality. There is no impact on integrity or availability according to the CVSS vector. No known exploits are reported in the wild at this time.
Mitigation Recommendations
This vulnerability is fixed in rembg version 2.0.75. Users should upgrade to version 2.0.75 or later to remediate this issue. Patch status is confirmed by the vendor stating the fix is included in version 2.0.75. No additional mitigation steps are indicated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-09T00:39:12.206Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d943121cc7ad14dadcb1ba
Added to database: 4/10/2026, 6:36:02 PM
Last enriched: 4/10/2026, 6:51:16 PM
Last updated: 4/11/2026, 12:26:44 AM
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.