{"id":"CVE-2026-78381","aliases":["CVE-2026-78381"],"related":[],"kind":"vulnerability","state":"published","title":"RansomLook Arbitrary File Read via Path Traversal in Post screen Field","summary":"RansomLook contains a path traversal vulnerability in the handling of the screen field associated with group posts. The GroupPost.get API handler concatenates the database-controlled screen value directly with the application's source/ directory and opens the resulting path without verifying that the resolved file remains within the intended directory.\n\nBecause the screen field is free-form and can be populated either through the administrative post editor or through data imported from a remote RansomLook instance, a malicious upstream instance can provide traversal sequences such as ../config/generic.json. When the affected post is subsequently retrieved through the API, RansomLook resolves and reads the attacker-controlled path and returns the contents of the referenced file Base64-encoded in the API response.\n\nThis can allow an attacker (being admin) controlling imported post data to read arbitrary files accessible to the RansomLook process, potentially exposing sensitive configuration data, API credentials, password hashes, or other application secrets. The attack does not require the malicious upstream to possess an account on the affected RansomLook instance.\n\nThe vulnerability is addressed by resolving screen paths with os.path.realpath() and verifying that the resolved path remains beneath the application's source/ directory. Validation is performed both when values are written and immediately before files are read. Using canonical paths also prevents traversal through symbolic links that would bypass purely lexical path normalization checks.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"RansomLook contains a path traversal vulnerability in the handling of the screen field associated with group posts. The GroupPost.get API handler concatenates the database-controlled screen value directly with the application's source/ directory and opens the resulting path without verifying that the resolved file remains within the intended directory.\n\nBecause the screen field is free-form and can be populated either through the administrative post editor or through data imported from a remote RansomLook instance, a malicious upstream instance can provide traversal sequences such as ../config/generic.json. When the affected post is subsequently retrieved through the API, RansomLook resolves and reads the attacker-controlled path and returns the contents of the referenced file Base64-encoded in the API response.\n\nThis can allow an attacker (being admin) controlling imported post data to read arbitrary files accessible to the RansomLook process, potentially exposing sensitive configuration data, API credentials, password hashes, or other application secrets. The attack does not require the malicious upstream to possess an account on the affected RansomLook instance.\n\nThe vulnerability is addressed by resolving screen paths with os.path.realpath() and verifying that the resolved path remains beneath the application's source/ directory. Validation is performed both when values are written and immediately before files are read. Using canonical paths also prevents traversal through symbolic links that would bypass purely lexical path normalization checks.","source":"cvelist"},{"lang":"es","text":"RansomLook contiene una vulnerabilidad de salto de ruta en el manejo del campo screen asociado con las publicaciones de grupo. El gestor de la API GroupPost.get concatena el valor screen controlado por la base de datos directamente con el directorio source/ de la aplicación y abre la ruta resultante sin verificar que el archivo resuelto permanezca dentro del directorio previsto.\n\nDebido a que el campo screen es de formato libre y puede ser rellenado ya sea a través del editor de publicaciones administrativo o a través de datos importados de una instancia remota de RansomLook, una instancia ascendente maliciosa puede proporcionar secuencias de salto de ruta como ../config/generic.json. Cuando la publicación afectada es recuperada posteriormente a través de la API, RansomLook resuelve y lee la ruta controlada por el atacante y devuelve el contenido del archivo referenciado codificado en Base64 en la respuesta de la API.\n\nEsto puede permitir a un atacante (siendo administrador) que controla los datos de publicaciones importados leer archivos arbitrarios accesibles al proceso de RansomLook, exponiendo potencialmente datos de configuración sensibles, credenciales de API, hashes de contraseñas u otros secretos de la aplicación. El ataque no requiere que el origen malicioso posea una cuenta en la instancia de RansomLook afectada.\n\nLa vulnerabilidad se aborda resolviendo las rutas screen con os.path.realpath() y verificando que la ruta resuelta permanezca debajo del directorio source/ de la aplicación. La validación se realiza tanto cuando se escriben los valores como inmediatamente antes de que se lean los archivos. El uso de rutas canónicas también previene el salto de ruta a través de enlaces simbólicos que eludirían las comprobaciones de normalización de rutas puramente léxicas.","source":"nvd"}],"published":"2026-08-24T13:32:55.318Z","modified":"2026-10-14T13:10:00.187Z","severity":{"scorer":"CIRCL","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"CIRCL","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N","score":8.2,"rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"2.0.0","status":"affected"}],"vendor":"ransomlook","product":"ransomlook","repo":"https://github.com/RansomLook/RansomLook/c","source":"cvelist"}],"references":[{"url":"https://github.com/RansomLook/RansomLook/commit/274faccf65898e88ef54f35f304e0821a852a0b8","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":["Jeroen Pinoy","Fafner [_KeyZee_]"],"assigner":"CIRCL","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-24T15:18:55.168Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-78381","url":"https://www.cve.org/CVERecord?id=CVE-2026-78381","licence":"CVE Terms of Use","modified":"2026-08-24T15:19:10.734Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-78381","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-78381","licence":"Public domain","modified":"2026-10-14T13:10:00.187Z"}],"updatedAt":"2026-11-25T22:59:35.016Z","epss":{"score":0.00394,"percentile":0.35747,"date":"2026-12-01T12:00:22.000Z"}}