CWE-562: Return of Stack Variable Address, published in 2022
Filter
A function returns the address of a stack variable.
What the weakness is: CWE-562 at MITRE. All weaknesses
Ask an AI about CWE-562
Show the prompt
Explain CWE-562: Return of Stack Variable Address and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/562.html and https://cve.bz/cve/cwe/562?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.
By year: all 2026 2025 2024 2023 2022 2021
- 9.8CVE-2022-41837EPSS 1.5%
An out-of-bounds write vulnerability exists in the OpenImageIO::add_exif_item_to_spec functionality of OpenImageIO Project OpenImageIO v2.4.4.2. Specially-crafted exif metadata can lead to stack-based memory corruption. An attacker can pro…