Improper input validation in all versions of GitLab CE/EE using sendmail to send emails allowed an attacker to steal environment variables via specially crafted email addresses.
https://hackerone.com/reports/1286317
https://gitlab.com/gitlab-org/gitlab/-/issues/337601
https://gitlab.com/gitlab-org/cves/-/blob/master/2022/CVE-2022-0741.json