Skip to content
Heist/ feed
Back to feed
Low

gh — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-45803

`gh` is GitHub’s official command line tool. From 1.6.0 to before 2.92.0, a security vulnerability has been identified in GitHub CLI that could allow terminal escape sequence injection when users view GitHub Actions workflow logs using gh run view --log or gh run view --log-failed. The vulnerability stems from the way GitHub CLI handles raw Actions log output. The gh run view --log and gh run view --log-failed commands stream workflow log lines to stdout or the configured pager without sanitizing terminal control sequences. An attacker who can influence GitHub Actions log content, for example via a PR triggered workflow, can embed escape sequences that are replayed in the user's terminal when they inspect the run. Depending on the victim's terminal emulator, injected sequences could change the window title, manipulate on screen content, or in some terminal emulators (such as screen) potentially execute arbitrary commands. This vulnerability is fixed in 2.92.0.

Products
gh
Affected versions
2.27.0+dfsg1-1build1, 2.30.0-2, 2.35.0-1, 2.4.0+dfsg1-1, 2.4.0+dfsg1-2, 2.40.1+dfsg1-1, 2.42.1-1, 2.43.1-1, 2.44.1-1, 2.44.1-2, 2.45.0-1, 2.45.0-1build1, 2.45.0-1ubuntu0.1, 2.45.0-1ubuntu0.2, 2.45.0-1ubuntu0.2+esm1, 2.45.0-1ubuntu0.2+esm2, 2.45.0-1ubuntu0.3, 2.45.0-1ubuntu0.3+esm1, 2.45.0-1ubuntu0.3+esm2, 2.45.0-1ubuntu0.3+esm3, 2.46.0-3, 2.46.0-4, 2.46.0-4ubuntu0.26.04.1~esm1
Fixed versions
Not specified
CVEs
CVE-2026-45803
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:05 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-45803

core-osv · Original source

Published 15 May 2026, 16:16 UTC

`gh` is GitHub’s official command line tool. From 1.6.0 to before 2.92.0, a security vulnerability has been identified in GitHub CLI that could allow terminal escape sequence injection when users view GitHub Actions workflow logs using gh run view --log or gh run view --log-failed. The vulnerability stems from the way GitHub CLI handles raw Actions log output. The gh run view --log and gh run view --log-failed commands stream workflow log lines to stdout or the configured pager without sanitizing terminal control sequences. An attacker who can influence GitHub Actions log content, for example via a PR triggered workflow, can embed escape sequences that are replayed in the user's terminal when they inspect the run. Depending on the victim's terminal emulator, injected sequences could change the window title, manipulate on screen content, or in some terminal emulators (such as screen) potentially execute arbitrary commands. This vulnerability is fixed in 2.92.0.

osv:UBUNTU-CVE-2026-45803

gh

Fixed versions: Not specified

gh

Fixed versions: Not specified

gh

Fixed versions: Not specified

gh

Fixed versions: Not specified

gh

Fixed versions: Not specified

Complete source record
{
  "id": "1d2d455477fc521d951918fd53fec0b2126f2d52acc2c3b4c317e20290f333e5",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-45803",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-45803",
    "summary": "`gh` is GitHub’s official command line tool. From 1.6.0 to before 2.92.0, a security vulnerability has been identified in GitHub CLI that could allow terminal escape sequence injection when users view GitHub Actions workflow logs using gh run view --log or gh run view --log-failed. The vulnerability stems from the way GitHub CLI handles raw Actions log output. The gh run view --log and gh run view --log-failed commands stream workflow log lines to stdout or the configured pager without sanitizing terminal control sequences. An attacker who can influence GitHub Actions log content, for example via a PR triggered workflow, can embed escape sequences that are replayed in the user's terminal when they inspect the run. Depending on the victim's terminal emulator, injected sequences could change the window title, manipulate on screen content, or in some terminal emulators (such as screen) potentially execute arbitrary commands. This vulnerability is fixed in 2.92.0.",
    "evidence": "osv:UBUNTU-CVE-2026-45803",
    "products": [
      {
        "name": {
          "value": "gh",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.4.0+dfsg1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.4.0+dfsg1-2",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "gh",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.27.0+dfsg1-1build1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.30.0-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.35.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.40.1+dfsg1-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.42.1-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.43.1-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.44.1-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.44.1-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.45.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.45.0-1build1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.45.0-1ubuntu0.1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.45.0-1ubuntu0.2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.45.0-1ubuntu0.2+esm1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.45.0-1ubuntu0.2+esm2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.45.0-1ubuntu0.3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.45.0-1ubuntu0.3+esm1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.45.0-1ubuntu0.3+esm2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.45.0-1ubuntu0.3+esm3",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "gh",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.46.0-3",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "gh",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.46.0-4",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "gh",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.46.0-3",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.46.0-4",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.46.0-4ubuntu0.26.04.1~esm1",
            "evidence": "/affected/4/versions"
          }
        ]
      }
    ],
    "severity": "low",
    "structured": {
      "id": "UBUNTU-CVE-2026-45803",
      "aliases": [
        "UBUNTU-CVE-2026-45803"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "gh",
            "purl": "pkg:deb/ubuntu/gh?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "2.4.0+dfsg1-1",
            "2.4.0+dfsg1-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45803.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "gh",
                "binary_version": "2.4.0+dfsg1-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "gh",
            "purl": "pkg:deb/ubuntu/gh?arch=source&distro=esm-apps%2Fnoble",
            "ecosystem": "Ubuntu:Pro:24.04:LTS"
          },
          "versions": [
            "2.27.0+dfsg1-1build1",
            "2.30.0-2",
            "2.35.0-1",
            "2.40.1+dfsg1-1",
            "2.42.1-1",
            "2.43.1-1",
            "2.44.1-1",
            "2.44.1-2",
            "2.45.0-1",
            "2.45.0-1build1",
            "2.45.0-1ubuntu0.1",
            "2.45.0-1ubuntu0.2",
            "2.45.0-1ubuntu0.2+esm1",
            "2.45.0-1ubuntu0.2+esm2",
            "2.45.0-1ubuntu0.3",
            "2.45.0-1ubuntu0.3+esm1",
            "2.45.0-1ubuntu0.3+esm2",
            "2.45.0-1ubuntu0.3+esm3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45803.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "gh",
                "binary_version": "2.45.0-1ubuntu0.3+esm3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "gh",
            "purl": "pkg:deb/ubuntu/gh?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "2.46.0-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45803.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "gh",
                "binary_version": "2.46.0-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "gh",
            "purl": "pkg:deb/ubuntu/gh?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "2.46.0-4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45803.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "gh",
                "binary_version": "2.46.0-4"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "gh",
            "purl": "pkg:deb/ubuntu/gh?arch=source&distro=esm-apps%2Fresolute",
            "ecosystem": "Ubuntu:Pro:26.04:LTS"
          },
          "versions": [
            "2.46.0-3",
            "2.46.0-4",
            "2.46.0-4ubuntu0.26.04.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45803.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "gh",
                "binary_version": "2.46.0-4ubuntu0.26.04.1~esm1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:00:11.412325788Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-45803"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-45803",
        "https://www.cve.org/CVERecord?id=CVE-2026-45803",
        "https://github.com/cli/cli/security/advisories/GHSA-crc3-h8v6-qh57"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-45803",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 360389,
  "published_at": "2026-05-15T16:16:00+00:00"
}