Cloudanix VulnDB

CVE-2020-24736

Medium · 5.5

CVSS

5.5

EPSS

0.3%

Published

Apr 11, 2023

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in an older database component used by Grafana lets someone with local access crash the application, interrupting dashboards and monitoring until the software is updated.

Exploit Available
Exploitation
Local Privilege
Attacker needs
Low Privilege
Complexity
Low
Impact
Denial Of Service
Component
Library
Class
Buffer Overflow
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Buffer overflow in SQLite3 <= 3.27.1 triggered by a crafted script, resulting in denial of service.

Why it matters to the business

Local attackers can crash Grafana instances that embed vulnerable SQLite, causing service outages; prevalence in Grafana deployments increases exposure for organizations relying on the product.

How an attack unfolds

A local attacker supplies a malicious script to Grafana's SQLite usage path; the malformed input overflows a buffer in SQLite3, crashing the process. No remote code execution or ransomware usage is associated.

How to fix it

Upgrade Grafana to 9.5.3 or later; for GIT builds apply commits 37ee25ba46e426bd2bcf45b8174af4fe88baeef7 or 916d9793aa81c2990640b55a15dee0db6b525e41. Replace any embedded SQLite3 instances older than 3.27.2.

How to confirm the fix worked

Verify Grafana version is 9.5.3+, confirm SQLite3 library version >= 3.27.2 via binary inspection or build logs, and test that crafted scripts no longer trigger crashes.

Typical attack path

  1. Obtain local access or script execution rights on a Grafana host
  2. Craft and submit a malicious SQLite script through Grafana features that invoke the database
  3. Trigger the buffer overflow condition leading to process termination

How to detect it

Review Grafana process crash logs and system logs for SQLite-related segmentation faults or buffer overflow signals around the time of suspected local script activity; no widespread remote exploitation indicators exist.

What your security team should do

  • Prioritize upgrade to Grafana 9.5.3 within 30 days given public exploit availability
  • Audit all Grafana deployments for embedded SQLite versions
  • Restrict local script execution privileges where possible
  • Monitor for future SQLite-related CVEs in the Grafana supply chain

The record

Buffer Overflow vulnerability found in SQLite3 v.3.27.1 and before allows a local attacker to cause a denial of service via a crafted script.

Affected packages

Ecosystem Package Introduced Fixed
AlmaLinux:8 lemon 0 3.26.0-18.el8_8
AlmaLinux:8 sqlite 0 3.26.0-18.el8_8
AlmaLinux:8 sqlite-devel 0 3.26.0-18.el8_8
AlmaLinux:8 sqlite-doc 0 3.26.0-18.el8_8
AlmaLinux:8 sqlite-libs 0 3.26.0-18.el8_8
Debian:11 sqlite3 0 3.27.2-1
Debian:12 sqlite3 0 3.27.2-1
Debian:13 sqlite3 0 3.27.2-1
Red Hat:enterprise_linux:8::appstream lemon 0 0:3.26.0-18.el8_8
Red Hat:enterprise_linux:8::appstream lemon-debuginfo 0 0:3.26.0-18.el8_8
Red Hat:enterprise_linux:8::appstream sqlite 0 0:3.26.0-18.el8_8
Red Hat:enterprise_linux:8::appstream sqlite-analyzer-debuginfo 0 0:3.26.0-18.el8_8
Red Hat:enterprise_linux:8::appstream sqlite-debuginfo 0 0:3.26.0-18.el8_8
Red Hat:enterprise_linux:8::appstream sqlite-debugsource 0 0:3.26.0-18.el8_8
Red Hat:enterprise_linux:8::appstream sqlite-devel 0 0:3.26.0-18.el8_8
Red Hat:enterprise_linux:8::appstream sqlite-doc 0 0:3.26.0-18.el8_8
Red Hat:enterprise_linux:8::appstream sqlite-libs 0 0:3.26.0-18.el8_8
Red Hat:enterprise_linux:8::appstream sqlite-libs-debuginfo 0 0:3.26.0-18.el8_8
Red Hat:enterprise_linux:8::appstream sqlite-tcl-debuginfo 0 0:3.26.0-18.el8_8
Red Hat:enterprise_linux:8::baseos lemon 0 0:3.26.0-18.el8_8
Red Hat:enterprise_linux:8::baseos lemon-debuginfo 0 0:3.26.0-18.el8_8
Red Hat:enterprise_linux:8::baseos sqlite 0 0:3.26.0-18.el8_8
Red Hat:enterprise_linux:8::baseos sqlite-analyzer-debuginfo 0 0:3.26.0-18.el8_8
Red Hat:enterprise_linux:8::baseos sqlite-debuginfo 0 0:3.26.0-18.el8_8
Red Hat:enterprise_linux:8::baseos sqlite-debugsource 0 0:3.26.0-18.el8_8
Red Hat:enterprise_linux:8::baseos sqlite-devel 0 0:3.26.0-18.el8_8
Red Hat:enterprise_linux:8::baseos sqlite-doc 0 0:3.26.0-18.el8_8
Red Hat:enterprise_linux:8::baseos sqlite-libs 0 0:3.26.0-18.el8_8
Red Hat:enterprise_linux:8::baseos sqlite-libs-debuginfo 0 0:3.26.0-18.el8_8
Red Hat:enterprise_linux:8::baseos sqlite-tcl-debuginfo 0 0:3.26.0-18.el8_8
Red Hat:rhel_eus:8.6::appstream lemon 0 0:3.26.0-16.el8_6.1
Red Hat:rhel_eus:8.6::appstream lemon-debuginfo 0 0:3.26.0-16.el8_6.1
Red Hat:rhel_eus:8.6::appstream sqlite 0 0:3.26.0-16.el8_6.1
Red Hat:rhel_eus:8.6::appstream sqlite-analyzer-debuginfo 0 0:3.26.0-16.el8_6.1
Red Hat:rhel_eus:8.6::appstream sqlite-debuginfo 0 0:3.26.0-16.el8_6.1
Red Hat:rhel_eus:8.6::appstream sqlite-debugsource 0 0:3.26.0-16.el8_6.1
Red Hat:rhel_eus:8.6::appstream sqlite-devel 0 0:3.26.0-16.el8_6.1
Red Hat:rhel_eus:8.6::appstream sqlite-doc 0 0:3.26.0-16.el8_6.1
Red Hat:rhel_eus:8.6::appstream sqlite-libs 0 0:3.26.0-16.el8_6.1
Red Hat:rhel_eus:8.6::appstream sqlite-libs-debuginfo 0 0:3.26.0-16.el8_6.1
Red Hat:rhel_eus:8.6::appstream sqlite-tcl-debuginfo 0 0:3.26.0-16.el8_6.1
Red Hat:rhel_eus:8.6::baseos lemon 0 0:3.26.0-16.el8_6.1
Red Hat:rhel_eus:8.6::baseos lemon-debuginfo 0 0:3.26.0-16.el8_6.1
Red Hat:rhel_eus:8.6::baseos sqlite 0 0:3.26.0-16.el8_6.1
Red Hat:rhel_eus:8.6::baseos sqlite-analyzer-debuginfo 0 0:3.26.0-16.el8_6.1
Red Hat:rhel_eus:8.6::baseos sqlite-debuginfo 0 0:3.26.0-16.el8_6.1
Red Hat:rhel_eus:8.6::baseos sqlite-debugsource 0 0:3.26.0-16.el8_6.1
Red Hat:rhel_eus:8.6::baseos sqlite-devel 0 0:3.26.0-16.el8_6.1
Red Hat:rhel_eus:8.6::baseos sqlite-doc 0 0:3.26.0-16.el8_6.1
Red Hat:rhel_eus:8.6::baseos sqlite-libs 0 0:3.26.0-16.el8_6.1
Red Hat:rhel_eus:8.6::baseos sqlite-libs-debuginfo 0 0:3.26.0-16.el8_6.1
Red Hat:rhel_eus:8.6::baseos sqlite-tcl-debuginfo 0 0:3.26.0-16.el8_6.1
Rocky Linux:8 sqlite 0 0:3.26.0-18.el8_8
Ubuntu:14.04:LTS sqlite 0 No fix
Ubuntu:16.04:LTS sqlite 0 No fix
Ubuntu:18.04:LTS sqlite 0 No fix
Ubuntu:20.04:LTS sqlite 0 No fix
Ubuntu:20.04:LTS sqlite3 0 3.31.1-4ubuntu0.5
Ubuntu:22.04:LTS sqlite 0 No fix
Ubuntu:22.04:LTS sqlite3 0 3.37.2-2ubuntu0.1
Ubuntu:Pro:14.04:LTS sqlite 0 No fix
Ubuntu:Pro:16.04:LTS sqlite 0 No fix
Ubuntu:Pro:18.04:LTS sqlite 0 No fix
Ubuntu:Pro:20.04:LTS sqlite 0 No fix

Related vulnerabilities