GHSA-2cfc-5mg3-74jc
Remote code execution through tagging-rule import in wallabag
- vendor
- wallabag
- product
- wallabag
- affected
- >= 2.4.0, <= 2.6.17
- fixed in
- 2.6.18
- severity
- 8.8 HIGH
- vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- weakness
- CWE-20, CWE-94
- disclosed
- 2026-11-19
- credit
- Co-reporter, one of 9 credited researchers
Description
wallabag lets users define tagging rules, which are compiled to PHP code when they are evaluated. The rule form validated each rule, but the tagging-rule import did not. Any authenticated user could import a crafted rule and then save an entry, making the server evaluate it.
Impact
Any registered user could run code with the privileges of the web server. A rule could also read fields of other users’ accounts through shared tags, such as a password reset token, which allowed account takeover.
Fix
wallabag 2.6.18 validates imported rules the same way as the form (allowed variables and operators, no control characters) and rejects an import that contains an invalid rule. Stored rules are also checked when they are evaluated; invalid ones are ignored and logged. The same applies to the “ignore origin” rules.
Workaround
Upgrade to 2.6.18. Until then, disable registration of new users and remove the tagging
rules of untrusted users. After upgrading, clear the cache (var/cache) and review your
users’ tagging rules.