CWE-562: Return of Stack Variable Address, published in 2021
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
- 7.8CVE-2021-21798gonitro nitro proEPSS 21%
An exploitable return of stack variable address vulnerability exists in the JavaScript implementation of Nitro Pro PDF. A specially crafted document can cause a stack variable to go out of scope, resulting in the application dereferencing …