CWE-122
AllowedHeap-based Buffer Overflow
Abstraction: Variant · Status: Draft
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().
5392 vulnerabilities reference this CWE, most recent first.
GHSA-CMX7-5FPV-XC6X
Vulnerability from github – Published: 2026-09-18 18:31 – Updated: 2026-09-18 18:31IBM MQ for HPE NonStop 8.1.0 through 8.1.0.40 could allow an authenticated attacker to cause a denial of service or potentially execute arbitrary code due to a heap buffer underflow when processing multi-segment messages.
{
"affected": [],
"aliases": [
"CVE-2026-10858"
],
"database_specific": {
"cwe_ids": [
"CWE-122"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-09-18T16:17:05Z",
"severity": "CRITICAL"
},
"details": "IBM MQ for HPE NonStop 8.1.0 through 8.1.0.40 could allow an authenticated attacker to cause a denial of service or potentially execute arbitrary code due to a heap buffer underflow when processing multi-segment messages.",
"id": "GHSA-cmx7-5fpv-xc6x",
"modified": "2026-09-18T18:31:40Z",
"published": "2026-09-18T18:31:40Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-10858"
},
{
"type": "WEB",
"url": "https://www.ibm.com/support/pages/node/7287704"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-CP2C-9R38-R3HX
Vulnerability from github – Published: 2026-09-08 18:32 – Updated: 2026-09-08 18:32Heap-based buffer overflow in SQL Server allows an authorized attacker to execute code over a network.
{
"affected": [],
"aliases": [
"CVE-2026-68786"
],
"database_specific": {
"cwe_ids": [
"CWE-122"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-09-08T18:18:26Z",
"severity": "HIGH"
},
"details": "Heap-based buffer overflow in SQL Server allows an authorized attacker to execute code over a network.",
"id": "GHSA-cp2c-9r38-r3hx",
"modified": "2026-09-08T18:32:12Z",
"published": "2026-09-08T18:32:12Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-68786"
},
{
"type": "WEB",
"url": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-68786"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-CP3G-MR7F-V756
Vulnerability from github – Published: 2025-02-11 18:31 – Updated: 2025-02-11 18:31Windows Telephony Service Remote Code Execution Vulnerability
{
"affected": [],
"aliases": [
"CVE-2025-21190"
],
"database_specific": {
"cwe_ids": [
"CWE-122"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2025-02-11T18:15:30Z",
"severity": "HIGH"
},
"details": "Windows Telephony Service Remote Code Execution Vulnerability",
"id": "GHSA-cp3g-mr7f-v756",
"modified": "2025-02-11T18:31:36Z",
"published": "2025-02-11T18:31:36Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-21190"
},
{
"type": "WEB",
"url": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-21190"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-CP5W-2CMM-55WP
Vulnerability from github – Published: 2026-09-18 18:31 – Updated: 2026-09-18 18:31IBM MQ could allow an authenticated attacker to cause a denial of service or potentially execute arbitrary code due to improper validation of message distribution list structures.
{
"affected": [],
"aliases": [
"CVE-2026-11381"
],
"database_specific": {
"cwe_ids": [
"CWE-122"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-09-18T16:17:05Z",
"severity": "HIGH"
},
"details": "IBM MQ could allow an authenticated attacker to cause a denial of service or potentially execute arbitrary code due to improper validation of message distribution list structures.",
"id": "GHSA-cp5w-2cmm-55wp",
"modified": "2026-09-18T18:31:40Z",
"published": "2026-09-18T18:31:40Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-11381"
},
{
"type": "WEB",
"url": "https://www.ibm.com/support/pages/node/7287706"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-CP7G-R78M-CC2G
Vulnerability from github – Published: 2026-07-17 21:31 – Updated: 2026-10-02 03:31A flaw was found in xdgmime. A heap-based buffer overflow can be triggered in _xdg_mime_magic_parse_magic_line() in the xdgmimemagic.c file on little-endian systems when an attacker-controlled MIME magic file in a user-writable XDG data location (e.g., in the $XDG_DATA_HOME/mime/magic path) is parsed by an application performing MIME type detection (e.g., via g_content_type_guess()). When performing byte-swap, incorrect pointer arithmetic on the write side causes an out-of-bounds write of 2 bytes, resulting in an application crash or memory corruption.
{
"affected": [],
"aliases": [
"CVE-2026-16118"
],
"database_specific": {
"cwe_ids": [
"CWE-122"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-07-17T20:17:16Z",
"severity": "HIGH"
},
"details": "A flaw was found in xdgmime. A heap-based buffer overflow can be triggered in _xdg_mime_magic_parse_magic_line() in the xdgmimemagic.c file on little-endian systems when an attacker-controlled MIME magic file in a user-writable XDG data location (e.g., in the $XDG_DATA_HOME/mime/magic path) is parsed by an application performing MIME type detection (e.g., via g_content_type_guess()). When performing byte-swap, incorrect pointer arithmetic on the write side causes an out-of-bounds write of 2 bytes, resulting in an application crash or memory corruption.",
"id": "GHSA-cp7g-r78m-cc2g",
"modified": "2026-10-02T03:31:09Z",
"published": "2026-07-17T21:31:44Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-16118"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:64799"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:74362"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:74363"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:74364"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:74365"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:74450"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:74458"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:74459"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:74460"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:74461"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:74462"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:74463"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:74674"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:74677"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:74678"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:74679"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:74681"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:74683"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:74685"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:74687"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:74688"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:74771"
},
{
"type": "WEB",
"url": "https://access.redhat.com/security/cve/CVE-2026-16118"
},
{
"type": "WEB",
"url": "https://bugzilla.redhat.com/show_bug.cgi?id=2501732"
},
{
"type": "WEB",
"url": "https://gitlab.freedesktop.org/xdg/xdgmime/-/work_items/41"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:64800"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:66451"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:67956"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:70636"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:71403"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:71404"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:71405"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:72394"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:72395"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:72399"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:72470"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:72475"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:72476"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:72502"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:73859"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:73909"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:73929"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:73930"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:73959"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:73960"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:73961"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:73962"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:74359"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:74360"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:74361"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-CPGH-4WPJ-HJWP
Vulnerability from github – Published: 2023-02-14 12:30 – Updated: 2023-02-22 18:30A vulnerability has been identified in Solid Edge SE2022 (All versions < V2210Update12), Solid Edge SE2023 (All versions < V2023Update2). The affected application is vulnerable to heap-based buffer underflow while parsing specially crafted PAR files. An attacker could leverage this vulnerability to execute code in the context of the current process.
{
"affected": [],
"aliases": [
"CVE-2023-24551"
],
"database_specific": {
"cwe_ids": [
"CWE-122"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2023-02-14T11:15:00Z",
"severity": "HIGH"
},
"details": "A vulnerability has been identified in Solid Edge SE2022 (All versions \u003c V2210Update12), Solid Edge SE2023 (All versions \u003c V2023Update2). The affected application is vulnerable to heap-based buffer underflow while parsing specially crafted PAR files. An attacker could leverage this vulnerability to execute code in the context of the current process.",
"id": "GHSA-cpgh-4wpj-hjwp",
"modified": "2023-02-22T18:30:34Z",
"published": "2023-02-14T12:30:26Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-24551"
},
{
"type": "WEB",
"url": "https://cert-portal.siemens.com/productcert/pdf/ssa-491245.pdf"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-CPH6-MHR2-7R9P
Vulnerability from github – Published: 2022-05-24 19:07 – Updated: 2022-10-08 00:00A vulnerability has been identified in JT2Go (All versions < V13.2), Teamcenter Visualization (All versions < V13.2). The BMP_loader.dll library in affected applications lacks proper validation of user-supplied data when parsing PCX files. This could result in an out of bounds write past the fixed-length heap-based buffer. An attacker could leverage this vulnerability to execute code in the context of the current process. (ZDI-CAN-13402)
{
"affected": [],
"aliases": [
"CVE-2021-34317"
],
"database_specific": {
"cwe_ids": [
"CWE-122",
"CWE-20",
"CWE-787"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2021-07-13T11:15:00Z",
"severity": "HIGH"
},
"details": "A vulnerability has been identified in JT2Go (All versions \u003c V13.2), Teamcenter Visualization (All versions \u003c V13.2). The BMP_loader.dll library in affected applications lacks proper validation of user-supplied data when parsing PCX files. This could result in an out of bounds write past the fixed-length heap-based buffer. An attacker could leverage this vulnerability to execute code in the context of the current process. (ZDI-CAN-13402)",
"id": "GHSA-cph6-mhr2-7r9p",
"modified": "2022-10-08T00:00:18Z",
"published": "2022-05-24T19:07:39Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-34317"
},
{
"type": "WEB",
"url": "https://cert-portal.siemens.com/productcert/pdf/ssa-483182.pdf"
},
{
"type": "WEB",
"url": "https://www.zerodayinitiative.com/advisories/ZDI-21-853"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-CPHH-HQJX-9G8V
Vulnerability from github – Published: 2026-04-30 09:30 – Updated: 2026-04-30 15:30DCP-ETSI protocol dissector crash in Wireshark 4.6.0 to 4.6.4 and 4.4.0 to 4.4.14 allows denial of service
{
"affected": [],
"aliases": [
"CVE-2026-5653"
],
"database_specific": {
"cwe_ids": [
"CWE-122"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-04-30T07:16:38Z",
"severity": "MODERATE"
},
"details": "DCP-ETSI protocol dissector crash in Wireshark 4.6.0 to 4.6.4 and 4.4.0 to 4.4.14 allows denial of service",
"id": "GHSA-cphh-hqjx-9g8v",
"modified": "2026-04-30T15:30:39Z",
"published": "2026-04-30T09:30:24Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-5653"
},
{
"type": "WEB",
"url": "https://gitlab.com/wireshark/wireshark/-/issues/21122"
},
{
"type": "WEB",
"url": "https://gitlab.com/wireshark/wireshark/-/work_items/21122"
},
{
"type": "WEB",
"url": "https://www.wireshark.org/security/wnpa-sec-2026-22.html"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-CPQ5-3RF7-QRJM
Vulnerability from github – Published: 2026-09-08 18:33 – Updated: 2026-09-08 18:33Heap-based buffer overflow in Microsoft Windows Codecs Library allows an unauthorized attacker to execute code locally.
{
"affected": [],
"aliases": [
"CVE-2026-81353"
],
"database_specific": {
"cwe_ids": [
"CWE-122"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-09-08T18:20:53Z",
"severity": "HIGH"
},
"details": "Heap-based buffer overflow in Microsoft Windows Codecs Library allows an unauthorized attacker to execute code locally.",
"id": "GHSA-cpq5-3rf7-qrjm",
"modified": "2026-09-08T18:33:29Z",
"published": "2026-09-08T18:33:29Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-81353"
},
{
"type": "WEB",
"url": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-81353"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-CPX5-6MWC-HXP6
Vulnerability from github – Published: 2024-05-14 18:30 – Updated: 2025-04-18 15:31HDF5 Library through 1.14.3 contains a heap-based buffer overflow in H5Z__nbit_decompress_one_byte in H5Znbit.c, caused by the earlier use of an initialized pointer.
{
"affected": [],
"aliases": [
"CVE-2024-32615"
],
"database_specific": {
"cwe_ids": [
"CWE-122",
"CWE-787"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2024-05-14T15:36:46Z",
"severity": "CRITICAL"
},
"details": "HDF5 Library through 1.14.3 contains a heap-based buffer overflow in H5Z__nbit_decompress_one_byte in H5Znbit.c, caused by the earlier use of an initialized pointer.",
"id": "GHSA-cpx5-6mwc-hxp6",
"modified": "2025-04-18T15:31:32Z",
"published": "2024-05-14T18:30:46Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-32615"
},
{
"type": "WEB",
"url": "https://github.com/HDFGroup/cve_hdf5/blob/main/CVE_list.md"
},
{
"type": "WEB",
"url": "https://www.hdfgroup.org/2024/05/new-hdf5-cve-issues-fixed-in-1-14-4"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
Mitigation
Pre-design: Use a language or compiler that performs automatic bounds checking.
Mitigation
Use an abstraction library to abstract away risky APIs. Not a complete solution.
Mitigation MIT-10
Strategy: Environment Hardening
- Use automatic buffer overflow detection mechanisms that are offered by certain compilers or compiler extensions. Examples include: the Microsoft Visual Studio /GS flag, Fedora/Red Hat FORTIFY_SOURCE GCC flag, StackGuard, and ProPolice, which provide various mechanisms including canary-based detection and range/index checking.
- D3-SFCV (Stack Frame Canary Validation) from D3FEND [REF-1334] discusses canary-based detection in detail.
Mitigation MIT-11
Strategy: Environment Hardening
- Run or compile the software using features or extensions that randomly arrange the positions of a program's executable and libraries in memory. Because this makes the addresses unpredictable, it can prevent an attacker from reliably jumping to exploitable code.
- Examples include Address Space Layout Randomization (ASLR) [REF-58] [REF-60] and Position-Independent Executables (PIE) [REF-64]. Imported modules may be similarly realigned if their default memory addresses conflict with other modules, in a process known as "rebasing" (for Windows) and "prelinking" (for Linux) [REF-1332] using randomly generated addresses. ASLR for libraries cannot be used in conjunction with prelink since it would require relocating the libraries at run-time, defeating the whole purpose of prelinking.
- For more information on these techniques see D3-SAOR (Segment Address Offset Randomization) from D3FEND [REF-1335].
Mitigation
Implement and perform bounds checking on input.
Mitigation
Strategy: Libraries or Frameworks
Do not use dangerous functions such as gets. Look for their safe equivalent, which checks for the boundary.
Mitigation
Use OS-level preventative functionality. This is not a complete solution, but it provides some defense in depth.
CAPEC-92: Forced Integer Overflow
This attack forces an integer variable to go out of range. The integer variable is often used as an offset such as size of memory allocation or similarly. The attacker would typically control the value of such variable and try to get it out of range. For instance the integer in question is incremented past the maximum possible value, it may wrap to become a very small, or negative number, therefore providing a very incorrect value which can lead to unexpected behavior. At worst the attacker can execute arbitrary code.