Skip to content
Heist/ feed
Back to feed
HighFix available

bash — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2019-18276

An issue was discovered in disable_priv_mode in shell.c in GNU Bash through 5.0 patch 11. By default, if Bash is run with its effective UID not equal to its real UID, it will drop privileges by setting its effective UID to its real UID. However, it does so incorrectly. On Linux and other systems that support "saved UID" functionality, the saved UID is not dropped. An attacker with command execution in the shell can use "enable -f" for runtime loading of a new builtin, which can be a shared object that calls setuid() and therefore regains privileges. However, binaries running with an effective UID of 0 are unaffected.

Products
bash
Affected versions
Not specified
Fixed versions
5.1~rc1-2
CVEs
CVE-2019-18276
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 14:21 UTC · Revision 1

Source evidence

DEBIAN-CVE-2019-18276

core-osv · Original source

Published 28 Nov 2019, 01:15 UTC

An issue was discovered in disable_priv_mode in shell.c in GNU Bash through 5.0 patch 11. By default, if Bash is run with its effective UID not equal to its real UID, it will drop privileges by setting its effective UID to its real UID. However, it does so incorrectly. On Linux and other systems that support "saved UID" functionality, the saved UID is not dropped. An attacker with command execution in the shell can use "enable -f" for runtime loading of a new builtin, which can be a shared object that calls setuid() and therefore regains privileges. However, binaries running with an effective UID of 0 are unaffected.

osv:DEBIAN-CVE-2019-18276

bash

Fixed versions: 5.1~rc1-2

bash

Fixed versions: 5.1~rc1-2

bash

Fixed versions: 5.1~rc1-2

Complete source record
{
  "id": "10fa0e9b4054da98e8fdc8012e0104fde28ec69af18c4f2cc66a313e32ec60cf",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2019-18276",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2019-18276",
    "summary": "An issue was discovered in disable_priv_mode in shell.c in GNU Bash through 5.0 patch 11. By default, if Bash is run with its effective UID not equal to its real UID, it will drop privileges by setting its effective UID to its real UID. However, it does so incorrectly. On Linux and other systems that support \"saved UID\" functionality, the saved UID is not dropped. An attacker with command execution in the shell can use \"enable -f\" for runtime loading of a new builtin, which can be a shared object that calls setuid() and therefore regains privileges. However, binaries running with an effective UID of 0 are unaffected.",
    "evidence": "osv:DEBIAN-CVE-2019-18276",
    "products": [
      {
        "name": {
          "value": "bash",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.1~rc1-2",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "bash",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.1~rc1-2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "bash",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.1~rc1-2",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "DEBIAN-CVE-2019-18276",
      "aliases": [
        "DEBIAN-CVE-2019-18276"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.1~rc1-2"
                }
              ]
            }
          ],
          "package": {
            "name": "bash",
            "purl": "pkg:deb/debian/bash?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2019-18276.json"
          },
          "ecosystem_specific": {
            "urgency": "unimportant"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.1~rc1-2"
                }
              ]
            }
          ],
          "package": {
            "name": "bash",
            "purl": "pkg:deb/debian/bash?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2019-18276.json"
          },
          "ecosystem_specific": {
            "urgency": "unimportant"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.1~rc1-2"
                }
              ]
            }
          ],
          "package": {
            "name": "bash",
            "purl": "pkg:deb/debian/bash?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2019-18276.json"
          },
          "ecosystem_specific": {
            "urgency": "unimportant"
          }
        }
      ],
      "modified": "2026-10-15T07:47:25.065185709Z",
      "provider": "osv",
      "upstream": [
        "CVE-2019-18276"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2019-18276"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2019-18276",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 322112,
  "published_at": "2019-11-28T01:15:10.603+00:00"
}