CVE-2008-7248: Actionpack Improper Input Validation Vulnerability
MODERATECVE-2008-7248 is a MODERATE improper input validation vulnerability (CWE-20: Improper Input Validation) affecting Actionpack libraries in the RubyGems ecosystem. The issue involves improper input validation in actionpack. Remediation is available by upgrading affected packages to version 2.1.3, 2.2.2.
CVE-2008-7248 at a Glance
How to Fix CVE-2008-7248
To remediate this vulnerability, upgrade all affected Actionpack 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 actionpack to 2.1.3
Upgrade actionpack to 2.2.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for actionpack
How to Check if You Are Affected
To determine whether your application is affected by CVE-2008-7248, inspect your project dependencies for Actionpack:
inspect dependencies for actionpack
Analyze the terminal output to locate any version of Actionpack in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.1.3), 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 Actionpack, 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-2008-7248 Affected Actionpack Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
actionpack
|
RubyGems |
≥ 2.1.0
< 2.1.3
|
2.1.3
|
|
actionpack
|
RubyGems |
≥ 2.2.0
< 2.2.2
|
2.2.2
|
References
Frequently Asked Questions
What is CVE-2008-7248?
Which Actionpack versions are affected?
What version fixes CVE-2008-7248?
Is actionpack affected?
What CWE is associated with CVE-2008-7248?
How can I check RubyGems dependencies for CVE-2008-7248?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8fqx-7pv4-3jwm",
"modified" : "2023-05-26T16:54:58Z",
"published" : "2017-10-24T18:33:38Z",
"aliases" : [ "CVE-2008-7248" ],
"summary" : "Improper Input Validation in actionpack",
"details" : "Ruby on Rails 2.1 before 2.1.3 and 2.2.x before 2.2.2 does not verify tokens for requests with certain content types, which allows remote attackers to bypass cross-site request forgery (CSRF) protection for requests to applications that rely on this protection, as demonstrated using text/plain.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "actionpack"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.1.0"
}, {
"fixed" : "2.1.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "actionpack"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.2.0"
}, {
"fixed" : "2.2.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2008-7248"
}, {
"type" : "WEB",
"url" : "https://github.com/rails/rails/commit/099a98e9b7108dae3e0f78b207e0a7dc5913bd1a"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/security/cve/CVE-2008-7248"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=544329"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rails/rails"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2008-7248.yml"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/group/rubyonrails-security/browse_thread/thread/d741ee286e36e301?hl=en"
}, {
"type" : "WEB",
"url" : "https://lists.opensuse.org/opensuse-security-announce/2010-03/msg00004.html"
}, {
"type" : "WEB",
"url" : "https://pseudo-flaw.net/content/web-browsers/form-data-encoding-roundup"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20090906010200/https://www.vupen.com/english/advisories/2009/2544"
}, {
"type" : "WEB",
"url" : "https://weblog.rubyonrails.org/2008/11/18/potential-circumvention-of-csrf-protection-in-rails-2-1"
}, {
"type" : "WEB",
"url" : "https://www.openwall.com/lists/oss-security/2009/11/28/1"
}, {
"type" : "WEB",
"url" : "https://www.openwall.com/lists/oss-security/2009/12/02/2"
}, {
"type" : "WEB",
"url" : "https://www.rorsecurity.info/journal/2008/11/19/circumvent-rails-csrf-protection.html"
}, {
"type" : "WEB",
"url" : "http://groups.google.com/group/rubyonrails-security/browse_thread/thread/d741ee286e36e301?hl=en"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2010-03/msg00004.html"
}, {
"type" : "WEB",
"url" : "http://pseudo-flaw.net/content/web-browsers/form-data-encoding-roundup"
}, {
"type" : "WEB",
"url" : "http://weblog.rubyonrails.org/2008/11/18/potential-circumvention-of-csrf-protection-in-rails-2-1"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2009/11/28/1"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2009/12/02/2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:25:28Z",
"nvd_published_at" : "2009-12-16T01:30:00Z"
}
}