CVE-2017-11173: Rack cors Missing Regex Anchor Vulnerability
HIGHCVE-2017-11173 is a HIGH (CVSS 8.8) missing regex anchor vulnerability (General Security Weakness) affecting Rack cors libraries in the RubyGems ecosystem. The issue involves missing regex anchor in rack-cors allows malicious third party site to perform cors request. Remediation is available by upgrading affected packages to version 0.4.1.
CVE-2017-11173 at a Glance
Security Impact
CVSS: 8.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).
How to Fix CVE-2017-11173
To remediate this vulnerability, upgrade all affected Rack cors 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 rack-cors to 0.4.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for rack-cors
How to Check if You Are Affected
To determine whether your application is affected by CVE-2017-11173, inspect your project dependencies for Rack cors:
inspect dependencies for rack-cors
Analyze the terminal output to locate any version of Rack cors in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.4.1), 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 General Security Weakness. In Rack cors, 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-2017-11173 Affected Rack cors Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
rack-cors
|
RubyGems |
< 0.4.1
|
0.4.1
|
References
Frequently Asked Questions
What is CVE-2017-11173?
Which Rack cors versions are affected?
What version fixes CVE-2017-11173?
Is rack-cors affected?
What is the CVSS score of CVE-2017-11173?
What CWE is associated with CVE-2017-11173?
How can I check RubyGems dependencies for CVE-2017-11173?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2j9c-9vmv-7m39",
"modified" : "2023-09-05T21:45:13Z",
"published" : "2018-07-31T18:18:39Z",
"aliases" : [ "CVE-2017-11173" ],
"summary" : "Missing Regex anchor in Rack-Cors allows malicious third party site to perform CORS request",
"details" : "Missing anchor in generated regex for rack-cors before 0.4.1 allows a malicious third-party site to perform CORS requests. If the configuration were intended to allow only the trusted `example.com` domain name and not the malicious `example.net` domain name, then `example.com.example.net` (as well as `example.com-example.net`) would be inadvertently allowed.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "rack-cors"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.4.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-11173"
}, {
"type" : "WEB",
"url" : "https://github.com/cyu/rack-cors/commit/42ebe6caa8e85ffa9c8a171bda668ba1acc7a5e6"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/cyu/rack-cors"
}, {
"type" : "WEB",
"url" : "https://packetstormsecurity.com/files/143345/rack-cors-Missing-Anchor.html"
}, {
"type" : "WEB",
"url" : "http://seclists.org/fulldisclosure/2017/Jul/22"
}, {
"type" : "WEB",
"url" : "http://www.debian.org/security/2017/dsa-3931"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T20:52:24Z",
"nvd_published_at" : null
}
}