CVE-2024-35198CWE-706

TorchServe bypass allowed_urls configuration

Critical · published July 18, 2024

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

🚨 A sneaky URL bypass could let attackers fetch any model in TorchServe! 🔥 Think of it like a restaurant that gives you a menu but allows you to sneak in your own ingredients — once the dish is made, they don’t check what's in it the next time you order. If someone knows the right trick, they can serve themselves whatever they want from the kitchen! This vulnerability is absolutely devastating! An attacker could exploit this flaw to download malicious models into your model store, leading to unauthorized access and potentially harmful alterations to your machine learning workflows. The consequences could ripple through your applications, compromising data integrity and trust!

Put simply

Think of it like a restaurant that gives you a menu but allows you to sneak in your own ingredients — once the dish is made, they don’t check what's in it the next time you order. If someone knows the right trick, they can serve themselves whatever they want from the kitchen! The vulnerability in TorchServe arises from a lack of effective validation on the 'allowed_urls' configuration, allowing attackers to bypass the security check using characters like '..'. This means attackers can download models without proper authorization.

What to do

This vulnerability is absolutely devastating! An attacker could exploit this flaw to download malicious models into your model store, leading to unauthorized access and potentially harmful alterations to your machine learning workflows. The consequences could ripple through your applications, compromising data integrity and trust! Upgrade TorchServe to version 0.11.0 immediately to implement the fix that validates URLs and blocks any sneaky characters. If you're using this tool, don’t wait—ensure your deployments are secure! You've got this! Follow these steps, and you'll have your TorchServe environment locked down 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.00799 · 56.1th percentile
Weakness
CWE-706 · Use of Incorrectly-Resolved Name or Reference
Published
2024-07-18T22:40Z
EPSS history
Timeline
  • 18 JUL 22:40Z
    TorchServe bypass allowed_urls configuration
    cvelistv5