Ubuntu CVE Tracker
UBUNTU-CVE-2021-31799
Details
In RDoc 3.11 through 6.x before 6.3.1, as distributed with Ruby through 3.0.1, it is possible to execute arbitrary code via | and tags in a filename.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:16.04:LTS | ruby2.3 | All versions before 2.3.1-2~ubuntu16.04.16+esm1 (fixed in 2.3.1-2~ubuntu16.04.16+esm1) |
| Ubuntu:18.04:LTS | ruby2.5 | All versions before 2.5.1-1ubuntu1.10 (fixed in 2.5.1-1ubuntu1.10) |
| Ubuntu:20.04:LTS | ruby2.7 | All versions before 2.7.0-5ubuntu1.5 (fixed in 2.7.0-5ubuntu1.5) |
References
- https://ubuntu.com/security/CVE-2021-31799
- https://www.ruby-lang.org/en/news/2021/05/02/os-command-injection-in-rdoc/
- https://github.com/ruby/ruby/commit/b1c73f239fe9af97de837331849f55d67c27561e
- https://github.com/ruby/ruby/commit/483f303d02e768b69e476e0b9be4ab2f26389522
- https://ubuntu.com/security/notices/USN-5020-1
- https://www.cve.org/CVERecord?id=CVE-2021-31799