CVE-2013-1801: Httparty HTTParty Does Not Restrict Casts Vulnerability
HIGHCVE-2013-1801 is a HIGH httparty does not restrict casts vulnerability (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')) affecting Httparty libraries in the RubyGems ecosystem. The issue involves httparty does not restrict casts of string values. Remediation is available by upgrading affected packages to version 0.10.0.
CVE-2013-1801 at a Glance
How to Fix CVE-2013-1801
To remediate this vulnerability, upgrade all affected Httparty 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 httparty to 0.10.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for httparty
How to Check if You Are Affected
To determine whether your application is affected by CVE-2013-1801, inspect your project dependencies for Httparty:
inspect dependencies for httparty
Analyze the terminal output to locate any version of Httparty in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.10.0), 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-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'), where the product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component. In Httparty, 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-2013-1801 Affected Httparty Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
httparty
|
RubyGems |
< 0.10.0
|
0.10.0
|
References
Frequently Asked Questions
What is CVE-2013-1801?
Which Httparty versions are affected?
What version fixes CVE-2013-1801?
Is httparty affected?
What CWE is associated with CVE-2013-1801?
How can I check RubyGems dependencies for CVE-2013-1801?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mgx3-27hr-mfgp",
"modified" : "2023-03-14T20:47:11Z",
"published" : "2017-10-24T18:33:37Z",
"aliases" : [ "CVE-2013-1801" ],
"summary" : "HTTParty does not restrict casts of string values",
"details" : "The httparty gem 0.9.0 and earlier for Ruby does not properly restrict casts of string values, which might allow remote attackers to conduct object-injection attacks and execute arbitrary code, or cause a denial of service (memory and CPU consumption) by leveraging Action Pack support for YAML type conversion, a similar vulnerability to CVE-2013-0156.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "httparty"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.10.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.9.0"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-1801"
}, {
"type" : "WEB",
"url" : "https://github.com/jnunemaker/httparty/commit/53a812426dd32108d6cba4272b493aa03bc8c031"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=917229"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/jnunemaker/httparty"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/httparty/CVE-2013-1801.yml"
}, {
"type" : "WEB",
"url" : "https://support.cloud.engineyard.com/entries/22915701-january-14-2013-security-vulnerabilities-httparty-extlib-crack-nori-update-these-gems-immediately"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20200229101716/http://www.securityfocus.com/bid/58260"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-74" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:46:12Z",
"nvd_published_at" : "2013-04-09T20:55:01Z"
}
}