CVE-2020-15223: Github.com/ory/fosite Ory Fosite Contains Improper Handling Vulnerability

HIGH
Advisory Identifier: GHSA-7mqr-2v3q-v2wm
CVSS 8.0
CWE-755 CWE-754
Published
Advisory Summary

CVE-2020-15223 is a HIGH (CVSS 8.0) ory fosite contains improper handling vulnerability (CWE-755: Improper Handling of Exceptional Conditions) affecting Github.com/ory/fosite libraries in the Go ecosystem. The issue involves ory fosite contains improper handling of exceptional conditions. Remediation is available by upgrading affected packages to version 0.34.0.

CVE-2020-15223 at a Glance

CVE Identifier CVE-2020-15223
GHSA Identifier GHSA-7mqr-2v3q-v2wm
Severity HIGH
CVSS v3.1 Base Score 8.0
CWE Classification CWE-755: Improper Handling of Exceptional Conditions
Affected Product Github.com/ory/fosite
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 8.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2020-15223

To remediate this vulnerability, upgrade all affected Github.com/ory/fosite dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/ory/fosite fixed: 0.34.0
Upgrade github.com/ory/fosite to 0.34.0
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 github.com/ory/fosite

How to Check if You Are Affected

To determine whether your application is affected by CVE-2020-15223, inspect your project dependencies for Github.com/ory/fosite:

inspect dependencies for github.com/ory/fosite

Analyze the terminal output to locate any version of Github.com/ory/fosite in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.34.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-755: Improper Handling of Exceptional Conditions, where the product does not handle or incorrectly handles an exceptional condition. In Github.com/ory/fosite, 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

### Impact The `TokenRevocationHandler` ignores errors coming from the storage. This can lead to unexpected 200 status codes indicating successful revocation while the token is still valid. Whether an attacker can use this for her advantage depends on the ability to trigger errors in the store. ### References [RFC 7009](https://tools.ietf.org/html/rfc7009#section-2.2.1) states that a 503 HTTP code must be returned when the server has a problem.

CVE-2020-15223 Affected Github.com/ory/fosite Versions

1 component(s)
Fixed Versions:
0.34.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/ory/fosite
Go
< 0.34.0
0.34.0

References

Frequently Asked Questions

What is CVE-2020-15223?
CVE-2020-15223 is a security vulnerability in Github.com/ory/fosite involving Ory fosite contains Improper Handling of Exceptional Conditions under CWE-755: Improper Handling of Exceptional Conditions.
Which Github.com/ory/fosite versions are affected?
Affected versions include releases prior to 0.34.0 across affected packages: github.com/ory/fosite.
What version fixes CVE-2020-15223?
Upgrading to 0.34.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/ory/fosite affected?
Yes, github.com/ory/fosite is affected in releases prior to 0.34.0. Upgrade your dependency to 0.34.0 or later.
What is the CVSS score of CVE-2020-15223?
CVE-2020-15223 has a CVSS v3.1 base score of 8.0 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N.
What CWE is associated with CVE-2020-15223?
CVE-2020-15223 is classified under CWE-755: Improper Handling of Exceptional Conditions (The product does not handle or incorrectly handles an exceptional condition.).
How can I check Go dependencies for CVE-2020-15223?
Run the dependency tree command: 'inspect dependencies for github.com/ory/fosite'. 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-7mqr-2v3q-v2wm",
  "modified" : "2023-02-14T00:21:03Z",
  "published" : "2021-05-24T16:57:39Z",
  "aliases" : [ "CVE-2020-15223" ],
  "summary" : "Ory fosite contains Improper Handling of Exceptional Conditions ",
  "details" : "### Impact\nThe `TokenRevocationHandler` ignores errors coming from the storage. This can lead to unexpected 200 status codes indicating successful revocation while the token is still valid. Whether an attacker can use this for her advantage depends on the ability to trigger errors in the store.\n\n### References\n[RFC 7009](https://tools.ietf.org/html/rfc7009#section-2.2.1) states that a 503 HTTP code must be returned when the server has a problem.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/ory/fosite"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.34.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ory/fosite/security/advisories/GHSA-7mqr-2v3q-v2wm"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-15223"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ory/fosite/commit/03dd55813f5521985f7dd64277b7ba0cf1441319"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2021-0109"
  }, {
    "type" : "WEB",
    "url" : "https://tools.ietf.org/html/rfc7009#section-2.2.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-754", "CWE-755" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-05-24T12:53:07Z",
    "nvd_published_at" : "2020-09-24T17:15:00Z"
  }
}