Security mailing lists by PureSourceCode

CVE-2021-31799

HIGH 7.0CVSS 3.1

Arbitrary Code Execution in Rdoc

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.

Published
30 Jul 2021
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-74CWE-77CWE-78
Also known as
GHSA-ggxm-pgc9-g7fp
Sources
NVDJSONOSV GHSA-ggxm-pgc9-g7fpJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.0 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) CVSS 3.1 HIGH 7.0 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 HIGH 7.0 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 4.4 AV:L/AC:M/Au:N/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD debian debian_linux
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
= 9.0
NVD debian debian_linux
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
= 10.0
NVD ruby-lang rdoc
cpe:2.3:a:ruby-lang:rdoc:*:*:*:*:*:ruby:*:*
>= 3.11, < 6.3.1 6.3.1
NVD oracle jd_edwards_enterpriseone_tools
cpe:2.3:a:oracle:jd_edwards_enterpriseone_tools:*:*:*:*:*:*:*:*
< 9.2.6.1 9.2.6.1
OSV RubyGems rdoc >= 3.11, < 6.1.2.1 6.1.2.1
OSV RubyGems rdoc >= 6.2.0, < 6.2.1.1 6.2.1.1
OSV RubyGems rdoc >= 6.3.0, < 6.3.1 6.3.1

References

History

  • 25 Nov 2026 20:33 UTC · NVD: first stored (published 30 Jul 2021)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 1 Sep 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.