CVE-2017-9798 is a high-severity (CVSS 7.5) Use After Free vulnerability. 12 public exploit references exist, so weaponization risk is real. A fix is available — see the affected versions and patch details below.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
CVE-2017-9798 by exploitation likelihood (EPSS) against impact (CVSS). In the shaded patch-first corner (EPSS 50%+, CVSS 7.0+).
Where this sits among everything scored
Of 394,803 CVEs with a current EPSS score, this one falls in the ≥ 90% band (highlighted). Counts from FIRST.org, log-scaled.
Description
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.
Affected Products
http serverapachedebian linuxdebianResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Apache < 2.2.34 / < 2.4.27 - OPTIONS Memory Leak
by Hanno Bock · Sep 18, 2017
Detection & mitigation playbook
VulnerabilityDetect
Identify every host running the affected component and compare the installed build against the fixed version below — for source-built or distro-packaged software the version string, not a lockfile, is the source of truth (`dpkg -l`, `rpm -q`, or the binary's own `--version`).
Fix
Upgrade the affected component to the fixed release for CVE-2017-9798, or apply your distribution's backported patch — distro builds are often patched at an older version number, so check your vendor's advisory rather than the upstream version alone.
Workarounds
Constrain what reaches the vulnerable code: limit the size and shape of untrusted input, isolate the affected component in a sandboxed or least-privileged process, and enable the platform's memory-safety mitigations (ASLR, stack protector, hardened allocator) so an out-of-bounds access is more likely to fail closed than to be exploitable.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
This issue affects the versions of httpd as shipped with Red Hat Enterprise Linux 5, 6, and 7. This issue affects the versions of httpd24-httpd as shipped with Red Hat Software Collections. Product Security has rated this issue as having Moderate security impact. In order to be vulnerable, .htaccess files need to…
This issue can be mitigated by configuring httpd to disallow the use of the "Limit" configuration directive in .htaccess files. The set of directives that can be used in .htaccess files is configured using the "AllowOverride" directive. Refer to Red Hat Bugzilla bug 1490344 for further details: https://bugzilla.redhat.com/show_bug.cgi?id=1490344#c18Source: Red Hat security advisory for CVE-2017-9798 (CC BY 4.0)
| Product | Fixed in | Advisory |
|---|---|---|
| JBoss Core Services on RHEL 6 | jbcs-httpd24-httpd-0:2.4.23-125.jbcs.el6 | RHSA-2017:3477 |
| JBoss Core Services on RHEL 7 | jbcs-httpd24-httpd-0:2.4.23-125.jbcs.el7 | RHSA-2017:3476 |
| Red Hat Enterprise Linux 6 | httpd-0:2.2.15-60.el6_9.6 | RHSA-2017:2972 |
| Red Hat Enterprise Linux 6.7 Extended Update Support | httpd-0:2.2.15-47.el6_7.5 | RHSA-2017:3195 |
| Red Hat Enterprise Linux 7 | httpd-0:2.4.6-67.el7_4.5 | RHSA-2017:2882 |
| Red Hat Enterprise Linux 7.2 Extended Update Support | httpd-0:2.4.6-40.el7_2.6 | RHSA-2017:3193 |
| Red Hat Enterprise Linux 7.3 Extended Update Support | httpd-0:2.4.6-45.el7_3.5 | RHSA-2017:3194 |
| Red Hat JBoss Core Services | httpd | RHSA-2017:3475 |
Frequently Asked Questions
Is CVE-2017-9798 in your dependencies?
Find it across , including transitive dependencies.