...
Attempting to access an object outside of its lifetime can result in undefined behavior and lead to an exploitable vulnerability. (See also undefined behavior 9 in Appendix J of the C Standard.)
...
CERT C++ Secure Coding Standard | DCL30-CPP. Declare objects with appropriate storage durations |
ISO/IEC TR 24772:2013 | Dangling References to Stack Frames [DCM] |
ISO/IEC TS 17961 (Draft) | Escaping of the address of an automatic object [addrescape] |
...