llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Packagist · nilsteampassnet/teampass

GHSA-9823-P8PG-RFM4

API item/changes leaks instance-wide item change metadata to callers with no folder access

Sin parche publicado
Descargar PNG JSON
CVSS 3.1
4.3
Media
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
ParcheSin parcheEl fabricante no ha publicado corrección
Exposición87 dDesde la divulgación, 26 ago 2026, 12:17 a. m.
Detección85 dDesde la divulgación hasta su ingreso al índice
Decisión estimadaSeguir
Remediar en la ventana regular de mantenimiento
Estimación de Llama con el árbol SSVC de CISA a partir de vector CVSS 3.1 y la evidencia de explotación (sin evaluación oficial): sin explotación conocida, no automatizable e impacto técnico parcial. No hay versión corregida: aplique mitigaciones.
Hoy toca orden, no heroísmo.Se arregla en el próximo ciclo. Sin estrés.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Monitoreo
Detectada +1
26 ago 26
19 nov 26
21 nov 26
26 ago 26
17 sept 26
8 oct 26
30 oct 26
21 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-9823-P8PG-RFM4 divulgada · CVSS 4.3 (GitHub)
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés
Summary

The delta-sync endpoint `GET /api/v1/item/changes` scopes the revision journal with a sentinel folder id of `0` when the caller has no accessible folders. Because `items_revisions.previous_folder_id` is `NOT NULL DEFAULT '0'` and is only populated on a move, the clause `r.previous_folder_id IN (0)` matches every non-move journal row in the instance. An API caller with zero folder access receives a `removed[]` entry for every item changed anywhere in the instance within the sync window.

Details

`app/api/Controller/Api/ItemController.php`:

$safeFolders = implode(
    ',',
    $folderAccessModel->normalizeFolderIds($userData['folders_list'] ?? '')
) ?: '0';
...
$journalScopeSql = ' AND (r.folder_id IN (' . $safeFolders . ')'
    . ' OR r.previous_folder_id IN (' . $safeFolders . ')';

The `?: '0'` sentinel is correct for `items.id_tree` (no folder has id 0, so the clause matches nothing) but wrong for `previous_folder_id`, whose schema default *is* 0:

`previous_folder_id` INT(12) NOT NULL DEFAULT '0' COMMENT 'Source folder, set on move only',

Every creation, update, deletion and restore therefore carries `previous_folder_id = 0` and falls inside the scope. `ItemModel::getItemChanges()` then classifies those rows: the item visibility query correctly returns nothing, but the second, deliberately unscoped existence probe still runs, so each candidate is emitted in `removed[]` rather than being dropped.

The leak is metadata only — `removed[]` carries `{id, revision, reason}`. Item labels, passwords and custom fields are never disclosed, because the payload materialization path (`getItems()`) applies the visibility constraint correctly. What an unauthorized caller learns is the set of item ids that exist and change, their change ordering, and the instance's activity rate.

PoC
  1. Create an API-enabled user with no folder rights (`folders_list` empty).
  2. Authenticate and call `GET /api/v1/item/changes?since=0&limit=200` to obtain a cursor, then call it again with that cursor.
  3. The response returns `removed` entries for items across the whole instance, none of which the caller may read.
Impact

Information disclosure of item identifiers and change activity to authenticated API callers outside their authorization scope. No secret material is exposed.

Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.

Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · GitHub
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:L
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:L
AltoBajoNinguno
IntegridadI:N
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
8.3/ 10Alto
Vector 8.3 (muy fácil) · sin evidencia de explotación.
Versiones

Versiones afectadas

3.2.2.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
Packagistnilsteampassnet/teampass
Sin parche — — —
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://github.com/nilsteampassnet/TeamPass/security/advisories/GHSA-9823-p8pg-rfm4

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.