CVE-2009-3287: Thin High Severity Vulnerability That Affects Vulnerability
HIGHCVE-2009-3287 is a HIGH high severity vulnerability that affects vulnerability (CWE-20: Improper Input Validation) affecting Thin libraries in the RubyGems ecosystem. The issue involves high severity vulnerability that affects thin. Remediation is available by upgrading affected packages to version 1.2.4.
CVE-2009-3287 at a Glance
How to Fix CVE-2009-3287
To remediate this vulnerability, upgrade all affected Thin dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade thin to 1.2.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for thin
How to Check if You Are Affected
To determine whether your application is affected by CVE-2009-3287, inspect your project dependencies for Thin:
inspect dependencies for thin
Analyze the terminal output to locate any version of Thin in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.4), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Thin, 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
CVE-2009-3287 Affected Thin Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
thin
|
RubyGems |
< 1.2.4
|
1.2.4
|
References
Frequently Asked Questions
What is CVE-2009-3287?
Which Thin versions are affected?
What version fixes CVE-2009-3287?
Is thin affected?
What CWE is associated with CVE-2009-3287?
How can I check RubyGems dependencies for CVE-2009-3287?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-j24p-r6wx-r79w",
"modified" : "2021-09-14T18:09:44Z",
"published" : "2017-10-24T18:33:38Z",
"aliases" : [ "CVE-2009-3287" ],
"summary" : "High severity vulnerability that affects thin",
"details" : "lib/thin/connection.rb in Thin web server before 1.2.4 relies on the X-Forwarded-For header to determine the IP address of the client, which allows remote attackers to spoof the IP address and hide activities via a modified X-Forwarded-For header.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "thin"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.2.4"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2009-3287"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-j24p-r6wx-r79w"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/thin/CVE-2009-3287.yml"
}, {
"type" : "PACKAGE",
"url" : "http://github.com/macournoyer/thin"
}, {
"type" : "WEB",
"url" : "http://github.com/macournoyer/thin/blob/master/CHANGELOG"
}, {
"type" : "WEB",
"url" : "http://github.com/macournoyer/thin/commit/7bd027914c5ffd36bb408ef47dc749de3b6e063a"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2009/09/12/1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:41:36Z",
"nvd_published_at" : "2009-09-22T10:30:00Z"
}
}