GHSL-2026-047: SQL Injection in the Zammad Project may Allow Attackers to Leak Sensitive Information
The Zammad API's search functionality failed to validate the block-level operator in nested search conditions, allowing SQL injection. A low-privilege customer could exploit this to extract sensitive data such as password hashes, API tokens, and ticket contents from the database.
The Zammad project, version 6.5.2, is vulnerable to a SQL injection issue (GHSL-2026-047) in its API, which could allow attackers to leak sensitive information from the database.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
A low-privilege customer could extract arbitrary data from the database, including admin password hashes, API tokens, OAuth secrets, all ticket contents, personal data, and configuration settings.
What the attacker needed
A low-privilege customer account; access to the API
The fix
The issue was fixed in Zammad 7.0.0, likely by validating the block-level operator.
How it was found
- Send a JSON request to a search endpoint with a condition parameter containing a nested structure and a malicious operator field.
- The condition parameter is passed to the object's search method.
- The selector is converted to SQL, and the malicious operator is preserved because the condition already has a conditions key.
- The resulting SQL string with the injected operator is used in a database query.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
SQL injection is when user input is inserted directly into a database query, letting an attacker change the query's meaning. Here, a search feature accepted a nested condition whose operator was not checked, so a normal user could make the database return data they should not see, like other users' passwords or private tickets.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.