MEDIUM 6.5

CVE-2026-58174: Hermes WebUI Profile Isolation Bypass via Session Import

Hermes WebUI has a flaw in how it handles imported sessions that allows a user with default profile access to read files from isolated named workspaces. When a session is imported, the application checks that the session belongs to the correct workspace, but then saves it without recording which profile it belongs to. This causes the system to treat it as a default profile session. An attacker can then export that imported session and use its identifier to access files they shouldn't have permission to view, bypassing the profile isolation controls that are meant to keep different user workspaces separate.

Source data · NVD / CISA · public domain

CVSS
3.1 · 6.5 MEDIUM · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Weaknesses (CWE)
CWE-732
Affected products
0 configuration(s)
Published / Modified
2026-06-30 / 2026-07-14

NVD description (verbatim)

Hermes WebUI before 0.51.521 validates the workspace of an imported session under the active named profile but constructs the Session object without setting its profile in the /api/session/import handler, so the imported session is persisted with a null profile. Because a null profile is treated as the default profile by the profile authorization check, a user on the default profile can export the imported session transcript and use its session identifier to read files from the named profile's workspace, defeating the application's profile isolation.

6 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

The vulnerability exists in the /api/session/import handler of Hermes WebUI prior to version 0.51.521. During session import, the handler validates that the imported session's workspace matches the currently active named profile. However, the Session object is constructed and persisted without explicitly setting the profile field, leaving it null. The application's profile authorization logic treats null profile values as equivalent to the default profile. This allows a default profile user to export an imported session, obtain its session identifier, and leverage that identifier to read file system objects from a named profile's workspace directory, circumventing intended profile-based access controls.

Business impact

This vulnerability breaks the multi-workspace isolation model that Hermes WebUI relies on to segregate user data and permissions. Depending on the sensitivity of files stored in named profiles, an attacker with default profile access could exfiltrate confidential information, source code, credentials, or other protected assets belonging to users or teams using isolated workspaces. In shared Hermes deployments, this significantly increases the blast radius of a compromised low-privilege account.

Affected systems

Hermes WebUI versions before 0.51.521 are affected. Organizations running Hermes WebUI should verify their installed version immediately to determine exposure.

Exploitability

Exploitation requires valid login credentials to the Hermes WebUI instance (PR:L), but no user interaction is required beyond normal API calls (UI:N). The attack is feasible over the network with low attack complexity. The vulnerability does not require any special configuration or race conditions, making it straightforward to exploit once an attacker has basic authenticated access. The CVSS 3.1 score of 6.5 (MEDIUM) reflects the need for authentication and the confidentiality-only impact.

Remediation

Upgrade Hermes WebUI to version 0.51.521 or later. The patched version ensures that the Session object's profile field is properly populated during the import process, preventing null profile assignments and enforcing correct workspace isolation during subsequent file access operations.

Patch guidance

Apply the upgrade to Hermes WebUI 0.51.521 or later at your earliest convenience. Verify the patch version in your deployment and confirm that session import operations now correctly assign profile context. Test that users on different profiles can no longer access each other's workspaces via imported session identifiers.

Detection guidance

Monitor Hermes WebUI API logs for /api/session/import requests from default profile users, followed by /api/session/export calls and subsequent file read operations against paths from named profile workspaces. Look for session identifiers persisted with null profile values in application databases. Audit existing imported sessions to identify any that lack a profile assignment and may represent prior exploitation. Network detection is difficult because the attack uses legitimate API endpoints; log-based detection and session validation are more effective.

Why prioritize this

Although the CVSS score is MEDIUM, this vulnerability directly breaks a security boundary—profile isolation. In shared or multi-tenant environments where Hermes WebUI enforces workspace separation as a primary security control, unauthorized cross-profile access to files represents a meaningful confidentiality breach. Prioritize this above other MEDIUM-severity issues in your queue, especially if your organization relies on profile isolation for data protection or compliance.

Risk score, explained

The CVSS 3.1 score of 6.5 reflects: (1) Network accessibility and low attack complexity favor the attacker; (2) authentication is required, reducing the threat pool; (3) only confidentiality is impacted—integrity and availability are unaffected; (4) the scope is unchanged (single security domain). The score does not account for context-specific factors such as how critical the data in named profiles is or how many users have default profile access in your environment.

Frequently asked questions

Does this vulnerability allow an attacker to modify or delete files in named profiles?

No. The vulnerability only grants read access to files. There is no integrity or availability impact—attackers cannot modify or delete data, only view it.

Do I need valid credentials to exploit this vulnerability?

Yes. An attacker must have a valid login account on the Hermes WebUI instance, typically with at least default profile access. This limits the threat to internal or authorized users.

Can this be patched without downtime?

That depends on your deployment architecture. Verify with your Hermes WebUI deployment guide, but many updates can be applied with a rolling restart. Test in a non-production environment first.

What should I do if I suspect this was exploited?

Review session import logs and audit which files in named profile workspaces were accessed via imported sessions. Check for any sessions with null profile assignments. If data exfiltration is suspected, initiate your incident response procedures and consider credential rotation for affected named profiles.

This analysis is based on the published vulnerability description and CVSS vector provided. Exploit code, weaponized proof-of-concept instructions, or active exploitation details are not included. Patch version numbers and affected product information are sourced from the ground-truth data; verify against official Hermes WebUI security advisories and your vendor for the most current remediation steps. Testing any remediation or detection approach in a non-production environment is strongly recommended before deployment to production systems. Source: NVD (public-domain), retrieved 2026-08-09. Analysis generated by SEC.co (claude-haiku-4-5).