// For flags

CVE-2020-26273

sqlite ATTACH allows some filesystem access

Severity Score

5.2
*CVSS v3.1

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

2
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

-
*SSVC
Descriptions

osquery is a SQL powered operating system instrumentation, monitoring, and analytics framework. In osquery before version 4.6.0, by using sqlite's ATTACH verb, someone with administrative access to osquery can cause reads and writes to arbitrary sqlite databases on disk. This _does_ allow arbitrary files to be created, but they will be sqlite databases. It does not appear to allow existing non-sqlite files to be overwritten. This has been patched in osquery 4.6.0. There are several mitigating factors and possible workarounds. In some deployments, the people with access to these interfaces may be considered administrators. In some deployments, configuration is managed by a central tool. This tool can filter for the `ATTACH` keyword. osquery can be run as non-root user. Because this also limits the desired access levels, this requires deployment specific testing and configuration.

osquery es un framework de instrumentación, monitoreo y análisis del sistema operativo basado en SQL. En osquery versiones anteriores a 4.6.0, al usar el verbo ATTACH de sqlite, alguien con acceso administrativo a osquery puede causar lecturas y escrituras en bases de datos sqlite arbitrarias sobre el disco. Este _does_ permite que archivos arbitrarios sean creados, pero serán bases de datos sqlite. No parece permitir que se sobrescriban los archivos existentes que no son sqlite. Esto ha sido parcheado en osquery versión 4.6.0. Se presentan varios factores atenuantes y posibles soluciones. En algunas implementaciones, las personas con acceso a estas interfaces pueden considerarse administradores. En algunas implementaciones, la configuración es administrada por una herramienta central. Esta herramienta puede filtrar por la palabra clave "ATTACH". osquery puede ser ejecutado como usuario no root. Porque esto también limita los niveles de acceso deseados, esto requiere pruebas y configuración específica de la implementación

*Credits: N/A
CVSS Scores
Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
Attack Vector
Local
Attack Complexity
Low
Authentication
None
Confidentiality
Partial
Integrity
Partial
Availability
None
* Common Vulnerability Scoring System
SSVC
  • Decision:-
Exploitation
-
Automatable
-
Tech. Impact
-
* Organization's Worst-case Scenario
Timeline
  • 2020-10-01 CVE Reserved
  • 2020-12-16 CVE Published
  • 2023-03-09 EPSS Updated
  • 2024-08-04 CVE Updated
  • 2024-08-04 First Exploit
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
CWE
  • CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
CAPEC
Affected Vendors, Products, and Versions
Vendor Product Version Other Status
Vendor Product Version Other Status <-- --> Vendor Product Version Other Status
Linuxfoundation
Search vendor "Linuxfoundation"
Osquery
Search vendor "Linuxfoundation" for product "Osquery"
< 4.6.0
Search vendor "Linuxfoundation" for product "Osquery" and version " < 4.6.0"
-
Affected