Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2019-15900

An issue was discovered in slicer69 doas before 6.2 on certain platforms other than OpenBSD. On platforms without strtonum(3), sscanf was used without checking for error cases. Instead, the uninitialized variable errstr was checked and in some cases returned success even if sscanf failed. The result was that, instead of reporting that the supplied username or group name did not exist, it would execute the command as root.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2019-15900
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:28 UTC · Revision 1

Source evidence

CVE-2019-15900

core-osv · Original source

Published 18 Oct 2019, 16:15 UTC

An issue was discovered in slicer69 doas before 6.2 on certain platforms other than OpenBSD. On platforms without strtonum(3), sscanf was used without checking for error cases. Instead, the uninitialized variable errstr was checked and in some cases returned success even if sscanf failed. The result was that, instead of reporting that the supplied username or group name did not exist, it would execute the command as root.

osv:CVE-2019-15900
Complete source record
{
  "id": "0283691c81cc3e62a5439824429a334dfa799d58d8e6c3b347b3dd01dff766b6",
  "url": "https://osv.dev/vulnerability/CVE-2019-15900",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2019-15900",
    "summary": "An issue was discovered in slicer69 doas before 6.2 on certain platforms other than OpenBSD. On platforms without strtonum(3), sscanf was used without checking for error cases. Instead, the uninitialized variable errstr was checked and in some cases returned success even if sscanf failed. The result was that, instead of reporting that the supplied username or group name did not exist, it would execute the command as root.",
    "evidence": "osv:CVE-2019-15900",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2019-15900",
      "aliases": [
        "CVE-2019-15900"
      ],
      "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/slicer69/doas",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1c2858c681935a040cd2313e599b05a5dd40be95"
                },
                {
                  "fixed": "2f83222829448e5bc4c9391d607ec265a1e06531"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:doas_project:doas:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "6.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "2f83222829448e5bc4c9391d607ec265a1e06531"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "6.1p1",
            "6.1",
            "6.0p4",
            "6.0p3",
            "6.0p2",
            "6.0p1",
            "6.0-1",
            "v6.0p0",
            "6.0p0",
            "v6.0-0",
            "v5.9-7",
            "v5.9-6",
            "v5.9-5",
            "v5.9-4",
            "v5.9-3",
            "v5.9-2",
            "v5.9-1",
            "v5.9"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-15900.json",
            "vanir_signatures": [
              {
                "id": "CVE-2019-15900-3ae2e939",
                "digest": {
                  "length": 370,
                  "function_hash": "266296991134810920258128410524703637520"
                },
                "source": "https://github.com/slicer69/doas/commit/2f83222829448e5bc4c9391d607ec265a1e06531",
                "target": {
                  "file": "doas.c",
                  "function": "parsegid"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2019-15900-68bce56d",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "77395771208282268693997227990409505562",
                    "211361197346725683365328174351071453735",
                    "112781367654528564918063634607454395652",
                    "95301899913539240870913893487146184124"
                  ]
                },
                "source": "https://github.com/slicer69/doas/commit/1c2858c681935a040cd2313e599b05a5dd40be95",
                "target": {
                  "file": "execvpe.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2019-15900-a16f009a",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "161436026717749394231187615494824062368",
                    "240990572477761158021740583364541491731",
                    "9629622666929093245658212775283599446",
                    "259423222634234242547647147230636170811",
                    "38735327664398550148731219402092184649",
                    "248298967798001791048825694738597410051",
                    "206335043750931323256391529073543522128",
                    "90327457158411487663584959385201418031",
                    "205948000800797245708663078642176838629",
                    "116853932474837646133580066077067177836",
                    "77598910437713689299743859517413341517",
                    "301956741432154126966077242761324880287",
                    "262746729953958696488059471402592917600",
                    "6005761227142916895009965049942594972",
                    "154289742668512170089586279602942840782",
                    "30212061962853294714546223078066022174",
                    "302597760226101407388597236378922561592",
                    "219517769209492200907224748183746709298",
                    "221038129423982250277593961285383747514",
                    "167933244709772291290733260137162877605",
                    "214737444738495099761361442236329520413",
                    "116853932474837646133580066077067177836",
                    "77598910437713689299743859517413341517",
                    "301956741432154126966077242761324880287"
                  ]
                },
                "source": "https://github.com/slicer69/doas/commit/2f83222829448e5bc4c9391d607ec265a1e06531",
                "target": {
                  "file": "doas.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2019-15900-b22417ee",
                "digest": {
                  "length": 1884,
                  "function_hash": "260128427067475575999234089115858697183"
                },
                "source": "https://github.com/slicer69/doas/commit/1c2858c681935a040cd2313e599b05a5dd40be95",
                "target": {
                  "file": "execvpe.c",
                  "function": "execvpe"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2019-15900-dedc7342",
                "digest": {
                  "length": 370,
                  "function_hash": "8583189512477610533521138920454968142"
                },
                "source": "https://github.com/slicer69/doas/commit/2f83222829448e5bc4c9391d607ec265a1e06531",
                "target": {
                  "file": "doas.c",
                  "function": "parseuid"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:41:20Z"
          }
        }
      ],
      "modified": "2026-10-20T13:41:20.149981343Z",
      "provider": "osv",
      "references": [
        "https://github.com/slicer69/doas/compare/6.1p1...6.2",
        "https://github.com/slicer69/doas/commit/2f83222829448e5bc4c9391d607ec265a1e06531"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2019-15900",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 387963,
  "published_at": "2019-10-18T16:15:10.257+00:00"
}