Skip to content

Mongrel vulnerable to directory traversal via double-encoded sequences

Moderate severity GitHub Reviewed Published May 1, 2022 to the GitHub Advisory Database • Updated Sep 21, 2023

Package

bundler mongrel (RubyGems)

Affected versions

= 1.0.4
>= 1.1.0, < 1.1.3

Patched versions

1.0.5
1.1.3

Description

Directory traversal vulnerability in DirHandler (lib/mongrel/handlers.rb) in Mongrel 1.0.4 (1.0.3 and prior are not affected) and 1.1.x before 1.1.3 allows remote attackers to read arbitrary files via an HTTP request containing double-encoded sequences (.%252e).

References

Published by the National Vulnerability Database Jan 3, 2008
Published to the GitHub Advisory Database May 1, 2022
Reviewed Sep 21, 2023
Last updated Sep 21, 2023

Severity

Moderate

EPSS score

Exploit Prediction Scoring System (EPSS)

This score estimates the probability of this vulnerability being exploited within the next 30 days. Data provided by FIRST.
(84th percentile)

Weaknesses

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. Learn more on MITRE.

CVE ID

CVE-2007-6612

GHSA ID

GHSA-m7r6-43v2-49vf

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.