CVE-2024-25625 Pimcore Host Header Injection in user invitation link

High 8.1 Published Updated

Attackers can manipulate host headers to generate malicious invitation links, enabling phishing attacks against Pimcore users.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-25625?

CVE-2024-25625 is a high-severity vulnerability in pimcore admin-ui-classic-bundle, published on 19 Feb 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

Pimcore's Admin Classic Bundle provides a Backend UI for Pimcore. A potential security vulnerability has been discovered in `pimcore/admin-ui-classic-bundle` prior to version 1.3.4. The vulnerability involves a Host Header Injection in the `invitationLinkAction` function of the UserController, specifically in the way `$loginUrl` trusts user input. The host header from incoming HTTP requests is used unsafely when generating URLs. An attacker can manipulate the HTTP host header in requests to the /admin/user/invitationlink endpoint, resulting in the generation of URLs with the attacker's domain. In fact, if a host header is injected in the POST request, the $loginURL parameter is constructed with this unvalidated host header. It is then used to send an invitation email to the provided user. This vulnerability can be used to perform phishing attacks by making the URLs in the invitation links emails point to an attacker-controlled domain. Version 1.3.4 contains a patch for the vulnerability. The maintainers recommend validating the host header and ensuring it matches the application's domain. It would also be beneficial to use a default trusted host or hostname if the incoming host header is not recognized or is absent.

Weakness: CWE-74

Which versions are affected by CVE-2024-25625?

2 open source packages ship an affected version, including pimcore/admin-ui-classic-bundle. It affects 1 product.

PackageAffectedFixed in
pimcore/admin-ui-classic-bundle PackagistAll versions1.3.4
pimcore/admin-ui-classic-bundle PackagistAll versions1.3.4

Products include Pimcore Admin Classic Bundle.

How do I fix CVE-2024-25625?

Upgrade pimcore/admin-ui-classic-bundle to 1.3.4 or later.

Is CVE-2024-25625 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-25625 exists.

Sources

Also known as GHSA-3qpq-6w89-f7mx.

Is CVE-2024-25625 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free