Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-9665 Overview
CVE-2024-9665 is a Cross-Site Request Forgery (CSRF) vulnerability in the Zimbra Collaboration Suite GraphQL endpoint. The flaw allows remote attackers to disclose sensitive information from a target email account when the victim opens a malicious email message. The vulnerability was reported through the Zero Day Initiative as ZDI-CAN-23939 and is tracked as ZDI-24-1369. It affects multiple Zimbra 9.0.0 patch levels and is categorized under [CWE-352].
Critical Impact
An attacker can read information in the context of the target email account by convincing a user to open a crafted email, enabling silent exfiltration of mailbox data through the authenticated GraphQL endpoint.
Affected Products
- Zimbra Collaboration 9.0.0 (patch levels p0 through p41, excluding patched releases)
- Zimbra graphql endpoint implementations lacking CSRF protection
- Deployments where users access Zimbra webmail with an active session
Discovery Timeline
- 2024-11-22 - CVE-2024-9665 published to the National Vulnerability Database
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-9665
Vulnerability Analysis
The vulnerability resides in the Zimbra graphql endpoint implementation. The endpoint accepts authenticated requests originating from cross-origin contexts without validating a CSRF token or verifying request origin. An attacker crafts an HTML email that triggers a cross-origin request to the GraphQL endpoint when rendered. Because the victim's browser automatically attaches the Zimbra session cookie, the request executes within the victim's authenticated context. The server returns mailbox data that the attacker can exfiltrate using techniques such as cross-origin leaks or callback redirection.
Root Cause
The root cause is missing anti-CSRF controls on the graphql endpoint, consistent with [CWE-352]. The endpoint does not require a request-specific token, nor does it verify the Origin or Referer headers before processing authenticated GraphQL queries. This design allows any origin to invoke privileged operations on behalf of an authenticated user.
Attack Vector
Exploitation requires user interaction. The target must open a malicious email in the Zimbra webmail client while an authenticated session exists. The email contains embedded content that triggers a cross-origin request to the Zimbra GraphQL endpoint. The response discloses mailbox contents, folder metadata, or other GraphQL-queryable account data back to the attacker-controlled context. No credentials are required from the attacker, and no privileges are needed on the Zimbra server itself.
Technical details are available in the Zero Day Initiative Advisory ZDI-24-1369.
Detection Methods for CVE-2024-9665
Indicators of Compromise
- Unexpected HTTP POST or GET requests to the /service/extension/graphql endpoint with Referer or Origin headers pointing to external domains.
- Inbound emails containing HTML with embedded <form>, <img>, <iframe>, or fetch() constructs that target the Zimbra GraphQL endpoint.
- Spikes in GraphQL query volume from a single authenticated user within short time windows.
Detection Strategies
- Inspect Zimbra access logs for GraphQL requests whose Origin header does not match the Zimbra server's canonical hostname.
- Deploy a web application firewall rule that blocks or alerts on GraphQL requests missing a valid CSRF token or carrying a foreign Referer.
- Correlate inbound email delivery events with subsequent anomalous GraphQL queries from the recipient's session.
Monitoring Recommendations
- Enable verbose logging on the Zimbra proxy and mailbox services to capture full request headers for graphql traffic.
- Forward Zimbra webmail and HTTP proxy logs to a centralized analytics platform for correlation with mail flow telemetry.
- Alert on outbound DNS or HTTP connections from mail-rendering components that reference newly observed external domains.
How to Mitigate CVE-2024-9665
Immediate Actions Required
- Apply the latest Zimbra 9.0.0 patch that remediates the GraphQL CSRF flaw as documented in the Zimbra Patch Release Notice.
- Audit the Zimbra reverse proxy configuration to restrict access to /service/extension/graphql and enforce Origin validation.
- Notify users to avoid opening unexpected emails and review mailbox access logs for the affected period.
Patch Information
Zimbra addressed CVE-2024-9665 in subsequent patch releases following 9.0.0 p41. Administrators should consult the Zimbra Patch Release Notice to identify the fixed patch level and schedule immediate deployment on all mailbox and proxy nodes.
Workarounds
- Block external access to the /service/extension/graphql path at the reverse proxy or WAF layer if GraphQL is not required by client integrations.
- Enforce strict Content-Security-Policy and SameSite=Strict cookie attributes on the Zimbra authentication cookie to reduce cross-origin exposure.
- Disable HTML rendering of untrusted mail by configuring the Zimbra webmail client to default to plain-text display until patches are applied.
# Example nginx snippet to restrict GraphQL endpoint access
location /service/extension/graphql {
if ($http_origin !~* ^https://mail\.example\.com$) {
return 403;
}
proxy_pass http://zimbra_mailbox;
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

