CVE-2021-39880: Apollo upload server Denial of Service Vulnerability

MODERATE
Advisory Identifier: GHSA-w6pv-c757-6rgr
CVSS 6.5
Published
Advisory Summary

CVE-2021-39880 is a MODERATE (CVSS 6.5) denial of service vulnerability (General Security Weakness) affecting Apollo upload server libraries in the RubyGems ecosystem. The issue involves apollo_upload_server has denial of service vulnerability. Remediation is available by upgrading affected packages to version 2.1.0.

CVE-2021-39880 at a Glance

CVE Identifier CVE-2021-39880
GHSA Identifier GHSA-w6pv-c757-6rgr
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification General Security Weakness
Affected Product Apollo upload server
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 6.5

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:U/C:N/I:N/A:H).

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

How to Fix CVE-2021-39880

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

apollo_upload_server fixed: 2.1.0
Upgrade apollo_upload_server to 2.1.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 apollo_upload_server

How to Check if You Are Affected

To determine whether your application is affected by CVE-2021-39880, inspect your project dependencies for Apollo upload server:

inspect dependencies for apollo_upload_server

Analyze the terminal output to locate any version of Apollo upload server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.1.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 General Security Weakness. In Apollo upload server, 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

A Denial Of Service vulnerability in the apollo_upload_server Ruby gem in GitLab CE/EE version 11.11 and above allows an attacker to deny access to all users via specially crafted requests to the apollo_upload_server middleware.

CVE-2021-39880 Affected Apollo upload server Versions

1 component(s)
Fixed Versions:
2.1.0
Product / Package Ecosystem Affected Versions Fixed Version
apollo_upload_server
RubyGems
< 2.1.0
2.1.0

References

Frequently Asked Questions

What is CVE-2021-39880?
CVE-2021-39880 is a security vulnerability in Apollo upload server involving apollo_upload_server has Denial of Service vulnerability under General Security Weakness.
Which Apollo upload server versions are affected?
Affected versions include releases prior to 2.1.0 across affected packages: apollo_upload_server.
What version fixes CVE-2021-39880?
Upgrading to 2.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is apollo_upload_server affected?
Yes, apollo_upload_server is affected in releases prior to 2.1.0. Upgrade your dependency to 2.1.0 or later.
What is the CVSS score of CVE-2021-39880?
CVE-2021-39880 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2021-39880?
CVE-2021-39880 is classified under General Security Weakness.
How can I check RubyGems dependencies for CVE-2021-39880?
Run the dependency tree command: 'inspect dependencies for apollo_upload_server'. 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-w6pv-c757-6rgr",
  "modified" : "2023-03-17T19:44:40Z",
  "published" : "2022-05-24T19:16:32Z",
  "aliases" : [ "CVE-2021-39880" ],
  "summary" : "apollo_upload_server has Denial of Service vulnerability",
  "details" : "A Denial Of Service vulnerability in the apollo_upload_server Ruby gem in GitLab CE/EE version 11.11 and above allows an attacker to deny access to all users via specially crafted requests to the apollo_upload_server middleware.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "apollo_upload_server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.1.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-39880"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jetruby/apollo_upload_server-ruby/pull/44"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jetruby/apollo_upload_server-ruby/commit/b0582c1a3e458eee3c994fb38278bd0221f20486"
  }, {
    "type" : "WEB",
    "url" : "https://hackerone.com/reports/1181284"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/jetruby/apollo_upload_server-ruby"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jetruby/apollo_upload_server-ruby/releases/tag/2.1.0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/apollo_upload_server/CVE-2021-39880.yml"
  }, {
    "type" : "WEB",
    "url" : "https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-39880.json"
  }, {
    "type" : "WEB",
    "url" : "https://gitlab.com/gitlab-org/gitlab/-/issues/330561"
  }, {
    "type" : "WEB",
    "url" : "https://gitlab.com/gitlab-org/gitlab/-/issues/330561#note_642879964"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?id.183842"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-03-17T19:44:40Z",
    "nvd_published_at" : "2021-10-05T15:15:00Z"
  }
}