---
title: "CVE-2023-28102: discordrb OS Command Injection vulnerability"
url: https://erroneo.us/security/cve/CVE-2023-28102/
description: "CVE-2023-28102 (discordrb (RubyGems)): discordrb is an implementation of the Discord API using Ruby. In discordrb before commit 91e13043ffa the encoder.rb…"
type: vulnerability-record
section: "Security Digest"
date_published: 2023-03-27
date_modified: 2025-02-19
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2023-28102"
kev: false
cvss: 8.4
epss: 0.02567
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2023-28102: discordrb OS Command Injection vulnerability

**Signal:** Normal patch cycle. No exploitation signal; fix it in your next routine update if you are affected. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 2.6% , percentile 85: FIRST’s model estimates a 2.6% chance of exploitation activity in the next 30 days, higher than 85% of all scored CVEs (elevated). EPSS is a probability, not a verdict.
- Needs a user to click or open something. Phishing makes that realistic, but it is not wormable.
- Only applies if your dependency tree includes discordrb (RubyGems) < 3.4.3, fixed in 3.4.3 . Check your lockfile, including transitive dependencies.

## What it is

discordrb is an implementation of the Discord API using Ruby. In discordrb before commit 91e13043ffa the encoder.rb file unsafely constructs a shell string using the file parameter, which can potentially leave clients of discordrb vulnerable to command injection. The library is not directly exploitable: the exploit requires that some client of the library calls the vulnerable method with user input. However, if unsafe input reaches the library method, then an attacker can execute arbitrary shell commands on the host machine. Full impact will depend on the permissions of the process running the discordrb library and will likely not be total system access. This issue has been addressed in code, but a new release of the discordrb gem has not been uploaded to rubygems. This issue is also tracked as GHSL-2022-094.

## Affected packages

- RubyGems `discordrb` < 3.4.3 → fixed: 3.4.3

## Affected products (CVE record)

- shardlab discordrb: <= 3.4.1

## Severity

- GitHub_M CVSS 3.1: 8.4 `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H`
- GitHub CVSS 3.1: 9.6 `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable no , technical impact total .
- FIRST EPSS (model of 2026-10-21): 2.57% probability of exploitation activity in the next 30 days; percentile 85.

## Sources

- [GitHub Advisory GHSA-8832-4mm5-x2r6](https://github.com/advisories/GHSA-8832-4mm5-x2r6)
- [CVE.org record CVE-2023-28102](https://www.cve.org/CVERecord?id=CVE-2023-28102)
- [NVD entry CVE-2023-28102](https://nvd.nist.gov/vuln/detail/CVE-2023-28102)
- [securitylab.github.com](https://securitylab.github.com/advisories/GHSL-2022-094_discordrb/)
- [github.com](https://github.com/shardlab/discordrb/commit/91e13043ffa89227c3fcdc3408f06da237d28c95)
- [github.com](https://github.com/rubysec/ruby-advisory-db/blob/master/gems/discordrb/CVE-2023-28102.yml)
- [securitylab.github.com](https://securitylab.github.com/advisories)

---
Source page: https://erroneo.us/security/cve/CVE-2023-28102/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
