Skip to content
Heist/ feed
Back to feed
UnratedFix available

sudo — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2004-1051

sudo before 1.6.8p2 allows local users to execute arbitrary commands by using "()" style environment variables to create functions that have the same name as any program within the bash script that is called without using the program's full pathname.

Products
sudo
Affected versions
Not specified
Fixed versions
1.6.8p3-1
CVEs
CVE-2004-1051
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 14:25 UTC · Revision 1

Source evidence

DEBIAN-CVE-2004-1051

core-osv · Original source

Published 1 Mar 2005, 05:00 UTC

sudo before 1.6.8p2 allows local users to execute arbitrary commands by using "()" style environment variables to create functions that have the same name as any program within the bash script that is called without using the program's full pathname.

osv:DEBIAN-CVE-2004-1051

sudo

Fixed versions: 1.6.8p3-1

sudo

Fixed versions: 1.6.8p3-1

sudo

Fixed versions: 1.6.8p3-1

Complete source record
{
  "id": "d0e72934402300d08b37c6e6c6ea2774818f2fd02d8c4018fd161b1539de0cf2",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2004-1051",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2004-1051",
    "summary": "sudo before 1.6.8p2 allows local users to execute arbitrary commands by using \"()\" style environment variables to create functions that have the same name as any program within the bash script that is called without using the program's full pathname.",
    "evidence": "osv:DEBIAN-CVE-2004-1051",
    "products": [
      {
        "name": {
          "value": "sudo",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.6.8p3-1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "sudo",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.6.8p3-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "sudo",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.6.8p3-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "DEBIAN-CVE-2004-1051",
      "aliases": [
        "DEBIAN-CVE-2004-1051"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.6.8p3-1"
                }
              ]
            }
          ],
          "package": {
            "name": "sudo",
            "purl": "pkg:deb/debian/sudo?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2004-1051.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.6.8p3-1"
                }
              ]
            }
          ],
          "package": {
            "name": "sudo",
            "purl": "pkg:deb/debian/sudo?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2004-1051.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.6.8p3-1"
                }
              ]
            }
          ],
          "package": {
            "name": "sudo",
            "purl": "pkg:deb/debian/sudo?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2004-1051.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-21T15:47:33.536448599Z",
      "provider": "osv",
      "upstream": [
        "CVE-2004-1051"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2004-1051"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2004-1051",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 393991,
  "published_at": "2005-03-01T05:00:00+00:00"
}