SecurityContext

CVE-2021-28131: Impala - Session Hijacking & Privilege Escalation

  • Cve: CVE-2021-28131
  • Name: Impala - Session Hijacking & Privilege Escalation
  • Description: Impala sessions use a 16 byte secret to verify that the session is not being hijacked by another user. However, these secrets appear in the Impala logs, therefore Impala users with access to the logs can use another authenticated user's sessions with specially constructed requests. This means the attacker is able to execute statements for which they don't have the necessary privileges otherwise. Impala deployments with Apache Sentry or Apache Ranger authorization enabled may be vulnerable to privilege escalation if an authenticated attacker is able to hijack a session or query from another authenticated user with privileges not assigned to the attacker. Impala deployments with audit logging enabled may be vulnerable to incorrect audit logging as a user could undertake actions that were logged under the name of a different authenticated user. Constructing an attack requires a high degree of technical sophistication and access to the Impala system as an authenticated user. Mitigation: If an Impala deployment uses Apache Sentry, Apache Ranger or audit logging, then users should upgrade to a version of Impala with the fix for IMPALA-10600. The Impala 4.0 release includes this fix. This hides session secrets from the logs to eliminate the risk of any attack using this mechanism. In lieu of an upgrade, restricting access to logs that expose secrets will reduce the risk of an attack. Restricting access to the Impala deployment to trusted users will also reduce the risk of an attack. Log redaction techniques can be used to redact secrets from the logs.
  • Impact: Attackers can hijack sessions, escalate privileges, and perform actions as other users, potentially leading to privilege escalation and incorrect audit logs.
  • Remediation: Upgrade to Impala 4.0 or later, which fixes IMPALA-10600, or restrict access to logs and use log redaction techniques.
  • Vulnerability type: broken_access_control
  • Vulnerability impact: privilege_escalation, information_disclosure
  • Requirement type: logged_in
  • Requirements: Attacker must be authenticated and have access to logs
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.03324
  • Epss percentile: 0.88912
  • Assignee: [email protected]
  • Published at: 2021-07-22T10:15:07Z
  • Age in days: 1951
  • Modified at: 2026-06-17T03:45:51Z
  • Patch available: yes
  • References total: 3
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-28131
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd

Cwe

IdName
CWE-288Authentication Bypass Using an Alternate Path or Channel
CWE-532Insertion of Sensitive Information into Log File

Hackerone

  • Reports: 1
  • Rank: 5193

References

Same in every row:

  • Source: nvd
UrlTags
https://lists.apache.org/thread.html/rb54f54a91b7abaf1ed772f3a9cec290153c24881b25567b06f1b4a8c%40%3Cuser.impala.apache.org%3EMailing List, Vendor Advisory
http://www.openwall.com/lists/oss-security/2021/07/22/3Mailing List, Third Party Advisory
https://lists.apache.org/thread.html/rb54f54a91b7abaf1ed772f3a9cec290153c24881b25567b06f1b4a8c%40%3Cannounce.apache.org%3E

Products

ProductAffectedPlatform boundSourcesUrl
apache:impala< 4.0.0nonvd/v1/products/apache/impala

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Hackerone reports: 1
  • Exposed hosts: 5
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since