CVE-2021-41395
Teleport vulnerability analysis and mitigation

Overview

Teleport before 6.2.12 and 7.x before 7.1.1 contains a security vulnerability that allows attackers to control a database connection string in certain situations via a crafted database name or username (Teleport Release, Teleport Release). The vulnerability was discovered in September 2021 and affects the Database Access component of Teleport.

Technical details

When connecting to a Postgres database, an attacker could craft a database name or username in a way that would allow them control over the resulting connection string. This could enable the attacker to probe connections to other reachable database servers and alter connection parameters, such as disabling TLS or connecting to a database authenticated by password. The vulnerability has a CVSS v3.1 base score of 6.5 MEDIUM (Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N) (NVD).

Impact

The vulnerability allows attackers to potentially probe connections to other reachable database servers and modify connection parameters. This could result in unauthorized access to databases, the ability to disable security features like TLS, or connect to password-authenticated databases (Teleport Release).

Mitigation and workarounds

Users are strongly recommended to upgrade to the patched versions: Teleport 7.1.1 for 7.x users or Teleport 6.2.12 for 6.x users. If upgrading all components is not possible, priority should be given to upgrading tsh and Teleport agents that use reverse tunnels. The upgrade should follow the normal Teleport upgrade procedure (Teleport Release).

Additional resources


SourceThis report was generated using AI

Related Teleport vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-49825CRITICAL9.8
  • TeleportTeleport
  • cpe:2.3:a:goteleport:teleport
NoYesJun 17, 2025
CVE-2024-40635HIGH7.8
  • DockerDocker
  • containerd-1
NoYesMar 17, 2025
CVE-2025-30204HIGH7.5
  • DockerDocker
  • application-gateway-kubernetes-ingress
NoYesMar 21, 2025
CVE-2025-32387MEDIUM6.5
  • HelmHelm
  • chart-testing
NoYesApr 09, 2025
CVE-2025-32386MEDIUM6.5
  • HelmHelm
  • helm
NoYesApr 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management