← Vulnerability feed

Vulnerability record · CVE-2017-15715 · published 26 March 2018

CVE-2017-15715: Apache httpd FilesMatch regex bypass via trailing newline in filename

Apache · Http Server

In Apache httpd 2.4.0 through 2.4.29, the regular expression in a <FilesMatch> directive could match '$' against a newline character embedded in a malicious filename instead of only the true end of the filename. This lets an attacker craft a filename that fails a trailing-portion block rule while still being accepted by the server, undermining upload restrictions that rely on FilesMatch.

8.1 CVSS 3.0 High EPSS 85% · top 0.3% CWE-20 · Improper input validation
8.1CVSS 3.0 base score, v2 6.8
85%EPSS exploitation probability, 30 days
NoNot in CISA KEV
8Affected product versions listed by NVD
54References
17 Jun 2026Last modified by NVD

Description

In Apache httpd 2.4.0 to 2.4.29, the expression specified in <FilesMatch> could match '$' to a newline character in a malicious filename, rather than matching only the end of the filename. This could be exploited in environments where uploads of some files are are externally blocked, but only by matching the trailing portion of the filename.

CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

high priorityHigh CVSS (8.1) and a very high EPSS score indicate likely exploitation, though the flaw only affects environments using trailing-portion FilesMatch upload blocks and it is not in KEV.

What it is

In Apache httpd 2.4.0 through 2.4.29, the regular expression in a <FilesMatch> directive could match '$' against a newline character embedded in a malicious filename instead of only the true end of the filename. This lets an attacker craft a filename that fails a trailing-portion block rule while still being accepted by the server, undermining upload restrictions that rely on FilesMatch.

Impact

An attacker can bypass filename-based upload blocks and get a file past the intended restriction, potentially leading to code execution or other compromise depending on what the server does with the uploaded file. The CVSS vector rates confidentiality, integrity and availability impact as high.

Attack surface

Reached remotely over the network by submitting a crafted filename, typically through a file upload endpoint. No authentication or user interaction is required per the CVSS vector (AV:N/PR:N/UI:N), though the flaw only matters where FilesMatch is used to block uploads by trailing filename portion.

Exploitation

Not listed in CISA KEV and no ransomware usage documented, but EPSS is very high at 0.85452 (99.7th percentile), indicating strong predicted exploitation activity; references are advisories and mailing-list posts, with no public exploit tag in the record.

What to do

  • Upgrade Apache httpd to a version after 2.4.29 that fixes the FilesMatch newline handling.
  • Apply vendor errata for downstream packages (Red Hat RHSA-2018:3558, RHSA-2019:0366, RHSA-2019:0367; Ubuntu USN-3627-1 and USN-3627-2).
  • Replace trailing-portion FilesMatch block rules with validation that rejects filenames containing newline or control characters.
  • Normalize and sanitize uploaded filenames before any policy check, and enforce upload restrictions at the application layer rather than relying solely on httpd regex matching.

Detection

  • Search httpd access and error logs for filenames containing encoded or literal newline characters (%0a) in upload requests.
  • Audit httpd configuration for <FilesMatch> directives that match only the trailing portion of a filename and review what they are meant to block.
  • Monitor for uploaded files whose names end in unexpected extensions or control characters, and alert on writes to web-accessible upload directories.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

8 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://www.openwall.com/lists/oss-security/2018/03/24/6 Mailing ListThird Party Advisory
http://www.securityfocus.com/bid/103525 Third Party AdvisoryVDB Entry
http://www.securitytracker.com/id/1040570 Third Party AdvisoryVDB Entry
https://access.redhat.com/errata/RHSA-2018:3558 Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:0366 Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:0367 Third Party Advisory
https://httpd.apache.org/security/vulnerabilities_24.html Vendor Advisory
https://lists.apache.org/thread.html/56c2e7cc9deb1c12a843d0dc251ea7fd3e7e80293cde02fcd65286ba%40%3Ccvs.httpd.apache.org%
https://lists.apache.org/thread.html/84a3714f0878781f6ed84473d1a503d2cc382277e100450209231830%40%3Ccvs.httpd.apache.org%
https://lists.apache.org/thread.html/r04e89e873d54116a0635ef2f7061c15acc5ed27ef7500997beb65d6f%40%3Ccvs.httpd.apache.org
https://lists.apache.org/thread.html/r06f0d87ebb6d59ed8379633f36f72f5b1f79cadfda72ede0830b42cf%40%3Ccvs.httpd.apache.org
https://lists.apache.org/thread.html/r6521a7f62276340eabdb3339b2aa9a38c5f59d978497a1f794af53be%40%3Ccvs.httpd.apache.org
https://lists.apache.org/thread.html/r76142b8c5119df2178be7c2dba88fde552eedeec37ea993dfce68d1d%40%3Ccvs.httpd.apache.org
https://lists.apache.org/thread.html/r9f93cf6dde308d42a9c807784e8102600d0397f5f834890708bf6920%40%3Ccvs.httpd.apache.org
https://lists.apache.org/thread.html/rc998b18880df98bafaade071346690c2bc1444adaa1a1ea464b93f0a%40%3Ccvs.httpd.apache.org
https://lists.apache.org/thread.html/rd18c3c43602e66f9cdcf09f1de233804975b9572b0456cc582390b6f%40%3Ccvs.httpd.apache.org
https://lists.apache.org/thread.html/rd336919f655b7ff309385e34a143e41c503e133da80414485b3abcc9%40%3Ccvs.httpd.apache.org
https://lists.apache.org/thread.html/re1e3a24664d35bcd0a0e793e0b5fc6ca6c107f99a1b2c545c5d4b467%40%3Ccvs.httpd.apache.org
https://lists.apache.org/thread.html/re3d27b6250aa8548b8845d314bb8a350b3df326cacbbfdfe4d455234%40%3Ccvs.httpd.apache.org
https://lists.apache.org/thread.html/rf6449464fd8b7437704c55f88361b66f12d5b5f90bcce66af4be4ba9%40%3Ccvs.httpd.apache.org
https://security.elarlang.eu/cve-2017-15715-apache-http-server-filesmatch-bypass-with-a-trailing-newline-at-the-end-of-t
https://security.netapp.com/advisory/ntap-20180601-0004/ Third Party Advisory
https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbux03909en_us Third Party Advisory
https://usn.ubuntu.com/3627-1/ Third Party Advisory
https://usn.ubuntu.com/3627-2/ Third Party Advisory
https://www.debian.org/security/2018/dsa-4164 Third Party Advisory
https://www.tenable.com/security/tns-2019-09
http://www.openwall.com/lists/oss-security/2018/03/24/6 Mailing ListThird Party Advisory
http://www.securityfocus.com/bid/103525 Third Party AdvisoryVDB Entry
http://www.securitytracker.com/id/1040570 Third Party AdvisoryVDB Entry
https://access.redhat.com/errata/RHSA-2018:3558 Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:0366 Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:0367 Third Party Advisory
https://httpd.apache.org/security/vulnerabilities_24.html Vendor Advisory
https://lists.apache.org/thread.html/56c2e7cc9deb1c12a843d0dc251ea7fd3e7e80293cde02fcd65286ba%40%3Ccvs.httpd.apache.org%
https://lists.apache.org/thread.html/84a3714f0878781f6ed84473d1a503d2cc382277e100450209231830%40%3Ccvs.httpd.apache.org%
https://lists.apache.org/thread.html/r04e89e873d54116a0635ef2f7061c15acc5ed27ef7500997beb65d6f%40%3Ccvs.httpd.apache.org
https://lists.apache.org/thread.html/r06f0d87ebb6d59ed8379633f36f72f5b1f79cadfda72ede0830b42cf%40%3Ccvs.httpd.apache.org
https://lists.apache.org/thread.html/r6521a7f62276340eabdb3339b2aa9a38c5f59d978497a1f794af53be%40%3Ccvs.httpd.apache.org
https://lists.apache.org/thread.html/r76142b8c5119df2178be7c2dba88fde552eedeec37ea993dfce68d1d%40%3Ccvs.httpd.apache.org

Track CVE-2017-15715 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed9.8CVE-2023-46604Apache ActiveMQ OpenWire deserialization remote code executionThe Java OpenWire protocol marshaller in Apache ActiveMQ deserializes untrusted data, letting an attacker manipulate serialized class types so the br…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2017-15715), CISA KEV, FIRST EPSS (scores of 2026-09-28). This page is refreshed as NVD updates the record.