MEDIUM 6.5

CVE-2026-57951: Mythic C2 Broken Hasura Permission Filter Enables Cross-Operation Data Disclosure

Mythic command and control framework versions before 3.4.0.60 suffer from a database access control flaw that allows authenticated users to read sensitive output from any operation on the server, regardless of their assigned permissions. The vulnerability stems from a misconfigured permission filter in the backend that treats an OR condition as always-true, effectively removing restrictions. Any user with valid credentials—including those with minimal spectator roles—can extract step output, names, and descriptions from the payload_build_step table across all operations.

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-863
Affected products
1 configuration(s)
Published / Modified
2026-06-29 / 2026-07-14

NVD description (verbatim)

Mythic before 3.4.0.60 contains a broken hasura permission filter on the payload_build_step table with an always-satisfied _or condition that bypasses operation-scoped access controls. Authenticated operators and spectators can query payload_build_step to read step_stdout, step_stderr, step_name, and step_description across all operations on the server.

5 reference(s) · View on NVD →

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

Technical summary

CVE-2026-57951 is an improper authorization vulnerability in Mythic's Hasura GraphQL permission layer affecting the payload_build_step table. The issue manifests as a broken permission filter with a logically defective _or condition that evaluates to true regardless of the operator's scope or role assignments. This bypasses operation-scoped access controls, allowing authenticated principals to execute queries that return step_stdout, step_stderr, step_name, and step_description fields across all operations in the Mythic instance. The vulnerability is classified under CWE-863 (Incorrect Authorization) and carries a CVSS v3.1 score of 6.5 (Medium severity) with a vector of CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N, reflecting high confidentiality impact, low complexity, and requirement for valid authentication.

Business impact

In a multi-tenant or multi-campaign Mythic deployment, this vulnerability enables unauthorized disclosure of operational details that should remain compartmentalized. Operators assigned to one campaign can read build step output from unrelated operations, exposing command sequences, payload configurations, staging output, and debug information. This information disclosure can compromise operational security, reveal payload construction techniques, and provide adversaries or disgruntled insiders visibility into concurrent activities across the infrastructure. Organizations relying on role-based compartmentalization of red team or threat emulation campaigns will find those controls ineffective.

Affected systems

All versions of Mythic C2 framework before 3.4.0.60 are affected. The vulnerability requires valid authentication (operator or spectator role) and impacts any deployment where multiple operators or campaigns share the same server instance. Single-operator, isolated Mythic instances or fully air-gapped deployments with restricted access still benefit from patching to eliminate the attack surface.

Exploitability

Exploitation requires valid Mythic credentials and network access to the server's API endpoint. No special privileges, complex exploitation chains, or user interaction are needed; an authenticated spectator can immediately query the payload_build_step table via GraphQL to extract step details. The low attack complexity and straightforward query structure make this trivial to exploit once authenticated. However, exploitation does depend on having at least a valid user account, which may not be accessible to external unauthenticated attackers in properly firewalled environments.

Remediation

Upgrade Mythic to version 3.4.0.60 or later, which contains corrected permission filters for the payload_build_step table. The patch replaces the faulty _or condition with proper authorization logic that enforces operation-scoped access. Organizations unable to patch immediately should restrict API access through network segmentation or Web Application Firewall rules, limit spectator role assignments, and audit query logs for unauthorized payload_build_step requests.

Patch guidance

Consult the official Mythic repository and release notes for version 3.4.0.60 or later. Apply patches according to your deployment model (container, source, or binary). Test in a staging environment to verify that operation-scoped filters function correctly after patching. If you are unsure of the exact patch version available for your distribution, verify against the vendor advisory from its-a-feature/Mythic.

Detection guidance

Monitor GraphQL query logs for queries against the payload_build_step table, particularly those requesting step_stdout, step_stderr, step_name, or step_description fields. Establish baselines for which users should legitimately query this table and alert on deviations. Check Mythic logs for cross-operation access patterns (e.g., spectators querying steps outside their assigned campaigns). If available, inspect Hasura introspection queries or schema queries to detect permission filter anomalies. Review user activity logs for recent credential changes or privilege escalations prior to large-scale payload_build_step queries.

Why prioritize this

Although exploitability is straightforward and impact is high, the requirement for valid authentication limits the risk surface in properly hardened environments. This is a classic lateral movement and information disclosure vector for insider threats or compromised accounts. Given the CVSS 6.5 (Medium) score and the nature of Mythic deployments (typically in sensitive red team or research infrastructure), this vulnerability should be prioritized within 30 days. Organizations with large, multi-team Mythic instances or strict role segregation requirements should patch within 2 weeks.

Risk score, explained

The CVSS 6.5 (Medium) score reflects high confidentiality impact (step output, build details, payload information) and the network-accessible, low-complexity exploit path, balanced against the requirement for valid authentication. No integrity or availability impact is present. The score appropriately captures the severity for most enterprise environments but may warrant higher priority in security-sensitive Red Team operations where compartmentalization is critical.

Frequently asked questions

Can someone exploit this without valid credentials?

No. CVE-2026-57951 requires authenticated access—either as an operator or spectator role—to query the API. Unauthenticated remote attackers cannot exploit it directly. However, compromised accounts, insider threats, and shared credentials all become effective attack vectors.

What happens if I'm a single-operator Mythic instance?

If only one operator uses your Mythic instance, the practical risk is low because there are no other operations to cross-read. However, you should still patch to remove the attack surface and prepare for future multi-team scaling. Patching also demonstrates good hygiene for any future credential compromise or operator transition.

Can Mythic's role system (operator vs. spectator) still protect me before I patch?

No. The broken permission filter bypasses role and scope checks entirely. Both operators and spectators can read all payload_build_step data from all operations. Patching is the only reliable mitigation; network isolation is a temporary secondary control.

Will this vulnerability be added to CISA's Known Exploited Vulnerabilities (KEV) catalog?

As of the latest intelligence, this CVE is not currently listed on the KEV catalog and no active in-the-wild exploitation has been reported. However, its straightforward exploitation path means it could attract attention if disclosed widely. Patch promptly regardless of KEV status.

This analysis is provided for informational purposes by SEC.co and should not be construed as professional security advice or a substitute for vendor advisories. CVSS scores and patch versions are sourced from published CVE data; verify all remediation guidance against official vendor releases and your organization's security policy. Exploitation and testing should only be performed in authorized environments with proper approval and scope documentation. Source: NVD (public-domain), retrieved 2026-08-08. Analysis generated by SEC.co (claude-haiku-4-5).