Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-40084

opensysusers through 0.6 does not safely use eval on files in sysusers.d that may contain shell metacharacters. For example, it allows command execution via a crafted GECOS field whereas systemd-sysusers (a program with the same specification) does not do that.

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

Source evidence

CVE-2021-40084

core-osv · Original source

Published 25 Aug 2021, 01:15 UTC

opensysusers through 0.6 does not safely use eval on files in sysusers.d that may contain shell metacharacters. For example, it allows command execution via a crafted GECOS field whereas systemd-sysusers (a program with the same specification) does not do that.

osv:CVE-2021-40084
Complete source record
{
  "id": "409534e64d68607c412b6a2da88a0a4beb87b90b5c013965ffbb1ee092c85f5d",
  "url": "https://osv.dev/vulnerability/CVE-2021-40084",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-40084",
    "summary": "opensysusers through 0.6 does not safely use eval on files in sysusers.d that may contain shell metacharacters. For example, it allows command execution via a crafted GECOS field whereas systemd-sysusers (a program with the same specification) does not do that.",
    "evidence": "osv:CVE-2021-40084",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2021-40084",
      "aliases": [
        "CVE-2021-40084"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/artix-linux/opensysusers",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "a59433f191e6f00290d2763810b28b4ae274428f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:artixlinux:opensysusers:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "0.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.6",
            "0.5.1",
            "0.5",
            "0.4.9",
            "0.4.8",
            "0.4.7",
            "0.4.6",
            "0.4.5",
            "0.4.4",
            "0.4.3",
            "0.4.2",
            "0.4.1",
            "0.4.0",
            "0.3.2",
            "0.3.1",
            "0.3.0",
            "0.2.1",
            "0.2",
            "0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-40084.json"
          }
        }
      ],
      "modified": "2026-10-20T10:54:56.119254426Z",
      "provider": "osv",
      "references": [
        "https://github.com/artix-linux/opensysusers/releases",
        "https://bugs.debian.org/992058"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-40084",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 386486,
  "published_at": "2021-08-25T01:15:12.957+00:00"
}