Every CVE Search/ Get API key

CVE-2021-40241

xfig 3.2.7 is vulnerable to Buffer Overflow.

9.8 CriticalFix available

xfig 3.2.7 is vulnerable to Buffer Overflow.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

1.16%Up 0.3 points since Nov 1, 2022
90%50%10%1%

What each source reports

NVD Score used 9.8

xfig 3.2.7 is vulnerable to Buffer Overflow.

Record
CVE-2021-40241
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-120
Updated
2026-11-02
CVE List 9.8

xfig 3.2.7 is vulnerable to Buffer Overflow.

Record
CVE-2021-40241
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-120
Updated
2026-11-02
EUVDEUVD-2021-27425 9.8

xfig 3.2.7 is vulnerable to Buffer Overflow.

Record
EUVD-2021-27425
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
GitHub AdvisoriesGHSA-m4gh-3245-h724 9.8

xfig 3.2.7 is vulnerable to Buffer Overflow.

xfig 3.2.7 is vulnerable to Buffer Overflow.

Record
GHSA-m4gh-3245-h724
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-120
Updated
2026-11-02
OSV 9.8

xfig 3.2.7 is vulnerable to Buffer Overflow.

Record
CVE-2021-40241
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2021-40241 9.8

xfig 3.2.7 is vulnerable to Buffer Overflow.

Record
DEBIAN-CVE-2021-40241
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2021-40241 9.8

xfig 3.2.7 is vulnerable to Buffer Overflow.

Record
UBUNTU-CVE-2021-40241
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVMGASA-2023-0101 No score

Updated xfig packages fix security vulnerability

A potential buffer overflow exists in the file src/w_help.c at line 55. Specifically, the length of the string returned by getenv("LANG") may become very long and cause a buffer overflow while executing the sprintf() function. This vulnerability could potentially allow an attacker to execute arbitrary code or cause a denial-of-service condition. (CVE-2021-40241)

Record
MGASA-2023-0101
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
xfig
Debian:12
before 1:3.2.8a-1
1:3.2.8a-1
xfig
Debian:13
before 1:3.2.8a-1
1:3.2.8a-1
xfig
Debian:14
before 1:3.2.8a-1
1:3.2.8a-1
xfig
Debian:10
before 1:3.2.7a-3+deb10u1, plus listed versions
1:3.2.7a-3
1:3.2.7a-3+deb10u1
xfig
Mageia:8
before 3.2.7b-1.1.mga8
3.2.7b-1.1.mga8
xfig
Ubuntu:16.04:LTS
All versions, plus listed versions
1:3.2.5.c-51:3.2.5.c-61:3.2.5.c-7
None known
xfig
Ubuntu:18.04:LTS
All versions, plus listed versions
1:3.2.6a-11:3.2.6a-2
None known
xfig
Ubuntu:20.04:LTS
All versions, plus listed versions
1:3.2.7a-31:3.2.7b-11:3.2.7b-2
None known
xfig
Ubuntu:22.04:LTS
All versions, plus listed versions
1:3.2.8-31:3.2.8b-1
None known
xfig
Ubuntu:24.04:LTS
All versions, plus listed versions
1:3.2.8b-2build21:3.2.9-11:3.2.9-21:3.2.9-2build21:3.2.9-2build3
None known
xfig
Ubuntu:25.10
All versions, plus listed versions
1:3.2.9a-21:3.2.9a-31:3.2.9a-4
None known
xfig
Ubuntu:26.10
All versions, plus listed versions
1:3.2.9a-5
None known
xfig
Ubuntu:26.04:LTS
All versions, plus listed versions
1:3.2.9a-41:3.2.9a-5
None known

History

History
RecordedChangedSources
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-40241 is a critical vulnerability (CVSS 9.8) in Xfig Project Xfig, published October 31, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.16%, the 67th percentile. Fixed in xfig 1:3.2.8a-1.

References

Show 4 moreShow less
MoveEnter Open