GNU Aspell 0.60.8.2 (first vulnerable version is not known) contains a heap-based buffer overflow write (CWE-122) in its read-only dictionary loader. String::reserve() in common/string.hpp computes its capacity check with a signed int ((int)s + 1), so a requested size of 0x7FFFFFFF wraps negative and the backing buffer is never grown. ReadOnlyDict::load() in modules/speller/default/readonly_ws.cpp passes the unvalidated 32-bit size fields from a .rws dictionary header into this path, so a crafted .rws file with a valid endian marker (12345678) and an oversized length field (e.g. lang_name_size = 0x7FFFFFFF) causes attacker-controlled data to be written out of bounds past an undersized heap allocation. An attacker who induces a victim to load a malicious dictionary — for example via aspell dump master — can corrupt heap memory, resulting in denial of service and potentially code execution. Fixed in b830b6e and will be fixed in release 0.60.8.3.
A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().
| Name | Vendor | Start Version | End Version |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | RedHat | aspell-12:0.60.8.1-3.el10_3.1 | * |
| Red Hat Enterprise Linux 10.0 Extended Update Support | RedHat | aspell-12:0.60.8.1-3.el10_0.1 | * |
| Red Hat Enterprise Linux 10.2 Extended Update Support | RedHat | aspell-12:0.60.8.1-3.el10_2.1 | * |
| Red Hat Enterprise Linux 7 Extended Lifecycle Support | RedHat | aspell-12:0.60.6.1-9.el7_9.1 | * |
| Red Hat Enterprise Linux 8 | RedHat | aspell-12:0.60.6.1-23.el8_10 | * |
| Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | RedHat | aspell-12:0.60.6.1-21.el8_4.1 | * |
| Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On | RedHat | aspell-12:0.60.6.1-21.el8_4.1 | * |
| Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | RedHat | aspell-12:0.60.6.1-22.el8_6.1 | * |
| Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On | RedHat | aspell-12:0.60.6.1-22.el8_6.1 | * |
| Red Hat Enterprise Linux 8.8 Telecommunications Update Service | RedHat | aspell-12:0.60.6.1-22.el8_8.1 | * |
| Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions | RedHat | aspell-12:0.60.6.1-22.el8_8.1 | * |
| Red Hat Enterprise Linux 9 | RedHat | aspell-12:0.60.8-9.el9_8 | * |
| Red Hat Enterprise Linux 9.6 Extended Update Support | RedHat | aspell-12:0.60.8-8.el9_6.1 | * |