☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
Sentry logo [ WEBSITE ] [ VENDOR STATS ]
CVSS: 6.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N 🐛 CWE-862
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2023-39338

CVE-2023-39338 Supply Chain Attack in Sentry
📅 PUBLISHED: 2025-07-12 03:30 UTC 🔄 UPDATED: 2026-08-12 14:52 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 5.19%
👁️
5.19% probability
129.7× above the median CVE
Tier: HIGH
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
Country: United States License: Freemium
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 6.8
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: L Privileges Required Low
UI: N User Interaction None
S: U Scope Unchanged
C: L Confidentiality Low
I: L Integrity Low
A: N Availability None
6.8
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2023-39338 is a vulnerability in Sentry, an error tracking and performance monitoring platform. It allows an authenticated user (with an enrolled device) to bypass authorization checks for a service protected by Sentry's tunnel feature. The vulnerability does not grant the attacker the ability to authenticate to or use the protected service, but it provides unauthorized tunnel access, potentially exposing internal service endpoints or allowing data exfiltration through the tunnel. The CVSS score is 6.8 (Medium), and the EPSS score is 0.0%, indicating low exploitation likelihood in the wild. No public proof-of-concept or exploit code is available.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

Sentry is a self-hosted or cloud-based platform. This vulnerability affects the Sentry relay/tunnel component, which is part of the Sentry server-side infrastructure. Organizations using Sentry's tunnel feature to protect internal services should review their configurations and apply any available updates from Sentry.

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
  • Base Score: 6.8 (Medium)
  • Attack Vector: Network (AV:N)
  • Attack Complexity: Low (AC:L)
  • Privileges Required: Low (PR:L) – requires an authenticated device
  • User Interaction: None (UI:N)
  • Scope: Unchanged (S:U)
  • Confidentiality Impact: Low (C:L) – unauthorized tunnel access may leak service metadata
  • Integrity Impact: Low (I:L) – tunnel access could be used to manipulate tunneled traffic
  • Availability Impact: None (A:N)

Deep Dive & Mechanics

Sentry provides a tunnel feature that allows enrolled devices to securely communicate with internal services without exposing them directly to the internet. The tunnel authenticates the device and then proxies requests to the protected service.

The vulnerability lies in the authorization check within the tunnel handler. When a request arrives from an enrolled device, Sentry verifies the device's authentication but fails to properly validate whether that device is authorized to access the specific target service. This means an attacker who has compromised or enrolled a device (or is an authenticated user) can send requests through the tunnel to any service that Sentry is configured to protect, even if the device's policy does not permit access to that service.

The flaw is in the authorization logic, likely in the tunnel routing or policy enforcement code. The attacker does not need to authenticate to the target service; they only need to send requests through the tunnel, which Sentry will forward to the internal service. This could allow an attacker to probe internal services, access sensitive endpoints, or perform actions on services that are otherwise protected.

Vulnerable vs. Patched Code

No specific code diff is available. The vulnerability is in the authorization check for tunneled requests. A patched version would likely include a check that verifies the device's policy against the target service before forwarding the request.

Vulnerable Code (Conceptual):

def handle_tunnel_request(request):
    device = authenticate_device(request)
    if device:
        # Missing authorization check
        forward_to_service(request)
    else:
        return 401

Patched Code (Conceptual):

def handle_tunnel_request(request):
    device = authenticate_device(request)
    if device and is_authorized(device, request.target_service):
        forward_to_service(request)
    else:
        return 403

Exploitation & Lab Setup

Red Team

  1. Prerequisites: An authenticated device (e.g., a compromised device enrolled in Sentry) or a valid user session.
  2. Identify Target: Determine the internal service protected by Sentry's tunnel (e.g., https://sentry-tunnel.example.com/api/internal).
  3. Craft Request: Send a request through the tunnel to a service the device is not authorized to access.
    curl -X GET "https://sentry-tunnel.example.com/tunnel?target=http://internal-service:8080/admin" \
         -H "Authorization: Bearer <device_token>"
    
  4. Observe Response: If the request is forwarded, the attacker gains unauthorized access to the internal service.

Blue Team

  1. Monitor Tunnel Logs: Look for requests to services that are not in the device's authorized policy.
  2. Review Device Policies: Ensure all enrolled devices have strict, least-privilege policies.
  3. Network Segmentation: Isolate internal services and restrict tunnel access to only necessary services.
  4. Audit Authentication: Verify that device tokens are rotated and not shared.

Indicators of Compromise (IOCs)

  • Network: Unusual requests from Sentry tunnel to internal services not in the device's policy.
  • Logs: Sentry tunnel logs showing requests to unauthorized target services.
  • Device: Compromised device tokens or unauthorized device enrollments.

Detection Engineering

YARA Rule

rule CVE_2023_39338_Sentry_Tunnel_Bypass {
    meta:
        description = "Detects potential exploitation of CVE-2023-39338 in Sentry tunnel logs"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2023-39338"
    strings:
        $sentry_tunnel = "sentry-tunnel" nocase
        $unauthorized = "unauthorized" nocase
        $target_service = "target" nocase
    condition:
        $sentry_tunnel and ($unauthorized or $target_service)
}

Sigma Rule

title: CVE-2023-39338 Sentry Tunnel Authorization Bypass
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects unauthorized tunnel requests in Sentry logs
author: Valters IT
date: 2025-04-10
logsource:
    category: application
    product: sentry
detection:
    selection:
        event: "tunnel_request"
        target_service: "*"
        authorized: false
    condition: selection
falsepositives:
    - Legitimate policy changes
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2023-39338 Sentry Tunnel Authorization Bypass"; flow:to_server; content:"sentry-tunnel"; http_uri; content:"target"; http_uri; classtype:attempted-recon; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Update Sentry: Apply any patches or updates from Sentry that address this vulnerability.
  2. Restrict Tunnel Policies: Ensure that each enrolled device has a strict policy that only allows access to necessary services.
  3. Monitor Tunnel Activity: Enable logging and monitoring for tunnel requests to detect unauthorized access attempts.
  4. Network Segmentation: Place internal services behind a firewall and restrict tunnel access to only required services.
  5. Device Authentication: Use strong authentication for device enrollment and rotate tokens regularly.

Valters IT
Securing Digital Frontiers

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

sentry tunnel
sentry relay

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2023-39338/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.