Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-40694

Insufficient escaping of the LaTeX preamble made it possible for site administrators to read files available to the HTTP server system account.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-40694
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 07:09 UTC · Revision 1

Source evidence

CVE-2021-40694

core-osv · Original source

Published 29 Sept 2022, 03:15 UTC

Insufficient escaping of the LaTeX preamble made it possible for site administrators to read files available to the HTTP server system account.

osv:CVE-2021-40694
Complete source record
{
  "id": "3256ff7f5402c76d1ec5edf1f8fef6ca26a3aa77fcddc4232092d9d84b50d907",
  "url": "https://osv.dev/vulnerability/CVE-2021-40694",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-40694",
    "summary": "Insufficient escaping of the LaTeX preamble made it possible for site administrators to read files available to the HTTP server system account.",
    "evidence": "osv:CVE-2021-40694",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-40694",
      "aliases": [
        "BIT-moodle-2021-40694",
        "CVE-2021-40694",
        "GHSA-m37g-mwcg-7j7v"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/moodle/moodle",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0ec02c2a67c5030c6b6a5b6cc7d5c174c4e5c446"
                },
                {
                  "introduced": "ec58cefefb2722f61f77c9a2b6a12d40a8c078a0"
                },
                {
                  "fixed": "5af6e79b38980c76fd50d8b8da3bd60903b1e44c"
                },
                {
                  "introduced": "94f2d3fc4b974c5c7d500988c56b7ca15f58d7ec"
                },
                {
                  "fixed": "ab931f6aa7a7f1aaf356548dbe49f846778a7c81"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "3.9.10"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.10.0"
                      },
                      {
                        "fixed": "3.10.7"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.11.0"
                      },
                      {
                        "fixed": "3.11.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.11.1",
            "v3.11.2",
            "v3.10.6",
            "v3.9.9",
            "v3.10.5",
            "v3.9.8",
            "v3.11.0",
            "v3.10.4",
            "v3.9.7",
            "v3.10.3",
            "v3.9.6",
            "v3.10.2",
            "v3.9.5",
            "v3.10.1",
            "v3.9.4",
            "v3.9.3",
            "v3.10.0",
            "v3.9.2",
            "v3.9.1",
            "v3.9.0-rc2",
            "v3.9.0",
            "v3.9.0-rc3",
            "v3.9.0-rc1",
            "v3.9.0-beta",
            "v3.8.0",
            "v3.8.0-rc1",
            "v3.8.0-beta",
            "v3.7.0",
            "v3.7.0-rc2",
            "v3.7.0-rc1",
            "v3.7.0-beta",
            "v3.6.0",
            "v3.6.0-rc2",
            "v3.6.0-rc3",
            "v3.6.0-rc1",
            "v3.6.0-beta",
            "v3.5.0",
            "v3.5.0-rc1",
            "v3.5.0-beta",
            "v3.4.0",
            "v3.4.0-rc2",
            "v3.4.0-rc3",
            "v3.4.0-rc1",
            "v3.4.0-beta",
            "v3.3.0",
            "v3.3.0-rc3",
            "v3.3.0-rc2",
            "v3.3.0-rc1",
            "v3.3.0-beta",
            "v3.2.0-rc2",
            "v3.2.0",
            "v3.2.0-rc4",
            "v3.2.0-beta",
            "v3.2.0-rc5",
            "v3.2.0-rc3",
            "v3.2.0-rc1",
            "v3.1.0-beta",
            "v3.1.0",
            "v3.1.0-rc2",
            "v3.1.0-rc1",
            "v3.0.0-rc3",
            "v3.0.0",
            "v3.0.0-rc4",
            "v3.0.0-rc2",
            "v3.0.0-rc1",
            "v3.0.0-beta",
            "v2.9.0",
            "v2.9.0-rc2",
            "v2.9.0-rc1",
            "v2.9.0-beta",
            "v2.8.0",
            "v2.8.0-rc2",
            "v2.8.0-rc1",
            "v2.8.0-beta",
            "v2.7.0",
            "v2.7.0-rc2",
            "v2.7.0-rc1",
            "v2.7.0-beta",
            "v2.6.0",
            "v2.6.0-rc1",
            "v2.6.0-beta",
            "v2.5.0",
            "v2.5.0-rc1",
            "v2.5.0-beta",
            "v2.4.0-beta",
            "v2.4.0-rc1",
            "v2.4.0",
            "v2.3.0",
            "v2.3.0-rc1",
            "v2.3.0-beta",
            "v2.2.0",
            "v2.2.0-rc1",
            "v2.2.0-beta",
            "v2.1.0",
            "v2.0.1",
            "v2.0.0",
            "v2.0.0-rc2",
            "v2.0.0-rc1",
            "v1.3.0",
            "v1.2.1",
            "v1.2.0",
            "v1.1.1",
            "v1.1.0",
            "v1.0.9",
            "v1.0.8",
            "v1.0.7",
            "v1.0.6",
            "v1.0.5",
            "v1.0.4",
            "v1.0.3",
            "v1.0.2",
            "v1.0.1",
            "v1.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-40694.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:49.378281548Z",
      "provider": "osv",
      "references": [
        "https://bugzilla.redhat.com/show_bug.cgi?id=2043421"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-40694",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 436982,
  "published_at": "2022-09-29T03:15:14.417+00:00"
}