CVE-2025-66405CWE-918ssrf

CVE-2025-66405

Critical · published December 2, 2025

CVSS v3.1
9.8
EPSS
0%
Percentile
29.7
In the wild
Unconfirmed
What it is

⚠️ Cleverly disguised as a harmless header, the x-portkey-custom-host can be the key to a sneaky SSRF attack before version 1.14.0 of Portkey.ai Gateway. 🚪 Imagine ordering a package and telling the delivery person to take a shortcut through all the restricted areas—this vulnerability allows an attacker to specify where the request goes, potentially fetching sensitive internal resources. An attacker could exploit this vulnerability to send requests to any internal service, snooping around your network like a cat burglar in a house full of valuables. While this isn't a catastrophic breach, it could lead to data leaks or unauthorized access that could be absolutely devastating to your security posture.

Put simply

Imagine ordering a package and telling the delivery person to take a shortcut through all the restricted areas—this vulnerability allows an attacker to specify where the request goes, potentially fetching sensitive internal resources. The vulnerability arises from the gateway's incorrect prioritization of the x-portkey-custom-host header, allowing attackers to redirect requests to unintended destinations through SSRF exploits.

What to do

An attacker could exploit this vulnerability to send requests to any internal service, snooping around your network like a cat burglar in a house full of valuables. While this isn't a catastrophic breach, it could lead to data leaks or unauthorized access that could be absolutely devastating to your security posture. Patch to version 1.14.0 immediately to close off this vector. Additionally, consider auditing the handling of request headers to ensure stricter validation on incoming requests. This is fixable! Get that patch in place, and you’ll be a security hero in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00370 · 29.7th percentile
Weakness
CWE-918 · Server-Side Request Forgery (SSRF)
Published
2025-12-02T04:15Z
Affected products (1)
ProductVersionsFixed in
portkey/gateway< 1.14.01.14.0
References (3)
EPSS history
Timeline
  • 01 DEC 22:25Z
    Portkey.ai Gateway: Server-Side Request Forgery (SSRF) in Custom Host
    cvelistv5