Photoshop Desktop versions 25.12, 26.1 and earlier are affected by an Uncontrolled Search Path Element vulnerability that could lead to arbitrary code execution. An attacker could manipulate the search path environment variable to point to a malicious library, resulting in the execution of arbitrary code when the application loads. Exploitation of this issue requires user interaction in that a victim must run the vulnerable application.
https://www.securityweek.com/adobe-critical-code-execution-flaws-in-photoshop/
https://helpx.adobe.com/security/products/photoshop/apsb25-02.html