Every CVE Search/ Get API key

CVE-2021-30184

GNU Chess 6.2.7 allows attackers to execute arbitrary code via crafted PGN (Portable Game...

7.8 HighFix available

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

1.77%Up 0.7 points since Apr 14, 2021
90%50%10%1%

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 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.0
6.8 MediumAV: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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

Affected packages
PackageAffectedFixed
gnuchess
Alpine:v3.15
before 6.2.9-r0
6.2.9-r0
gnuchess
Alpine:v3.16
before 6.2.9-r0
6.2.9-r0
gnuchess
Alpine:v3.17
before 6.2.9-r0
6.2.9-r0
gnuchess
Alpine:v3.18
before 6.2.9-r0
6.2.9-r0
gnuchess
Alpine:v3.19
before 6.2.9-r0
6.2.9-r0
gnuchess
Alpine:v3.20
before 6.2.9-r0
6.2.9-r0
gnuchess
Alpine:v3.21
before 6.2.9-r0
6.2.9-r0
gnuchess
Alpine:v3.22
before 6.2.9-r0
6.2.9-r0
gnuchess
Alpine:v3.23
before 6.2.9-r0
6.2.9-r0
gnuchess
Alpine:v3.24
before 6.2.9-r0
6.2.9-r0
Show 9 moreShow less
Affected packages
PackageAffectedFixed
gnuchess
Debian:12
before 6.2.7-1+deb12u1, plus listed versions
6.2.7-1
6.2.7-1+deb12u1
gnuchess
Debian:13
before 6.2.9-0.1
6.2.9-0.1
gnuchess
Debian:14
before 6.2.9-0.1
6.2.9-0.1
gnuchess
Debian:11
before 6.2.7-1+deb11u1, plus listed versions
6.2.7-1
6.2.7-1+deb11u1
gnuchess
Mageia:7
before 6.2.6-1.1.mga7
6.2.6-1.1.mga7
gnuchess
Mageia:8
before 6.2.7-1.1.mga8
6.2.7-1.1.mga8
gnuchess
Ubuntu: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
gnuchess
Ubuntu: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
gnuchess
openSUSE:Tumbleweed
From an advisory covering 2 CVEs
before 6.2.9-1.2
6.2.9-1.2

History

History
RecordedChangedSources
affected, facts
affected, aliases, referencesOSV
aliasesEUVD
first indexedCVE 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

Show 16 moreShow less
MoveEnter Open