# CVE-2023-28102: Command injection in discordrb

- Severity: High 8.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.57%, higher than 85% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-03-27T21:23:29.252Z
- Modified: 2026-06-17T05:46:52.553Z
- Also known as: GHSA-8832-4mm5-x2r6
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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`.

(As written by CVE List.)

## Affected

- shardlab discordrb: <= 3.4.1
- discordrb (RubyGems): before 3.4.3
- discordrb_project discordrb: before 2023-03-08

## Every score

- GitHub_M: CVSS:3.1 8.4 High `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 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`

## References

- <https://securitylab.github.com/advisories/GHSL-2022-094_discordrb/> (exploit, third-party-advisory)
- <https://github.com/shardlab/discordrb/commit/91e13043ffa89227c3fcdc3408f06da237d28c95> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-28102> (advisory)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/discordrb/CVE-2023-28102.yml> (web)
- <https://github.com/shardlab/discordrb> (package)
- <https://securitylab.github.com/advisories> (web)
- <https://securitylab.github.com/advisories/GHSL-2022-094_discordrb> (advisory)

## Sources

- CVE List: [CVE-2023-28102](https://www.cve.org/CVERecord?id=CVE-2023-28102), CVE Terms of Use, modified 2025-02-19
- GitHub Advisory Database: [GHSA-8832-4mm5-x2r6](https://github.com/advisories/GHSA-8832-4mm5-x2r6), CC-BY-4.0, modified 2024-03-14
- NVD: [CVE-2023-28102](https://nvd.nist.gov/vuln/detail/CVE-2023-28102), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-28102 · Whole record: https://cve.day/CVE-2023-28102.json · Rebuilt by cve.day 2026-11-25T22:58:22.734Z
