CVE-2023-28102
Last modified
CVE-2023-28102 is a critical-severity vulnerability rated 9.6/10 on the CVSS scale. 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. EPSS estimates a 2.55% chance of exploitation in the next 30 days.
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`.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Discordrb Project | Discordrb | < 2023-03-08 |
References
- https://securitylab.github.com/advisories/GHSL-2022-094_discordrb/Exploit, Third Party Advisory
- https://securitylab.github.com/advisories/GHSL-2022-094_discordrb/Exploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2023-28102?
How severe is CVE-2023-28102?
How do I fix CVE-2023-28102?
Are you affected by CVE-2023-28102?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
