Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-29221

A local privilege escalation vulnerability was discovered in Erlang/OTP prior to version 23.2.3. By adding files to an existing installation's directory, a local attacker could hijack accounts of other users running Erlang programs or possibly coerce a service running with "erlsrv.exe" to execute arbitrary code as Local System. This can occur only under specific conditions on Windows with unsafe filesystem permissions.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-29221
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:43 UTC · Revision 1

Source evidence

CVE-2021-29221

core-osv · Original source

Published 9 Apr 2021, 14:15 UTC

A local privilege escalation vulnerability was discovered in Erlang/OTP prior to version 23.2.3. By adding files to an existing installation's directory, a local attacker could hijack accounts of other users running Erlang programs or possibly coerce a service running with "erlsrv.exe" to execute arbitrary code as Local System. This can occur only under specific conditions on Windows with unsafe filesystem permissions.

osv:CVE-2021-29221
Complete source record
{
  "id": "c1ccaee432bcdf59e56c0b559e72b8594aabac79b04cf1a776e2e13a2fd41f77",
  "url": "https://osv.dev/vulnerability/CVE-2021-29221",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-29221",
    "summary": "A local privilege escalation vulnerability was discovered in Erlang/OTP prior to version 23.2.3. By adding files to an existing installation's directory, a local attacker could hijack accounts of other users running Erlang programs or possibly coerce a service running with \"erlsrv.exe\" to execute arbitrary code as Local System. This can occur only under specific conditions on Windows with unsafe filesystem permissions.",
    "evidence": "osv:CVE-2021-29221",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-29221",
      "aliases": [
        "CVE-2021-29221"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/erlang/otp",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "050a78f8a67ed76a632f0e73b76ceb83e7054e5f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "23.2.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "050a78f8a67ed76a632f0e73b76ceb83e7054e5f"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "OTP-23.2.3"
                  }
                ]
              }
            }
          ],
          "versions": [
            "OTP-23.0",
            "OTP-21.0",
            "OTP-23.2",
            "OTP-22.0",
            "OTP-23.2.2",
            "OTP-23.2.1",
            "OTP-23.1",
            "OTP-23.0-rc3",
            "OTP-23.0-rc2",
            "OTP-23.0-rc1",
            "OTP-20.0",
            "OTP-22.0-rc3",
            "OTP-22.0-rc2",
            "OTP-22.0-rc1",
            "OTP-19.0",
            "OTP-21.0-rc2",
            "OTP-18.0",
            "OTP-21.0-rc1",
            "OTP-17.0",
            "OTP-20.0-rc2",
            "OTP-20.0-rc1",
            "OTP-19.0-rc2",
            "OTP-19.0-rc1",
            "OTP_R16B",
            "OTP-18.0-rc1",
            "OTP_17.0-rc2",
            "OTP_17.0-rc1",
            "OTP_R13B03",
            "OTP_R16A_RELEASE_CANDIDATE",
            "OTP_R14B03",
            "OTP_R15B",
            "OTP_R15A",
            "OTP_R14B02",
            "OTP_R14B01",
            "OTP_R14B",
            "OTP_R13B04",
            "OTP_R14A"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-29221.json"
          }
        }
      ],
      "modified": "2026-10-20T10:54:36.917074967Z",
      "provider": "osv",
      "references": [
        "https://github.com/erlang/otp/releases/tag/OTP-23.2.3",
        "https://deepsurface.com/deepsurface-security-advisory-local-privilege-escalation-in-erlang-on-windows-cve-2021-29221/"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-29221",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 385736,
  "published_at": "2021-04-09T14:15:12.91+00:00"
}