You are viewing this page in an unauthorized frame window.
This is a potential security issue, you are being redirected to
https://nvd.nist.gov
An official website of the United States government
Official websites use .gov
A .gov website belongs to an official government organization in the United States.
Secure .gov websites use HTTPS
A lock () or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.
This CVE record is not being prioritized for NVD enrichment efforts due to resource or other concerns.
Description
Algernon is a small self-contained pure-Go web server. Prior to 1.17.7, when Algernon is asked for any URL path that resolves to a directory without an index file, DirPage walks upward through parent directories — past the configured server root — looking for a file named handler.lua to execute as the request handler. The loop terminates only after 100 ancestor steps or when filepath.Dir returns ., so on any absolute server-root path the search reaches the filesystem root (/ on Unix, drive letter on Windows). The first handler.lua it finds is loaded into the Lua interpreter with the full Algernon API exposed — including run3(), httpclient, os.execute, io.popen, PQ, MSSQL, raw filesystem access, and the userstate database. Any process that can write handler.lua anywhere in a parent directory of the server root obtains pre-authenticated remote code execution on the next HTTP request. This is reachable without authentication — the lookup happens before the permission check returns a hit (the perm system only gates URL prefixes, not the handler-resolution step), and any URL pointing at a directory without an index triggers the walk. On a fresh stock Algernon install the request GET / is enough. This vulnerability is fixed in 1.17.7.
Metrics
NVD enrichment efforts reference publicly available information to associate
vector strings. CVSS information contributed by other sources is also
displayed.
By selecting these links, you will be leaving NIST webspace.
We have provided these links to other web sites because they
may have information that would be of interest to you. No
inferences should be drawn on account of other sites being
referenced, or not, from this page. There may be other web
sites that are more appropriate for your purpose. NIST does
not necessarily endorse the views expressed, or concur with
the facts presented on these sites. Further, NIST does not
endorse any commercial products that may be mentioned on
these sites. Please address comments about this page to [email protected].
Title: Algernon de xyproto, Description: Algernon es un pequeño servidor web autocontenido y puro-Go. Antes de la versión 1.17.7, cuando se le solicita a Algernon cualquier ruta URL que se resuelva en un directorio sin un archivo de índice, DirPage asciende a través de los directorios padre - más allá de la raíz del servidor configurada - buscando un archivo llamado handler.lua para ejecutar como gestor de solicitudes. El bucle termina solo después de 100 pasos de ancestro o cuando filepath.Dir devuelve ., por lo que en cualquier ruta absoluta de la raíz del servidor la búsqueda alcanza la raíz del sistema de archivos (/ en Unix, letra de unidad en Windows). El primer handler.lua que encuentra se carga en el intérprete de Lua con la API completa de Algernon expuesta - incluyendo run3(), httpclient, os.execute, io.popen, PQ, MSSQL, acceso directo al sistema de archivos y la base de datos de estado de usuario. Cualquier proceso que pueda escribir handler.lua en cualquier lugar de un directorio padre de la raíz del servidor obtiene ejecución remota de código preautenticada en la siguiente solicitud HTTP. Esto es alcanzable sin autenticación - la búsqueda ocurre antes de que la verificación de permisos devuelva un acierto (el sistema de permisos solo restringe los prefijos URL, no el paso de resolución del gestor), y cualquier URL que apunte a un directorio sin un índice activa el recorrido. En una instalación nueva y estándar de Algernon la solicitud GET / es suficiente. Esta vulnerabilidad se corrige en la versión 1.17.7.
New CVE Received from GitHub, Inc.5/26/2026 1:16:47 PM
Action
Type
Old Value
New Value
Added
Description
Algernon is a small self-contained pure-Go web server. Prior to 1.17.7, when Algernon is asked for any URL path that resolves to a directory without an index file, DirPage walks upward through parent directories — past the configured server root — looking for a file named handler.lua to execute as the request handler. The loop terminates only after 100 ancestor steps or when filepath.Dir returns ., so on any absolute server-root path the search reaches the filesystem root (/ on Unix, drive letter on Windows). The first handler.lua it finds is loaded into the Lua interpreter with the full Algernon API exposed — including run3(), httpclient, os.execute, io.popen, PQ, MSSQL, raw filesystem access, and the userstate database. Any process that can write handler.lua anywhere in a parent directory of the server root obtains pre-authenticated remote code execution on the next HTTP request. This is reachable without authentication — the lookup happens before the permission check returns a hit (the perm system only gates URL prefixes, not the handler-resolution step), and any URL pointing at a directory without an index triggers the walk. On a fresh stock Algernon install the request GET / is enough. This vulnerability is fixed in 1.17.7.