Apache::Session Revives Deleted Sessions Vulnerability

Vulnerability

A vulnerability exists in Apache::Session versions through 1.94 for Perl, where deleted sessions can be unintentionally restored. This issue arises in the session stores Apache::Session::Store::File and Apache::Session::Store::DB_File, which automatically recreate sessions that have been deleted. As a result, sessions thought to be permanently removed can be revived, potentially with sensitive data that was intended to be discarded.

Impact

The vulnerability allows for the unintended restoration of deleted sessions, which could lead to the retrieval of data that was meant to be permanently deleted.

Reproduction

After a session is deleted, any subsequent updates to that session mark it as modified. During the session's destruction process, these modifications are saved using the backing store's update method. For database-backed stores, the update will fail silently if the session ID no longer exists. However, the File and DB_File stores will automatically recreate the session if it doesn't exist before saving the update. This behavior causes deleted sessions to be restored, along with any data that was supposed to be removed.

Remediation

No official patch is available, but the issue can be worked around by avoiding the use of the Apache::Session::Store::File or Apache::Session::Store::DB_File stores.

Added: May 8, 2026, 8:27 AM
Updated: May 8, 2026, 8:27 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
0.6
exploitability
7.7
remediation
0.0
relevance
7.7
threat
1.6
urgency
2.9
incentive
4.2

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.