Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-32847: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in HKUDS DeepCode

0
High
VulnerabilityCVE-2026-32847cvecve-2026-32847
Published: Thu May 28 2026 (05/28/2026, 19:32:13 UTC)
Source: CVE Database V5
Vendor/Project: HKUDS
Product: DeepCode

Description

DeepCode through commit c991dc2 contains a path traversal vulnerability in the SPA catch-all route in new_ui/backend/main.py that allows unauthenticated attackers to read arbitrary files by supplying percent-encoded path segments to the GET /{full_path:path} endpoint. Attackers can bypass Starlette's path normalization by encoding slashes as %2F and dots as %2E%2E, causing the joined path to traverse outside FRONTEND_DIST and exposing sensitive files such as SSH private keys, TLS certificates, and application secrets with a single HTTP request.

CVSS v4.0

Score 8.7high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/28/2026, 19:53:23 UTC

Technical Analysis

The vulnerability exists in the new_ui/backend/main.py file of DeepCode, where the SPA catch-all route at GET /{full_path:path} improperly limits pathnames to a restricted directory. Attackers can encode slashes (%2F) and dots (%2E%2E) to bypass Starlette's path normalization, enabling traversal outside the intended FRONTEND_DIST directory. This allows reading of arbitrary files, including sensitive credentials and secrets, without authentication.

Potential Impact

Successful exploitation allows unauthenticated attackers to read arbitrary files on the server, potentially exposing sensitive information such as SSH private keys, TLS certificates, and application secrets. This can lead to further compromise of the system or its communications. The CVSS 4.0 score of 8.7 reflects a high-impact vulnerability with network attack vector, no required privileges or user interaction, and high confidentiality impact.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict access to the affected endpoint if possible and monitor for suspicious requests attempting path traversal with encoded characters. Avoid exposing sensitive files in directories accessible by the web server.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulnCheck
Date Reserved
2026-03-16T18:11:41.758Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a189d28e29bf47b50227a07

Added to database: 5/28/2026, 7:53:12 PM

Last enriched: 5/28/2026, 7:53:23 PM

Last updated: 5/29/2026, 8:19:14 AM

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses