Apache2 - Session Expiry Time Ignored in mod_session_cookie

apache2 Updated 02 Oct 2025

Summary

29/01/2019
N/A
Yes i
Unrated
Not published

DLA-1647-1: apache2 - security update. Affects apache2 versions < 2.4.10-10+deb8u13. Fixed in 2.4.10-10+deb8u13. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Apache2 is a widely used open-source web server software. It provides a robust and flexible platform for hosting websites and applications. The mod_session module in Apache2 allows for session management, enabling the server to maintain stateful connections with clients. However, a vulnerability has been discovered in the mod_session module that affects the handling of session expiry time when using mod_session_cookie.

Vulnerability Detail

The mod_session module in Apache2, specifically when used in conjunction with mod_session_cookie, fails to correctly handle the expiry time of sessions. The issue arises because the expiry time is only available after decoding the session, but the check for expiry is performed before decoding. As a result, the expiry time is ignored, allowing sessions to persist beyond their intended lifespan. This vulnerability could potentially lead to session hijacking or unauthorized access to sensitive information.

How To Fix

Minimum fixed version

2.4.10-10+deb8u13

This is the first release that contains the fix.

sudo apt-get install --only-upgrade apache2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can disable the mod_session_cookie module and rely on other session management mechanisms provided by Apache2. This can be achieved by modifying the server configuration file and commenting out or removing the relevant lines that enable mod_session_cookie. However, it is important to note that this workaround may impact the functionality of applications relying on mod_session_cookie for session management.

Conclusion

In conclusion, the mod_session module in Apache2 is vulnerable to session expiry time being ignored when used with mod_session_cookie. This could potentially lead to session hijacking or unauthorized access to sensitive information. It is crucial to upgrade to Apache2 version 2.4.10-10+deb8u13 or later to mitigate this vulnerability. If you have any further questions or need assistance with vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for apache2 →

Share this vulnerability

FAQ

The vulnerability allows sessions to persist beyond their intended expiry time, potentially leading to session hijacking or unauthorized access to sensitive information.

The vulnerability affects Apache2 version 2.4.10-10+deb8u12 and earlier. Later versions, starting from 2.4.10-10+deb8u13, include the necessary fixes.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your Apache2 installation is affected by this vulnerability. Simply upload your package-lock.json file and the Vulert Playground will analyze it for any known vulnerabilities.

Yes, a temporary workaround is to disable the mod_session_cookie module and rely on alternative session management mechanisms provided by Apache2. However, this workaround may impact the functionality of applications relying on mod_session_cookie.

You can find more information about Debian LTS security advisories, including how to apply updates and frequently asked questions, on the Debian LTS wiki: https://wiki.debian.org/LTS

Related vulnerabilities

Recent vulnerabilities recorded for apache2.

How To Fix

Minimum fixed version

2.4.10-10+deb8u13

This is the first release that contains the fix.

sudo apt-get install --only-upgrade apache2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback