Vulnerabilities in pkg:gem/thin

PACKAGE
Advisory Identifier: GHSA-j24p-r6wx-r79w
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:gem/thin

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:gem/thin. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-j24p-r6wx-r79w CVE-2009-3287 HIGH High severity vulnerability that affects thin

CVE-2009-3287 at a Glance

CVE Identifier CVE-2009-3287
GHSA Identifier GHSA-j24p-r6wx-r79w
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-20: Improper Input Validation
Affected Product Thin
Package Ecosystem RubyGems
Published Date
Last Updated

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.

thin fixed: 1.2.4
Upgrade thin to 1.2.4
Verify Direct and Transitive Dependencies

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

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.

CVE-2009-3287 Affected Thin Versions

1 component(s)
Fixed Versions:
1.2.4
Product / Package Ecosystem Affected Versions Fixed Version
thin
RubyGems
< 1.2.4
1.2.4

References

Frequently Asked Questions

What is CVE-2009-3287?
CVE-2009-3287 is a security vulnerability in Thin involving High severity vulnerability that affects thin under CWE-20: Improper Input Validation.
Which Thin versions are affected?
Affected versions include releases prior to 1.2.4 across affected packages: thin.
What version fixes CVE-2009-3287?
Upgrading to 1.2.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is thin affected?
Yes, thin is affected in releases prior to 1.2.4. Upgrade your dependency to 1.2.4 or later.
What CWE is associated with CVE-2009-3287?
CVE-2009-3287 is classified under CWE-20: Improper Input Validation (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.).
How can I check RubyGems dependencies for CVE-2009-3287?
Run the dependency tree command: 'inspect dependencies for thin'. 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-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"
  }
}