User session is still usable after logout in graylog2-server
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-613.
Summary
Graylog is a free and open log management platform. In a multi-node Graylog cluster, after a user has explicitly logged out, a user session may still be used for API requests until it has reached its original expiry time. Each node maintains an in-memory cache of user sessions. Upon a cache-miss, the session is loaded from the database. After that, the node operates solely on the cached session. Modifications to sessions will update the cached version as well as the session persisted in the database. However, each node maintains their isolated version of the session. When the user logs out, the session is removed from the node-local cache and deleted from the database. The other nodes will however still use the cached session. These nodes will only fail to accept the session id if they intent to update the session in the database. They will then notice that the session is gone. This is true for most API requests originating from user interaction with the Graylog UI because these will lead to an update of the session's "last access" timestamp. If the session update is however prevented by setting the `X-Graylog-No-Session-Extension:true` header in the request, the node will consider the (cached) session valid until the session is expired according to its timeout setting. No session identifiers are leaked. After a user has logged out, the UI shows the login screen again, which gives the user the impression that their session is not valid anymore. However, if the session becomes compromised later, it can still be used to perform API requests against the Graylog cluster. The time frame for this is limited to the configured session lifetime, starting from the time when the user logged out. This issue has been addressed in versions 5.0.9 and 5.1.3. Users are advised to upgrade.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Graylog2 | graylog2-server | 5.1.0 to before 5.1.3; 1.0.0 to before 5.0.9 | 5.1.3, 5.0.9 | Patch available | CNA |
| — | org.graylog2:graylog2-server (Maven) | 1.0 to before 5.0.9 | 5.0.9 | Patch available | GHSA-3fqm-frhg-7c85 |
| — | org.graylog2:graylog2-server (Maven) | 5.1.0 to before 5.1.3 | 5.1.3 | Patch available | GHSA-3fqm-frhg-7c85 |
- graylog2-server VendorGraylog2 Affected 5.1.0 to before 5.1.3; 1.0.0 to before 5.0.9 Fixed in 5.1.3, 5.0.9 Patch available CNA
- org.graylog2:graylog2-server (Maven) Vendor— Affected 1.0 to before 5.0.9 Fixed in 5.0.9 Patch available GHSA-3fqm-frhg-7c85
- org.graylog2:graylog2-server (Maven) Vendor— Affected 5.1.0 to before 5.1.3 Fixed in 5.1.3 Patch available GHSA-3fqm-frhg-7c85
Remediation
- Fix · CNA graylog2-server (Graylog2) Fixed in 5.1.3, 5.0.9
- Fix · GHSA-3fqm-frhg-7c85 org.graylog2:graylog2-server (Maven) Fixed in 5.0.9 Advisory →
- Fix · GHSA-3fqm-frhg-7c85 org.graylog2:graylog2-server (Maven) Fixed in 5.1.3 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2023-41041
- 2026-10-03 Alias added: GHSA-3fqm-frhg-7c85
References
More Graylog2 Graylog vulnerabilities
- TI-2024-16341 graylog2-server vulnerable to instantiation of arbitrary classes triggered by API request CVSS 3.1HIGH 8.8
- TI-2023-21671 Insecure source port usage for DNS queries in Graylog CVSS 3.1MEDIUM 5.3
- TI-2026-01133 Incorrect management of session invalidation vulnerability in Graylog Web Interface CVSS 4.0CRITICAL 9.3
- TI-2021-15624 A Session ID leak in the audit log in Graylog before 4.1.2 allows attackers to escalate… CVSS 3.1CRITICAL 9.8
- TI-2021-15623 A Session ID leak in the DEBUG log file in Graylog before 4.1.2 allows attackers to… CVSS 3.1CRITICAL 9.8
- TI-2025-33099 Graylog vulnerable to privilege escalation through API tokens CVSS 4.0HIGH 8.8
Sources
- CVE-2023-41041 · CVE Program
- CVE-2023-41041 · NVD
- FIRST EPSS
- GHSA-3fqm-frhg-7c85 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences