Skip to content
Heist/ feed
Back to feed
UnratedFix available

file — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2003-0102

Buffer overflow in tryelf() in readelf.c of the file command allows attackers to execute arbitrary code as the user running file, possibly via a large entity size value in an ELF header (elfhdr.e_shentsize).

Products
file
Affected versions
Not specified
Fixed versions
3.40-1.1
CVEs
CVE-2003-0102
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 20:08 UTC · Revision 1

Source evidence

DEBIAN-CVE-2003-0102

core-osv · Original source

Published 18 Mar 2003, 05:00 UTC

Buffer overflow in tryelf() in readelf.c of the file command allows attackers to execute arbitrary code as the user running file, possibly via a large entity size value in an ELF header (elfhdr.e_shentsize).

osv:DEBIAN-CVE-2003-0102

file

Fixed versions: 3.40-1.1

file

Fixed versions: 3.40-1.1

file

Fixed versions: 3.40-1.1

Complete source record
{
  "id": "7b46822d7a0041bb22b185839127ed9db5473f8f341e221deb6c7e614f9aa8a1",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2003-0102",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2003-0102",
    "summary": "Buffer overflow in tryelf() in readelf.c of the file command allows attackers to execute arbitrary code as the user running file, possibly via a large entity size value in an ELF header (elfhdr.e_shentsize).",
    "evidence": "osv:DEBIAN-CVE-2003-0102",
    "products": [
      {
        "name": {
          "value": "file",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.40-1.1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "file",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.40-1.1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "file",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.40-1.1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "DEBIAN-CVE-2003-0102",
      "aliases": [
        "DEBIAN-CVE-2003-0102"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.40-1.1"
                }
              ]
            }
          ],
          "package": {
            "name": "file",
            "purl": "pkg:deb/debian/file?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2003-0102.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.40-1.1"
                }
              ]
            }
          ],
          "package": {
            "name": "file",
            "purl": "pkg:deb/debian/file?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2003-0102.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.40-1.1"
                }
              ]
            }
          ],
          "package": {
            "name": "file",
            "purl": "pkg:deb/debian/file?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2003-0102.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-22T23:47:18.934753374Z",
      "provider": "osv",
      "upstream": [
        "CVE-2003-0102"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2003-0102"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2003-0102",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 410180,
  "published_at": "2003-03-18T05:00:00+00:00"
}