CVE-2008-1145: Software Security Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-f279-rf2r-m6m5
CWE-22
Published
Advisory Summary

CVE-2008-1145 is a MODERATE security vulnerability vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Software libraries in the Maven ecosystem. The weakness occurs when the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.. Remediation is available in the latest vendor maintenance releases.

CVE-2008-1145 at a Glance

CVE Identifier CVE-2008-1145
GHSA Identifier GHSA-f279-rf2r-m6m5
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Software
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2008-1145

To remediate this vulnerability, upgrade all affected Software dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2008-1145, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree

Analyze the terminal output to locate any version of Software in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The mvn dependency:tree command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Software, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Directory traversal vulnerability in WEBrick in Ruby 1.8 before 1.8.5-p115 and 1.8.6-p114, and 1.9 through 1.9.0-1, when running on systems that support backslash (\) path separators or case-insensitive file names, allows remote attackers to access arbitrary files via (1) "..%5c" (encoded backslash) sequences or (2) filenames that match patterns in the :NondisclosureName option.

References

secunia.com/advisories/31687 WEB
http://secunia.com/advisories/31687
NVD — CVE-2008-1145 NVD
https://nvd.nist.gov/vuln/detail/CVE-2008-1145
exchange.xforce.ibmcloud.com/vulnerabilities/410... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/41010
issues.rpath.com/browse/rpl-2338 WEB
https://issues.rpath.com/browse/RPL-2338
www.exploit-db.com/exploits/5215 WEB
https://www.exploit-db.com/exploits/5215
Software Security Information SECURITY
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10937
www.redhat.com/archives/fedora-pac... WEB
https://www.redhat.com/archives/fedora-package-announce/2008-March/msg00338.html
www.redhat.com/archives/fedora-pac... WEB
https://www.redhat.com/archives/fedora-package-announce/2008-March/msg00354.html
Software Security Information SECURITY
http://lists.apple.com/archives/security-announce/2008//Jun/msg00002.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2008-08/msg00006.html
secunia.com/advisories/29232 WEB
http://secunia.com/advisories/29232
secunia.com/advisories/29357 WEB
http://secunia.com/advisories/29357
secunia.com/advisories/29536 WEB
http://secunia.com/advisories/29536
secunia.com/advisories/30802 WEB
http://secunia.com/advisories/30802
secunia.com/advisories/32371 WEB
http://secunia.com/advisories/32371
support.apple.com/kb/ht2163 WEB
http://support.apple.com/kb/HT2163
wiki.rpath.com/advisories:rpsa-200... WEB
http://wiki.rpath.com/Advisories:rPSA-2008-0123
wiki.rpath.com/wiki/advisories:rps... WEB
http://wiki.rpath.com/wiki/Advisories:rPSA-2008-0123
www.kb.cert.org/vuls/id/404515 WEB
http://www.kb.cert.org/vuls/id/404515
Software Security Information SECURITY
http://www.mandriva.com/security/advisories?name=MDVSA-2008:141
Software Security Information SECURITY
http://www.mandriva.com/security/advisories?name=MDVSA-2008:142
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2008-0897.html
www.ruby-lang.org/en/news/2008/03/03/... WEB
http://www.ruby-lang.org/en/news/2008/03/03/webrick-file-access-vulnerability
Software Security Information SECURITY
http://www.securityfocus.com/archive/1/489205/100/0/threaded
Software Security Information SECURITY
http://www.securityfocus.com/archive/1/489218/100/0/threaded
Software Security Information SECURITY
http://www.securityfocus.com/archive/1/490056/100/0/threaded
Software Security Information SECURITY
http://www.securityfocus.com/bid/28123
Software Security Information SECURITY
http://www.securitytracker.com/id?1019562
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2008/0787
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2008/1981/references

Frequently Asked Questions

What is CVE-2008-1145?
CVE-2008-1145 is a security vulnerability in Software classified as a security vulnerability vulnerability under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Software versions are affected?
Affected versions include releases prior to current release patches.
What version fixes CVE-2008-1145?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What CWE is associated with CVE-2008-1145?
CVE-2008-1145 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check Maven dependencies for CVE-2008-1145?
Run the dependency tree command: 'mvn dependency:tree'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-f279-rf2r-m6m5",
  "modified" : "2025-04-09T03:52:07Z",
  "published" : "2022-05-01T23:36:53Z",
  "aliases" : [ "CVE-2008-1145" ],
  "details" : "Directory traversal vulnerability in WEBrick in Ruby 1.8 before 1.8.5-p115 and 1.8.6-p114, and 1.9 through 1.9.0-1, when running on systems that support backslash (\\) path separators or case-insensitive file names, allows remote attackers to access arbitrary files via (1) \"..%5c\" (encoded backslash) sequences or (2) filenames that match patterns in the :NondisclosureName option.",
  "severity" : [ ],
  "affected" : [ ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2008-1145"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/41010"
  }, {
    "type" : "WEB",
    "url" : "https://issues.rpath.com/browse/RPL-2338"
  }, {
    "type" : "WEB",
    "url" : "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10937"
  }, {
    "type" : "WEB",
    "url" : "https://www.exploit-db.com/exploits/5215"
  }, {
    "type" : "WEB",
    "url" : "https://www.redhat.com/archives/fedora-package-announce/2008-March/msg00338.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.redhat.com/archives/fedora-package-announce/2008-March/msg00354.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.apple.com/archives/security-announce/2008//Jun/msg00002.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2008-08/msg00006.html"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/29232"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/29357"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/29536"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/30802"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/31687"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/32371"
  }, {
    "type" : "WEB",
    "url" : "http://support.apple.com/kb/HT2163"
  }, {
    "type" : "WEB",
    "url" : "http://wiki.rpath.com/Advisories:rPSA-2008-0123"
  }, {
    "type" : "WEB",
    "url" : "http://wiki.rpath.com/wiki/Advisories:rPSA-2008-0123"
  }, {
    "type" : "WEB",
    "url" : "http://www.kb.cert.org/vuls/id/404515"
  }, {
    "type" : "WEB",
    "url" : "http://www.mandriva.com/security/advisories?name=MDVSA-2008:141"
  }, {
    "type" : "WEB",
    "url" : "http://www.mandriva.com/security/advisories?name=MDVSA-2008:142"
  }, {
    "type" : "WEB",
    "url" : "http://www.redhat.com/support/errata/RHSA-2008-0897.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.ruby-lang.org/en/news/2008/03/03/webrick-file-access-vulnerability"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/archive/1/489205/100/0/threaded"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/archive/1/489218/100/0/threaded"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/archive/1/490056/100/0/threaded"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/28123"
  }, {
    "type" : "WEB",
    "url" : "http://www.securitytracker.com/id?1019562"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2008/0787"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2008/1981/references"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "MODERATE",
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2008-03-04T23:44:00Z"
  }
}