Use After Free Affecting mod24_session package, versions <0:2.4.27-3.73.amzn1


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

Exploit Maturity
Mature
EPSS
97.39% (100th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-AMZN201803-MOD24SESSION-1707855
  • published27 Sept 2021
  • disclosed18 Sept 2017

Introduced: 18 Sep 2017

CVE-2017-9798  (opens in a new tab)
CWE-416  (opens in a new tab)
First added by Snyk

How to fix?

Upgrade Amazon-Linux:2018.03 mod24_session to version 0:2.4.27-3.73.amzn1 or higher.
This issue was patched in ALAS-2017-896.

NVD Description

Note: Versions mentioned in the description apply only to the upstream mod24_session package and not the mod24_session package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2018.03 relevant fixed versions and status.

Apache httpd allows remote attackers to read secret data from process memory if the Limit directive can be set in a user's .htaccess file, or if httpd.conf has certain misconfigurations, aka Optionsbleed. This affects the Apache HTTP Server through 2.2.34 and 2.4.x through 2.4.27. The attacker sends an unauthenticated OPTIONS HTTP request when attempting to read secret data. This is a use-after-free issue and thus secret data is not always sent, and the specific data depends on many factors including configuration. Exploitation with .htaccess can be blocked with a patch to the ap_limit_section function in server/core.c.

References

CVSS Scores

version 3.1