Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-20112

A stored cross-site scripting vulnerability exists in TCExam <= 14.8.1. Valid files uploaded via tce_select_mediafile.php with a filename beggining with a period will be rendered as text/html. An attacker with access to tce_select_mediafile.php could upload a malicious javascript payload which would be triggered when another user views the file.

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

Source evidence

CVE-2021-20112

core-osv · Original source

Published 30 Jul 2021, 14:15 UTC

A stored cross-site scripting vulnerability exists in TCExam <= 14.8.1. Valid files uploaded via tce_select_mediafile.php with a filename beggining with a period will be rendered as text/html. An attacker with access to tce_select_mediafile.php could upload a malicious javascript payload which would be triggered when another user views the file.

osv:CVE-2021-20112
Complete source record
{
  "id": "ec054bf16a5ee02f8766f613d828c6e82ecb1334afd99398401ce9f3a7cefb8f",
  "url": "https://osv.dev/vulnerability/CVE-2021-20112",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-20112",
    "summary": "A stored cross-site scripting vulnerability exists in TCExam <= 14.8.1. Valid files uploaded via tce_select_mediafile.php with a filename beggining with a period will be rendered as text/html. An attacker with access to tce_select_mediafile.php could upload a malicious javascript payload which would be triggered when another user views the file.",
    "evidence": "osv:CVE-2021-20112",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-20112",
      "aliases": [
        "CVE-2021-20112"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/tecnickcom/tcexam",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "34e524aa8534e55fdc7b0e3c6866509228939ee1"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:tecnick:tcexam:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "14.8.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "14.8.1",
            "14.8.0",
            "14.7.0",
            "14.6.0",
            "14.5.2",
            "14.5.1",
            "14.5.0",
            "14.4.1",
            "14.4.0",
            "14.3.2",
            "14.3.1",
            "14.3.0",
            "14.2.3",
            "14.2.2",
            "14.2.1",
            "14.1.4",
            "14.1.3",
            "14.1.2",
            "14.1.0",
            "14.0.3",
            "14.0.2",
            "14.0.1",
            "14.0.0",
            "13.3.0",
            "13.2.1",
            "13.2.0",
            "13.1.1",
            "13.0.2",
            "13.0.1",
            "12.2.5",
            "12.2.4",
            "12.2.3",
            "12.2.2",
            "12.2.1",
            "12.2.0",
            "12.1.30",
            "12.1.29",
            "12.1.28",
            "12.1.027",
            "12.1.026",
            "12.1.025",
            "12.1.024",
            "12.1.023",
            "12.1.022",
            "12.1.021",
            "12.1.020",
            "12.1.019",
            "12.1.018",
            "12.1.017",
            "12.1.016",
            "12.1.015",
            "12.1.014",
            "12.1.013",
            "12.1.012",
            "12.1.011",
            "12.1.010",
            "12.1.009",
            "12.1.008",
            "12.1.007",
            "12.1.006",
            "12.1.005",
            "12.1.004",
            "12.1.003",
            "12.1.002",
            "12.1.001",
            "12.1.000",
            "12.0.014",
            "12.0.013"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-20112.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:59.677973840Z",
      "provider": "osv",
      "references": [
        "https://www.tenable.com/security/research/tra-2021-32"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-20112",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 439376,
  "published_at": "2021-07-30T14:15:14.317+00:00"
}