CVE-2021-30184
GNU Chess 6.2.7 allows attackers to execute arbitrary code via crafted PGN (Portable Game...
GNU Chess 6.2.7 allows attackers to execute arbitrary code via crafted PGN (Portable Game Notation) data. This is related to a buffer overflow in the use of a .tmp.epd temporary file in the cmd_pgnload and cmd_pgnreplay functions in frontend/cmd.cc.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.8
GNU Chess 6.2.7 allows attackers to execute arbitrary code via crafted PGN (Portable Game Notation) data. This is related to a buffer overflow in the use of a .tmp.epd temporary file in the cmd_pgnload and cmd_pgnreplay functions in frontend/cmd.cc.
- Record
CVE-2021-30184- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Weakness
- CWE-120
- Updated
- 2026-11-02
CVE List No score
GNU Chess 6.2.7 allows attackers to execute arbitrary code via crafted PGN (Portable Game Notation) data. This is related to a buffer overflow in the use of a .tmp.epd temporary file in the cmd_pgnload and cmd_pgnreplay functions in frontend/cmd.cc.
- Record
CVE-2021-30184- Updated
- 2026-11-02
EUVDEUVD-2021-17117 No score
GNU Chess 6.2.7 allows attackers to execute arbitrary code via crafted PGN (Portable Game Notation) data. This is related to a buffer overflow in the use of a .tmp.epd temporary file in the cmd_pgnload and cmd_pgnreplay functions in frontend/cmd.cc.
- Record
EUVD-2021-17117- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-x7m2-6mfm-whq5
7.8
GNU Chess 6.2.7 allows attackers to execute arbitrary code via crafted PGN (Portable Game...
GNU Chess 6.2.7 allows attackers to execute arbitrary code via crafted PGN (Portable Game Notation) data. This is related to a buffer overflow in the use of a .tmp.epd temporary file in the cmd_pgnload and cmd_pgnreplay functions in frontend/cmd.cc.
- Record
GHSA-x7m2-6mfm-whq5- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-120
- Updated
- 2026-11-02
OSVALPINE-CVE-2021-30184
7.8
GNU Chess 6.2.7 allows attackers to execute arbitrary code via crafted PGN (Portable Game Notation) data. This is related to a buffer overflow in the use of a .tmp.epd temporary file in the cmd_pgnload and cmd_pgnreplay functions in frontend/cmd.cc.
- Record
ALPINE-CVE-2021-30184- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
OSV
7.8
GNU Chess 6.2.7 allows attackers to execute arbitrary code via crafted PGN (Portable Game Notation) data. This is related to a buffer overflow in the use of a .tmp.epd temporary file in the cmd_pgnload and cmd_pgnreplay functions in frontend/cmd.cc.
- Record
CVE-2021-30184- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 5 moreShow less
OSVDEBIAN-CVE-2021-30184
7.8
GNU Chess 6.2.7 allows attackers to execute arbitrary code via crafted PGN (Portable Game Notation) data. This is related to a buffer overflow in the use of a .tmp.epd temporary file in the cmd_pgnload and cmd_pgnreplay functions in frontend/cmd.cc.
- Record
DEBIAN-CVE-2021-30184- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-30184
7.8
GNU Chess 6.2.7 allows attackers to execute arbitrary code via crafted PGN (Portable Game Notation) data. This is related to a buffer overflow in the use of a .tmp.epd temporary file in the cmd_pgnload and cmd_pgnreplay functions in frontend/cmd.cc.
- Record
UBUNTU-CVE-2021-30184- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVMGASA-2021-0250 No score
Updated gnuchess package fix a security vulnerability
GNU Chess 6.2.7 allows attackers to execute arbitrary code via crafted PGN (Portable Game Notation) data. This is related to a buffer overflow in the use of a .tmp.epd temporary file in the cmd_pgnload and cmd_pgnreplay functions in frontend/cmd.cc. (CVE-2021-30184).
- Record
MGASA-2021-0250- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10799-1 No score
gnuchess-6.2.9-1.2 on GA media
These are all security issues fixed in the gnuchess-6.2.9-1.2 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10799-1- Updated
- 2026-11-02
OSVUSN-7336-1 No score
gnuchess vulnerability
Michael Vaughan discovered an overflow vulnerability in GNU Chess that occurs when reading a specially crafted Portable Game Notation (PGN) file. An attacker could possibly use this issue to cause GNU Chess to crash, resulting in a denial of service, or the execution of arbitrary code.
- Record
USN-7336-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
gnuchessAlpine:v3.15 |
before 6.2.9-r0 | 6.2.9-r0 |
gnuchessAlpine:v3.16 |
before 6.2.9-r0 | 6.2.9-r0 |
gnuchessAlpine:v3.17 |
before 6.2.9-r0 | 6.2.9-r0 |
gnuchessAlpine:v3.18 |
before 6.2.9-r0 | 6.2.9-r0 |
gnuchessAlpine:v3.19 |
before 6.2.9-r0 | 6.2.9-r0 |
gnuchessAlpine:v3.20 |
before 6.2.9-r0 | 6.2.9-r0 |
gnuchessAlpine:v3.21 |
before 6.2.9-r0 | 6.2.9-r0 |
gnuchessAlpine:v3.22 |
before 6.2.9-r0 | 6.2.9-r0 |
gnuchessAlpine:v3.23 |
before 6.2.9-r0 | 6.2.9-r0 |
gnuchessAlpine:v3.24 |
before 6.2.9-r0 | 6.2.9-r0 |
Show 9 moreShow less
| Package | Affected | Fixed |
|---|---|---|
gnuchessDebian:12 |
before 6.2.7-1+deb12u1, plus listed versions 6.2.7-1 |
6.2.7-1+deb12u1 |
gnuchessDebian:13 |
before 6.2.9-0.1 | 6.2.9-0.1 |
gnuchessDebian:14 |
before 6.2.9-0.1 | 6.2.9-0.1 |
gnuchessDebian:11 |
before 6.2.7-1+deb11u1, plus listed versions 6.2.7-1 |
6.2.7-1+deb11u1 |
gnuchessMageia:7 |
before 6.2.6-1.1.mga7 | 6.2.6-1.1.mga7 |
gnuchessMageia:8 |
before 6.2.7-1.1.mga8 | 6.2.7-1.1.mga8 |
gnuchessUbuntu:22.04:LTS |
before 6.2.7-1+deb11u1build0.22.04.1, plus listed versions 6.2.7-1 |
6.2.7-1+deb11u1build0.22.04.1 |
gnuchessUbuntu:24.04:LTS |
before 6.2.7-1+deb11u1build0.24.04.1, plus listed versions 6.2.7-16.2.7-1build1 |
6.2.7-1+deb11u1build0.24.04.1 |
gnuchessopenSUSE:Tumbleweed From an advisory covering 2 CVEs |
before 6.2.9-1.2 | 6.2.9-1.2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected, aliases, references | OSV | |
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-30184 is a high vulnerability (CVSS 7.8) in Gnu Chess, published April 7, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.77%, the 78th percentile. Fixed in gnuchess 6.2.9-r0.
References
lists.gnu.org/archive/html/bug-gnu-chess/2021-04/msg00000.html
lists.gnu.org/archive/html/bug-gnu-chess/2021-04/msg00001.html
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XXOTMUSBVUZNA3JMPG6BU37DQW2YOJWS
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QC74RWMDLSQGV6Z3ZABNTPABB33S4YNF
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SOGPLC77ZL2FACSOE5MWDS3YH3RBNQAQ
security.gentoo.org/glsa/202107-28
Show 16 moreShow less
lists.debian.org/debian-lts-announce/2025/01/msg00007.html
nvd.nist.gov/vuln/detail/CVE-2021-30184
lists.fedoraproject.org/archives/list/[email protected]/message/QC74RWMDLSQGV6Z3ZABNTPABB33S4YNF
lists.fedoraproject.org/archives/list/[email protected]/message/SOGPLC77ZL2FACSOE5MWDS3YH3RBNQAQ
lists.fedoraproject.org/archives/list/[email protected]/message/XXOTMUSBVUZNA3JMPG6BU37DQW2YOJWS
github.com/advisories/GHSA-x7m2-6mfm-whq5
security.alpinelinux.org/vuln/CVE-2021-30184
security-tracker.debian.org/tracker/CVE-2021-30184
advisories.mageia.org/MGASA-2021-0250.html
bugs.mageia.org/show_bug.cgi?id=29026
lists.fedoraproject.org/archives/list/[email protected]/thread/QC74RWMDLSQGV6Z3ZABNTPABB33S4YNF
ubuntu.com/security/CVE-2021-30184
cve.org/CVERecord?id=CVE-2021-30184
ubuntu.com/security/notices/USN-7336-1
suse.com/security/cve/CVE-2019-15767
suse.com/security/cve/CVE-2021-30184