Skip to content
Heist/ feed
Back to feed
MediumFix available

binutils — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2021-20197

There is an open race window when writing output in the following utilities in GNU binutils version 2.35 and earlier:ar, objcopy, strip, ranlib. When these utilities are run as a privileged user (presumably as part of a script updating binaries across different users), an unprivileged user can trick these utilities into getting ownership of arbitrary files through a symlink.

Products
binutils
Affected versions
Not specified
Fixed versions
2.37-3
CVEs
CVE-2021-20197
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 00:32 UTC · Revision 1

Source evidence

DEBIAN-CVE-2021-20197

core-osv · Original source

Published 26 Mar 2021, 17:15 UTC

There is an open race window when writing output in the following utilities in GNU binutils version 2.35 and earlier:ar, objcopy, strip, ranlib. When these utilities are run as a privileged user (presumably as part of a script updating binaries across different users), an unprivileged user can trick these utilities into getting ownership of arbitrary files through a symlink.

osv:DEBIAN-CVE-2021-20197

binutils

Fixed versions: 2.37-3

binutils

Fixed versions: 2.37-3

binutils

Fixed versions: 2.37-3

Complete source record
{
  "id": "0c2f31165a3840bff8f26a8b8434ccd6ece23b0363ae5816dc083e48060e6dd6",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-20197",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2021-20197",
    "summary": "There is an open race window when writing output in the following utilities in GNU binutils version 2.35 and earlier:ar, objcopy, strip, ranlib. When these utilities are run as a privileged user (presumably as part of a script updating binaries across different users), an unprivileged user can trick these utilities into getting ownership of arbitrary files through a symlink.",
    "evidence": "osv:DEBIAN-CVE-2021-20197",
    "products": [
      {
        "name": {
          "value": "binutils",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.37-3",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "binutils",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.37-3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "binutils",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.37-3",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2021-20197",
      "aliases": [
        "DEBIAN-CVE-2021-20197"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.37-3"
                }
              ]
            }
          ],
          "package": {
            "name": "binutils",
            "purl": "pkg:deb/debian/binutils?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-20197.json"
          },
          "ecosystem_specific": {
            "urgency": "unimportant"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.37-3"
                }
              ]
            }
          ],
          "package": {
            "name": "binutils",
            "purl": "pkg:deb/debian/binutils?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-20197.json"
          },
          "ecosystem_specific": {
            "urgency": "unimportant"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.37-3"
                }
              ]
            }
          ],
          "package": {
            "name": "binutils",
            "purl": "pkg:deb/debian/binutils?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-20197.json"
          },
          "ecosystem_specific": {
            "urgency": "unimportant"
          }
        }
      ],
      "modified": "2026-10-23T18:03:24.193217115Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-20197"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2021-20197"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-20197",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 421390,
  "published_at": "2021-03-26T17:15:12.92+00:00"
}