Sårbarheter

CVE-2026-45721

Kritisk 9.0 CVSS 3.1

Beskrivelse

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.

Beskrivelsen gjengis slik kilden har publisert den, på engelsk.

Nøkkelfakta

Publisert
2026-05-26
Sist endret
2026-07-24
Tildelt av
security-advisories@github.com
CVSS-vektor
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Scoret av
security-advisories@github.com
Sannsynlighet for utnyttelse
0.4 % høyere enn 36 % av alle kjente sårbarheter
EPSS, neste 30 dager, modell v2026.06.15
Rettelse finnes
Ikke registrert hos kildene

Berørte produkter

Leverandør Produkt Versjoner Status
github.com/xyproto algernon (Go) < 1.17.7 Berørt

Svakhetstype

Angrepsteknikker

Utledet gjennom svakhetstypen: CVE til CWE til CAPEC til ATT&CK. Dette viser hvilke teknikker svakhetsklassen historisk brukes til. Det er ikke en påstand om at nettopp denne sårbarheten er utnyttet slik.

  • T1003: OS Credential Dumping credential-access
  • T1027: Obfuscated Files or Information stealth
  • T1036.001: Invalid Code Signature stealth
  • T1039: Data from Network Shared Drive collection
  • T1119: Automated Collection collection
  • T1213: Data from Information Repositories collection
  • T1530: Data from Cloud Storage collection
  • T1539: Steal Web Session Cookie credential-access
  • T1552.001: Credentials In Files credential-access
  • T1552.003: Shell History credential-access
  • T1552.004: Private Keys credential-access
  • T1552.006: Group Policy Preferences credential-access
  • T1553.002: Code Signing defense-impairment
  • T1555: Credentials from Password Stores credential-access
  • T1574.006: Dynamic Linker Hijacking stealth, execution
  • T1574.007: Path Interception by PATH Environment Variable stealth, execution
  • T1574.009: Path Interception by Unquoted Path stealth, execution
  • T1602: Data from Configuration Repository collection

Referanser

Berører dette dere?

En sårbarhet betyr bare noe hvis dere kjører produktet, i en berørt versjon, et sted en angriper kommer til.

Sjekk aktivalisten deres Bla i alle sårbarheter