---
id: CVE-2015-5174
title: >-
  Directory traversal vulnerability in RequestUtil.java in Apache Tomcat 6.x
  before 6.0.45, 7.x before 7.0.65, and 8.x before 8.0.27 allows remote
  authenticated users to bypass intended SecurityManager restrictions and list a
  parent direct…
summary: >-
  Directory traversal vulnerability in RequestUtil.java in Apache Tomcat 6.x
  before 6.0.45, 7.x before 7.0.65, and 8.x before 8.0.27 allows remote
  authenticated users to bypass intended SecurityManager restrictions and list a
  parent direct…
severity: medium
cvss: 4.3
cvssVector: 'CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N'
cwe:
  - CWE-22
vendor: apache
product: tomcat
affected:
  - debian_linux = 7.0
  - debian_linux = 8.0
  - tomcat = 6.0.0
  - tomcat = 6.0.1
  - tomcat = 6.0.2
  - tomcat = 6.0.4
  - tomcat = 6.0.10
  - tomcat = 6.0.11
  - tomcat = 6.0.13
  - tomcat = 6.0.14
  - tomcat = 6.0.16
  - tomcat = 6.0.18
  - tomcat = 6.0.20
  - tomcat = 6.0.24
  - tomcat = 6.0.26
  - tomcat = 6.0.28
  - tomcat = 6.0.29
  - tomcat = 6.0.30
  - tomcat = 6.0.32
  - tomcat = 6.0.33
  - tomcat = 6.0.35
  - tomcat = 6.0.36
  - tomcat = 6.0.37
  - tomcat = 6.0.39
  - tomcat = 6.0.41
  - tomcat = 6.0.43
  - tomcat = 6.0.44
  - tomcat = 7.0.0
  - tomcat = 7.0.2
  - tomcat = 7.0.4
  - tomcat = 7.0.5
  - tomcat = 7.0.6
  - tomcat = 7.0.10
  - tomcat = 7.0.11
  - tomcat = 7.0.12
  - tomcat = 7.0.14
  - tomcat = 7.0.16
  - tomcat = 7.0.19
  - tomcat = 7.0.20
  - tomcat = 7.0.21
  - tomcat = 7.0.22
  - tomcat = 7.0.23
  - tomcat = 7.0.25
  - tomcat = 7.0.26
  - tomcat = 7.0.27
  - tomcat = 7.0.28
  - tomcat = 7.0.29
  - tomcat = 7.0.30
  - tomcat = 7.0.32
  - tomcat = 7.0.33
  - tomcat = 7.0.34
  - tomcat = 7.0.35
  - tomcat = 7.0.37
  - tomcat = 7.0.39
  - tomcat = 7.0.40
  - tomcat = 7.0.41
  - tomcat = 7.0.42
  - tomcat = 7.0.47
  - tomcat = 7.0.50
  - tomcat = 7.0.52
  - tomcat = 7.0.53
  - tomcat = 7.0.54
  - tomcat = 7.0.55
  - tomcat = 7.0.56
  - tomcat = 7.0.57
  - tomcat = 7.0.59
  - tomcat = 7.0.61
  - tomcat = 7.0.62
  - tomcat = 7.0.63
  - tomcat = 7.0.64
  - tomcat = 8.0.0
  - tomcat = 8.0.1
  - tomcat = 8.0.11
  - tomcat = 8.0.12
  - tomcat = 8.0.14
  - tomcat = 8.0.15
  - tomcat = 8.0.17
  - tomcat = 8.0.18
  - tomcat = 8.0.20
  - tomcat = 8.0.21
  - tomcat = 8.0.22
  - tomcat = 8.0.23
  - tomcat = 8.0.24
  - tomcat = 8.0.26
  - ubuntu_linux = 12.04
  - ubuntu_linux = 14.04
  - ubuntu_linux = 15.10
  - ubuntu_linux = 16.04
published: '2016-02-25'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T22:17:12.143'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2015-5174'
references:
  - url: 'http://lists.opensuse.org/opensuse-security-announce/2016-03/msg00047.html'
    label: secalert@redhat.com
  - url: 'http://lists.opensuse.org/opensuse-security-announce/2016-03/msg00069.html'
    label: secalert@redhat.com
  - url: 'http://lists.opensuse.org/opensuse-security-announce/2016-03/msg00082.html'
    label: secalert@redhat.com
  - url: 'http://lists.opensuse.org/opensuse-security-announce/2016-03/msg00085.html'
    label: secalert@redhat.com
  - url: 'http://marc.info/?l=bugtraq&m=145974991225029&w=2'
    label: secalert@redhat.com
  - url: >-
      http://packetstormsecurity.com/files/135883/Apache-Tomcat-Limited-Directory-Traversal.html
    label: secalert@redhat.com
  - url: 'http://rhn.redhat.com/errata/RHSA-2016-1435.html'
    label: secalert@redhat.com
  - url: 'http://rhn.redhat.com/errata/RHSA-2016-2045.html'
    label: secalert@redhat.com
  - url: 'http://rhn.redhat.com/errata/RHSA-2016-2599.html'
    label: secalert@redhat.com
  - url: 'http://seclists.org/bugtraq/2016/Feb/149'
    label: secalert@redhat.com
  - url: 'http://svn.apache.org/viewvc?view=revision&revision=1696281'
    label: secalert@redhat.com
  - url: 'http://svn.apache.org/viewvc?view=revision&revision=1696284'
    label: secalert@redhat.com
  - url: 'http://svn.apache.org/viewvc?view=revision&revision=1700897'
    label: secalert@redhat.com
  - url: 'http://svn.apache.org/viewvc?view=revision&revision=1700898'
    label: secalert@redhat.com
  - url: 'http://svn.apache.org/viewvc?view=revision&revision=1700900'
    label: secalert@redhat.com
  - url: 'http://tomcat.apache.org/security-6.html'
    label: secalert@redhat.com
  - url: 'http://tomcat.apache.org/security-7.html'
    label: secalert@redhat.com
  - url: 'http://tomcat.apache.org/security-8.html'
    label: secalert@redhat.com
  - url: 'http://www.debian.org/security/2016/dsa-3530'
    label: secalert@redhat.com
  - url: 'http://www.debian.org/security/2016/dsa-3552'
    label: secalert@redhat.com
  - url: 'http://www.debian.org/security/2016/dsa-3609'
    label: secalert@redhat.com
  - url: >-
      http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html
    label: secalert@redhat.com
  - url: >-
      http://www.oracle.com/technetwork/topics/security/linuxbulletinoct2016-3090545.html
    label: secalert@redhat.com
  - url: 'http://www.securityfocus.com/bid/83329'
    label: secalert@redhat.com
  - url: 'http://www.securitytracker.com/id/1035070'
    label: secalert@redhat.com
  - url: 'http://www.ubuntu.com/usn/USN-3024-1'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2016:1432'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2016:1433'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2016:1434'
    label: secalert@redhat.com
  - url: 'https://bto.bluecoat.com/security-advisory/sa118'
    label: secalert@redhat.com
  - url: >-
      https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05054964
    label: secalert@redhat.com
  - url: >-
      https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05150442
    label: secalert@redhat.com
  - url: >-
      https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05158626
    label: secalert@redhat.com
  - url: >-
      https://lists.apache.org/thread.html/37220405a377c0182d2afdbc36461c4783b2930fbeae3a17f1333113%40%3Cdev.tomcat.apache.org%3E
    label: secalert@redhat.com
  - url: >-
      https://lists.apache.org/thread.html/39ae1f0bd5867c15755a6f959b271ade1aea04ccdc3b2e639dcd903b%40%3Cdev.tomcat.apache.org%3E
    label: secalert@redhat.com
  - url: >-
      https://lists.apache.org/thread.html/b84ad1258a89de5c9c853c7f2d3ad77e5b8b2930be9e132d5cef6b95%40%3Cdev.tomcat.apache.org%3E
    label: secalert@redhat.com
  - url: >-
      https://lists.apache.org/thread.html/b8a1bf18155b552dcf9a928ba808cbadad84c236d85eab3033662cfb%40%3Cdev.tomcat.apache.org%3E
    label: secalert@redhat.com
  - url: >-
      https://lists.apache.org/thread.html/r03c597a64de790ba42c167efacfa23300c3d6c9fe589ab87fe02859c%40%3Cdev.tomcat.apache.org%3E
    label: secalert@redhat.com
  - url: >-
      https://lists.apache.org/thread.html/r0b24f2c7507f702348e2c2d64e8a5de72bad6173658e8d8e45322ac2%40%3Cusers.tomcat.apache.org%3E
    label: secalert@redhat.com
  - url: >-
      https://lists.apache.org/thread.html/r15695e6203b026c9e9070ca9fa95fb17dd4cd88e5342a7dc5e1e7b85%40%3Cusers.tomcat.apache.org%3E
    label: secalert@redhat.com
  - url: >-
      https://lists.apache.org/thread.html/r1c62634b7426bee5f553307063457b99c84af73b078ede4f2592b34e%40%3Cusers.tomcat.apache.org%3E
    label: secalert@redhat.com
  - url: >-
      https://lists.apache.org/thread.html/r409efdf706c2077ae5c37018a87da725a3ca89570a9530342cdc53e4%40%3Cusers.tomcat.apache.org%3E
    label: secalert@redhat.com
  - url: >-
      https://lists.apache.org/thread.html/r587e50b86c1a96ee301f751d50294072d142fd6dc08a8987ae9f3a9b%40%3Cdev.tomcat.apache.org%3E
    label: secalert@redhat.com
  - url: >-
      https://lists.apache.org/thread.html/r9136ff5b13e4f1941360b5a309efee2c114a14855578c3a2cbe5d19c%40%3Cdev.tomcat.apache.org%3E
    label: secalert@redhat.com
  - url: >-
      https://lists.apache.org/thread.html/rd4863c79bf729aabb95571fd845a9ea4ee3ae3fcee48f35aba007350%40%3Cusers.tomcat.apache.org%3E
    label: secalert@redhat.com
  - url: 'https://security.gentoo.org/glsa/201705-09'
    label: secalert@redhat.com
  - url: 'https://security.netapp.com/advisory/ntap-20180531-0001/'
    label: secalert@redhat.com
  - url: 'http://lists.opensuse.org/opensuse-security-announce/2016-03/msg00047.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://lists.opensuse.org/opensuse-security-announce/2016-03/msg00069.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://lists.opensuse.org/opensuse-security-announce/2016-03/msg00082.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://lists.opensuse.org/opensuse-security-announce/2016-03/msg00085.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://marc.info/?l=bugtraq&m=145974991225029&w=2'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      http://packetstormsecurity.com/files/135883/Apache-Tomcat-Limited-Directory-Traversal.html
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://rhn.redhat.com/errata/RHSA-2016-1435.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://rhn.redhat.com/errata/RHSA-2016-2045.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://rhn.redhat.com/errata/RHSA-2016-2599.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://seclists.org/bugtraq/2016/Feb/149'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://svn.apache.org/viewvc?view=revision&revision=1696281'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://svn.apache.org/viewvc?view=revision&revision=1696284'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://svn.apache.org/viewvc?view=revision&revision=1700897'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://svn.apache.org/viewvc?view=revision&revision=1700898'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://svn.apache.org/viewvc?view=revision&revision=1700900'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://tomcat.apache.org/security-6.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://tomcat.apache.org/security-7.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://tomcat.apache.org/security-8.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://www.debian.org/security/2016/dsa-3530'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://www.debian.org/security/2016/dsa-3552'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://www.debian.org/security/2016/dsa-3609'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      http://www.oracle.com/technetwork/topics/security/linuxbulletinoct2016-3090545.html
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://www.securityfocus.com/bid/83329'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://www.securitytracker.com/id/1035070'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://www.ubuntu.com/usn/USN-3024-1'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2016:1432'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2016:1433'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2016:1434'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://bto.bluecoat.com/security-advisory/sa118'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05054964
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05150442
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05158626
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.apache.org/thread.html/37220405a377c0182d2afdbc36461c4783b2930fbeae3a17f1333113%40%3Cdev.tomcat.apache.org%3E
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.apache.org/thread.html/39ae1f0bd5867c15755a6f959b271ade1aea04ccdc3b2e639dcd903b%40%3Cdev.tomcat.apache.org%3E
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.apache.org/thread.html/b84ad1258a89de5c9c853c7f2d3ad77e5b8b2930be9e132d5cef6b95%40%3Cdev.tomcat.apache.org%3E
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.apache.org/thread.html/b8a1bf18155b552dcf9a928ba808cbadad84c236d85eab3033662cfb%40%3Cdev.tomcat.apache.org%3E
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.apache.org/thread.html/r03c597a64de790ba42c167efacfa23300c3d6c9fe589ab87fe02859c%40%3Cdev.tomcat.apache.org%3E
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.apache.org/thread.html/r0b24f2c7507f702348e2c2d64e8a5de72bad6173658e8d8e45322ac2%40%3Cusers.tomcat.apache.org%3E
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.apache.org/thread.html/r15695e6203b026c9e9070ca9fa95fb17dd4cd88e5342a7dc5e1e7b85%40%3Cusers.tomcat.apache.org%3E
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.apache.org/thread.html/r1c62634b7426bee5f553307063457b99c84af73b078ede4f2592b34e%40%3Cusers.tomcat.apache.org%3E
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.apache.org/thread.html/r409efdf706c2077ae5c37018a87da725a3ca89570a9530342cdc53e4%40%3Cusers.tomcat.apache.org%3E
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.apache.org/thread.html/r587e50b86c1a96ee301f751d50294072d142fd6dc08a8987ae9f3a9b%40%3Cdev.tomcat.apache.org%3E
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.apache.org/thread.html/r9136ff5b13e4f1941360b5a309efee2c114a14855578c3a2cbe5d19c%40%3Cdev.tomcat.apache.org%3E
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.apache.org/thread.html/rd4863c79bf729aabb95571fd845a9ea4ee3ae3fcee48f35aba007350%40%3Cusers.tomcat.apache.org%3E
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.gentoo.org/glsa/201705-09'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.netapp.com/advisory/ntap-20180531-0001/'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
epss: 0.12555
epssPercentile: 0.96182
ingestedAt: '2026-10-14T23:00:01.998Z'
---

## Overview

Directory traversal vulnerability in RequestUtil.java in Apache Tomcat 6.x before 6.0.45, 7.x before 7.0.65, and 8.x before 8.0.27 allows remote authenticated users to bypass intended SecurityManager restrictions and list a parent directory via a /.. (slash dot dot) in a pathname used by a web application in a getResource, getResourceAsStream, or getResourcePaths call, as demonstrated by the $CATALINA_BASE/webapps directory.

## Affected

- `debian_linux = 7.0`
- `debian_linux = 8.0`
- `tomcat = 6.0.0`
- `tomcat = 6.0.1`
- `tomcat = 6.0.2`
- `tomcat = 6.0.4`
- `tomcat = 6.0.10`
- `tomcat = 6.0.11`
- `tomcat = 6.0.13`
- `tomcat = 6.0.14`
- `tomcat = 6.0.16`
- `tomcat = 6.0.18`
- `tomcat = 6.0.20`
- `tomcat = 6.0.24`
- `tomcat = 6.0.26`
- `tomcat = 6.0.28`
- `tomcat = 6.0.29`
- `tomcat = 6.0.30`
- `tomcat = 6.0.32`
- `tomcat = 6.0.33`
- `tomcat = 6.0.35`
- `tomcat = 6.0.36`
- `tomcat = 6.0.37`
- `tomcat = 6.0.39`
- `tomcat = 6.0.41`
- `tomcat = 6.0.43`
- `tomcat = 6.0.44`
- `tomcat = 7.0.0`
- `tomcat = 7.0.2`
- `tomcat = 7.0.4`
- `tomcat = 7.0.5`
- `tomcat = 7.0.6`
- `tomcat = 7.0.10`
- `tomcat = 7.0.11`
- `tomcat = 7.0.12`
- `tomcat = 7.0.14`
- `tomcat = 7.0.16`
- `tomcat = 7.0.19`
- `tomcat = 7.0.20`
- `tomcat = 7.0.21`
- `tomcat = 7.0.22`
- `tomcat = 7.0.23`
- `tomcat = 7.0.25`
- `tomcat = 7.0.26`
- `tomcat = 7.0.27`
- `tomcat = 7.0.28`
- `tomcat = 7.0.29`
- `tomcat = 7.0.30`
- `tomcat = 7.0.32`
- `tomcat = 7.0.33`
- `tomcat = 7.0.34`
- `tomcat = 7.0.35`
- `tomcat = 7.0.37`
- `tomcat = 7.0.39`
- `tomcat = 7.0.40`
- `tomcat = 7.0.41`
- `tomcat = 7.0.42`
- `tomcat = 7.0.47`
- `tomcat = 7.0.50`
- `tomcat = 7.0.52`
- `tomcat = 7.0.53`
- `tomcat = 7.0.54`
- `tomcat = 7.0.55`
- `tomcat = 7.0.56`
- `tomcat = 7.0.57`
- `tomcat = 7.0.59`
- `tomcat = 7.0.61`
- `tomcat = 7.0.62`
- `tomcat = 7.0.63`
- `tomcat = 7.0.64`
- `tomcat = 8.0.0`
- `tomcat = 8.0.1`
- `tomcat = 8.0.11`
- `tomcat = 8.0.12`
- `tomcat = 8.0.14`
- `tomcat = 8.0.15`
- `tomcat = 8.0.17`
- `tomcat = 8.0.18`
- `tomcat = 8.0.20`
- `tomcat = 8.0.21`
- `tomcat = 8.0.22`
- `tomcat = 8.0.23`
- `tomcat = 8.0.24`
- `tomcat = 8.0.26`
- `ubuntu_linux = 12.04`
- `ubuntu_linux = 14.04`
- `ubuntu_linux = 15.10`
- `ubuntu_linux = 16.04`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
