Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-112779 Overview
CVE-2026-112779 affects the Grav API plugin (grav-plugin-api) and combines two distinct flaws in a single advisory. Versions 1.0.40 before 1.0.42 cache a full translation dictionary for every well-formed language code sent to the unauthenticated GET /api/v1/translations/{lang} endpoint. Versions 1.0.16 before 1.0.42 also fail to check target and destination page rules in the sync and batch copy endpoints. Unauthenticated attackers can send small requests that each store about 560 KB, exhausting disk or APCu cache. Authenticated accounts with api.pages.write can overwrite translations or create pages that page-level rules should deny.
Critical Impact
Unauthenticated resource exhaustion combined with authenticated page permission bypass enables denial of service and unauthorized content modification against Grav CMS installations running the API plugin.
Affected Products
- Grav API plugin (grav-plugin-api) versions 1.0.40 through 1.0.41 (cache exhaustion)
- Grav API plugin (grav-plugin-api) versions 1.0.16 through 1.0.41 (page permission bypass)
- All Grav CMS deployments exposing the API plugin to untrusted networks
Discovery Timeline
- 2026-10-19 - CVE-2026-112779 published to NVD
- 2026-10-20 - Last updated in NVD database
Technical Details for CVE-2026-112779
Vulnerability Analysis
The advisory covers two weaknesses in grav-plugin-api, both categorized under [CWE-770] (Allocation of Resources Without Limits or Throttling). The first flaw lives in the unauthenticated translations endpoint. When a client requests GET /api/v1/translations/{lang} with any well-formed language code, the plugin loads and caches the full translation dictionary keyed by that code. Because the plugin does not restrict the input to known locales or enforce a cache ceiling, each new code adds roughly 560 KB to disk or to the Alternative PHP Cache User Cache (APCu).
The second flaw involves the sync and batch copy endpoints. These endpoints move or duplicate pages but omit the per-page permission checks that other write endpoints enforce. An authenticated user holding the api.pages.write scope can therefore operate on pages that page-level rules were designed to protect, overwriting translations or creating pages in restricted paths.
Root Cause
The translations endpoint accepts arbitrary language identifiers as cache keys without validating them against a configured locale list or enforcing eviction. The sync and batch copy handlers rely on the coarse api.pages.write scope rather than evaluating the fine-grained page rules that the standard page APIs apply.
Attack Vector
Exploitation requires only network access to the Grav API endpoints. For the resource exhaustion path, attackers script repeated GET requests to /api/v1/translations/{lang} while iterating language codes. Each small request produces a disproportionate cache write, consuming storage until the backing store fills. For the permission bypass, an attacker who already holds API credentials with api.pages.write routes writes through the sync or batch copy endpoints to bypass page-level deny rules.
See the GitHub Security Advisory GHSA-8pcm-97fc-4xwh and the VulnCheck Advisory for Grav API Plugin for additional technical detail.
Detection Methods for CVE-2026-112779
Indicators of Compromise
- High-volume GET requests to /api/v1/translations/{lang} with varying or random language codes from a single source
- Rapid growth in APCu memory usage or in the Grav cache directory on disk without a corresponding content change
- Unexpected calls to sync or batch copy endpoints from accounts that lack UI-level page write permissions
- Pages or translations created or modified in paths that page-level rules were configured to deny
Detection Strategies
- Log and alert on request rates to /api/v1/translations/* that exceed a baseline per source IP
- Correlate API request logs with cache storage metrics to identify disproportionate growth per request
- Audit API access logs for use of sync and batch copy endpoints and compare the acting user against the page rules governing the target paths
Monitoring Recommendations
- Instrument disk utilization on the Grav cache directory and APCu memory, with alerts well below exhaustion thresholds
- Forward Grav and web server access logs to a centralized analytics backend for anomaly detection
- Track the inventory of distinct language codes requested over rolling windows to surface enumeration patterns
How to Mitigate CVE-2026-112779
Immediate Actions Required
- Upgrade grav-plugin-api to version 1.0.42 or later on all Grav CMS installations
- Restrict network exposure of the /api/v1/* endpoints to trusted administrative networks until the upgrade is applied
- Review accounts that hold the api.pages.write scope and remove the scope from users that do not require page write access
- Audit the Grav page tree and translation catalog for unauthorized changes introduced through the sync or batch copy endpoints
Patch Information
The maintainers fixed both issues in grav-plugin-api version 1.0.42. The patched release validates language codes against configured locales for the translations endpoint and enforces page-level rule evaluation in the sync and batch copy endpoints. Refer to the GitHub Security Advisory GHSA-8pcm-97fc-4xwh for upgrade guidance.
Workarounds
- Place a reverse proxy or web application firewall rule in front of /api/v1/translations/ that rejects language codes outside an allow list of supported locales
- Rate-limit unauthenticated requests to the translations endpoint at the proxy layer
- Disable the sync and batch copy endpoints at the proxy until the plugin can be upgraded if those features are not in active use
- Monitor and cap APCu memory and the Grav cache directory size to contain exhaustion impact
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

