Cyber Resilience

CVE-2023-43654

SSRF in Pytorch Torchserve 0.1.0 – 0.8.2

Public PoCSSRF
Published
28 September 2023
Modified
21 November 2024
Patch / advisory
CVSS Score v3.1 10.0
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS Score 0.35 98th percentile
Risk Priority 100 floored blend · peak EPSS

Summary

CVE-2023-43654 is a critical-severity SSRF (CWE-918) vulnerability in Pytorch Torchserve. Its CVSS base score is 10.0 (Critical).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked in the top 2% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

This vulnerability is AI-related — categorised as APIs and Models.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

TorchServe, the model server for PyTorch, contains a server-side request forgery vulnerability (CWE-918) in versions 0.1.0 through 0.8.1. The default configuration performs insufficient validation of model URLs supplied during registration, allowing remote HTTP fetches and arbitrary file writes to the local filesystem. The flaw received a CVSS score of 10.0 and is tracked under CVE-2023-43654.

An unauthenticated remote attacker can supply a model archive from an attacker-controlled URL. Successful exploitation permits writing attacker-chosen files to disk, which can be leveraged to compromise system integrity and access or alter sensitive data. The TorchServe user is expected to configure the allowed_urls list and explicitly specify model locations, but the default permissive setting leaves instances exposed.

The project security advisory and release notes for version 0.8.2 state that a warning was added when the default allowed_urls value remains in use; users should upgrade immediately. No workarounds are documented.

Public exploit references, including PacketStorm entries describing remote code execution via model registration and deserialization, accompany the advisory. The EPSS score has remained high, currently at 0.91 with a recorded peak of 0.92, indicating sustained exploitation interest in this PyTorch-serving component.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

TorchServe is a tool for serving and scaling PyTorch models in production. TorchServe default configuration lacks proper input validation, enabling third parties to invoke remote HTTP download requests and write files to the disk. This issue could be taken advantage…

more

of to compromise the integrity of the system and sensitive data. This issue is present in versions 0.1.0 to 0.8.1. A user is able to load the model of their choice from any URL that they would like to use. The user of TorchServe is responsible for configuring both the allowed_urls and specifying the model URL to be used. A pull request to warn the user when the default value for allowed_urls is used has been merged in PR #2534. TorchServe release 0.8.2 includes this change. Users are advised to upgrade. There are no known workarounds for this issue.

CWE(s)

AI Security AnalysisAI

AI Category
APIs and Models
Risk Domain
N/A
OWASP Top 10 for LLMs 2025
None mapped
Classification Reason
Matched keywords: pytorch

Related Threats

MITRE ATT&CK Enterprise Techniques

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2023-48299Same product: Pytorch Torchserve
CVE-2024-35199Same product: Pytorch Torchserve
CVE-2024-35198Same product: Pytorch Torchserve
CVE-2024-6095Shared CWE-918
CVE-2026-63086Shared CWE-918
CVE-2024-6587Shared CWE-918
CVE-2026-0532Shared CWE-918
CVE-2025-66405Shared CWE-918
CVE-2025-53767Shared CWE-918
CVE-2026-13233Shared CWE-918

Affected Assets

pytorch
torchserve
0.1.0 — 0.8.2

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)
  • V1.3.6
  • V1.5.3
  • V5.3.2
  • V10.4.7

Likely Mitigating Controls AI

Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.

addresses: CWE-918

Penetration testing attempts server-side requests to internal resources, identifying SSRF weaknesses for remediation.

addresses: CWE-918

Outbound connections to external resources can be monitored and limited at the boundary, reducing SSRF impact.

addresses: CWE-918

Validates server-side URLs and resource references to block SSRF attempts.

addresses: CWE-918

Detects server-side request forgery through monitoring of unexpected outbound connections.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

Secure development practices directly include input validation and destination allow-listing that prevent SSRF.

DE.CM-09 partial match
prevents

Runtime monitoring of web applications and services can detect anomalous outbound requests indicative of SSRF.

ID.RA-01 partial match
prevents

Vulnerability identification processes can discover and record SSRF flaws in web applications.

PR.IR-01 partial match
prevents

Network segmentation and egress controls can limit the damage from successful SSRF requests.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

prevents

Operational threat data describing SSRF campaigns can be used to tighten outbound-request allow-lists and detection rules before attackers exploit them.

References