CVE-2020-26223: Spree api Authorization Bypass Vulnerability
HIGHCVE-2020-26223 is a HIGH (CVSS 7.7) authorization bypass vulnerability (CWE-863: Incorrect Authorization) affecting Spree api libraries in the RubyGems ecosystem. The issue involves authorization bypass in spree. Remediation is available by upgrading affected packages to version 3.7.13, 4.0.5, 4.1.12.
CVE-2020-26223 at a Glance
Security Impact
CVSS: 7.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N).
How to Fix CVE-2020-26223
To remediate this vulnerability, upgrade all affected Spree api 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 spree_api to 3.7.13
Upgrade spree_api to 4.0.5
Upgrade spree_api to 4.1.12
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for spree_api
How to Check if You Are Affected
To determine whether your application is affected by CVE-2020-26223, inspect your project dependencies for Spree api:
inspect dependencies for spree_api
Analyze the terminal output to locate any version of Spree api in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.7.13), 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-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In Spree api, 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-2020-26223 Affected Spree api Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
spree_api
|
RubyGems |
≥ 3.7.0
< 3.7.13
|
3.7.13
|
|
spree_api
|
RubyGems |
≥ 4.0.0
< 4.0.5
|
4.0.5
|
|
spree_api
|
RubyGems |
≥ 4.1.0
< 4.1.12
|
4.1.12
|
References
Frequently Asked Questions
What is CVE-2020-26223?
Which Spree api versions are affected?
What version fixes CVE-2020-26223?
Is spree_api affected?
What is the CVSS score of CVE-2020-26223?
What CWE is associated with CVE-2020-26223?
How can I check RubyGems dependencies for CVE-2020-26223?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-m2jr-hmc3-qmpr",
"modified" : "2023-05-16T16:19:18Z",
"published" : "2020-11-13T17:18:22Z",
"aliases" : [ "CVE-2020-26223" ],
"summary" : "Authorization bypass in Spree",
"details" : "### Impact\nThe perpetrator could query the [API v2 Order Status](https://guides.spreecommerce.org/api/v2/storefront#tag/Order-Status) endpoint with an empty string passed as an Order token\n\n### Patches\nPlease upgrade to 3.7.11, 4.0.4, or 4.1.11 depending on your used Spree version. Users of Spree < 3.7 are not affected.\n\n### References\nPull request with a fix and in-depth explanation - https://github.com/spree/spree/pull/10573\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email us at [security@spreecommerce.org](mailto:security@spreecommerce.org)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "spree_api"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.7.0"
}, {
"fixed" : "3.7.13"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "spree_api"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.0.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "spree_api"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.1.0"
}, {
"fixed" : "4.1.12"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/spree/spree/security/advisories/GHSA-m2jr-hmc3-qmpr"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-26223"
}, {
"type" : "WEB",
"url" : "https://github.com/spree/spree/pull/10573"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/spree_api/CVE-2020-26223.yml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/spree/spree"
}, {
"type" : "WEB",
"url" : "https://guides.spreecommerce.org/api/v2/storefront#tag/Order-Status"
}, {
"type" : "WEB",
"url" : "https://rubygems.org/gems/spree_api/versions"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-863" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-11-13T17:18:00Z",
"nvd_published_at" : null
}
}