Nixpkgs security tracker

Login with GitHub

Details of issue NIXPKGS-2026-2514

NIXPKGS-2026-2514
published 7 hours ago
Grav before 2.0.19 Remote Code Execution via sort filter
Permalink CVE-2026-85604
8.7 HIGH
  • CVSS version (CVSS): 4.0
  • Attack Vector (AV): Network (N)
  • Attack Complexity (AC): Low (L)
  • Attack Requirement (AT): None (N)
  • Privileges Required (PR): None (N)
  • User Interaction (UI): None (N)
  • Vulnerable System Impact Confidentiality (VC): High (H)
  • Vulnerable System Impact Integrity (VI): None (N)
  • Vulnerable System Impact Availability (VA): None (N)
  • Subsequent System Impact Confidentiality (SC): None (N)
  • Subsequent System Impact Integrity (SI): None (N)
  • Subsequent System Impact Availability (SA): None (N)
  • Modified Attack Vector (MAV): Network (N)
  • Modified Attack Complexity (MAC): Low (L)
  • Modified Attack Requirement (MAT): None (N)
  • Modified Privileges Required (MPR): None (N)
  • Modified User Interaction (MUI): None (N)
  • Modified Vulnerable System Impact Confidentiality (MVC): High (H)
  • Modified Vulnerable System Impact Integrity (MVI): None (N)
  • Modified Vulnerable System Impact Availability (MVA): None (N)
  • Modified Subsequent System Impact Confidentiality (MSC): Negligible (N)
  • Modified Subsequent System Impact Integrity (MSI): Negligible (N)
  • Modified Subsequent System Impact Availability (MSA): Negligible (N)
  • Safety (S): Not Defined (X)
  • Automatable (AU): Not Defined (X)
  • Recovery (R): Not Defined (X)
  • Value Density (V): Not Defined (X)
  • Vulnerability Response Effort (RE): Not Defined (X)
  • Provider Urgency (U): Not Defined (X)
  • Confidentiality Req. (CR): Not Defined (X)
  • Integrity Req. (IR): Not Defined (X)
  • Availability Req. (AR): Not Defined (X)
  • Exploit Maturity (E): Not Defined (X)
updated 7 hours ago by @LeSuisse Activity log
  • Created suggestion
  • @LeSuisse ignored
    19 packages
    • gravit
    • antigravity
    • antigravity-cli
    • antigravity-fhs
    • antigravity-ide
    • antigravity-ide-fhs
    • stardust-xr-gravity
    • kdePackages.libgravatar
    • bulwark-plugins.gravatar
    • gnomeExtensions.gravatar
    • python313Packages.libgravatar
    • haskellPackages.gravatar
    • python314Packages.libgravatar
    • python314Packages.flask-gravatar
    • python313Packages.django-gravatar2
    • python313Packages.flask-gravatar
    • python314Packages.django-gravatar2
    • perlPackages.MojoliciousPluginGravatar
    • perl5Packages.MojoliciousPluginGravatar
  • @LeSuisse accepted
  • @LeSuisse published on GitHub
Grav before 2.0.19 Remote Code Execution via sort filter

Grav before 2.0.19 (affected versions <= 2.0.17) contains a remote code execution vulnerability in the Twig sort filter. The sortFunc wrapper in GravExtension.php hardcodes Twig's isSandboxed argument to false, so unlike |map/|filter/|reduce, |sort accepts a plain function name inside the sandbox; the remaining denylist misses spl_autoload, which performs a PHP include. An authenticated user with only page-write rights (admin.pages or api.pages.write) can supply a crafted payload (e.g., via form frontmatter rendered by the Email plugin) that invokes spl_autoload through the sort filter, resulting in arbitrary PHP execution as the web server user.

Affected products

grav
  • ==2.0.19
  • <2.0.19

Matching in nixpkgs

Ignored packages (19)

pkgs.gravit

Beautiful OpenGL-based gravity simulator

pkgs.antigravity

Agentic development platform, evolving the IDE into the agent-first era

pkgs.antigravity-fhs

Wrapped variant of antigravity-ide which launches in a FHS compatible environment, should allow for easy usage of extensions without nix-specific modifications

pkgs.antigravity-ide

Agentic development platform, evolving the IDE into the agent-first era

  • nixos-unstable -
    • nixos-unstable-small 2.5.5

pkgs.antigravity-ide-fhs

Wrapped variant of antigravity-ide which launches in a FHS compatible environment, should allow for easy usage of extensions without nix-specific modifications

  • nixos-unstable -
    • nixos-unstable-small 2.5.5

pkgs.bulwark-plugins.gravatar

Resolves Gravatar profile pictures for email contacts via the avatar transform hook

  • nixos-unstable -
    • nixos-unstable-small 1.3.1

pkgs.gnomeExtensions.gravatar

Synchronize GNOME Shell user icon with an avatar service, one of Gravatar or Libravatar.

  • nixos-unstable 10
    • nixpkgs-unstable 10
    • nixos-unstable-small 10
  • nixos-26.05 10
    • nixos-26.05-small 10
    • nixpkgs-26.05-darwin 10

Package maintainers