A use-after-free issue was discovered in Py_FindObjects() function in SciPy versions prior to 1.8.0. NOTE: the vendor and discoverer indicate that this is not a security issue.
https://github.com/scipy/scipy/pull/15013
https://github.com/scipy/scipy/issues/14713#issuecomment-1629468565