CVE-2023-28102
CRITICAL 9.6CVSS 3.1discordrb OS Command Injection vulnerability
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.
- Published
- 27 Mar 2023
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-78
- Also known as
- GHSA-8832-4mm5-x2r6
- Sources
- NVDJSONOSV GHSA-8832-4mm5-x2r6JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.3 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | discordrb_project | discordrbcpe:2.3:a:discordrb_project:discordrb:*:*:*:*:*:ruby:*:* |
< 2023-03-08 | 2023-03-08 |
| OSV | RubyGems | discordrb | < 3.4.3 | 3.4.3 |
References
- https://github.com/shardlab/discordrb/commit/91e13043ffa89227c3fcdc3408f06da237d28c95 · Patch, WEB
- https://securitylab.github.com/advisories/GHSL-2022-094_discordrb/ · Exploit, Third Party Advisory, ADVISORY
- 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
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 27 Mar 2023)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 14 Mar 2024)