Skip to content

CVE-2023-49291

Tj-actions Branch-names remote code execution

9.3 CRITICALEPSS 1.45%
  1. Published4 Dec 2023

Description

tj-actions/branch-names is a Github action to retrieve branch or tag names with support for all events. The `tj-actions/branch-names` GitHub Actions improperly references the `github.event.pull_request.head.ref` and `github.head_ref` context variables within a GitHub Actions `run` step. The head ref variable is the branch name and can be used to execute arbitrary code using a specially crafted branch name. As a result an attacker can use this vulnerability to steal secrets from or abuse `GITHUB_TOKEN` permissions. This vulnerability has been addressed in version 7.0.7. Users are advised to upgrade. There are no known workarounds for this vulnerability.

CVSS 3.1 breakdown

Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
ScopeChanged
ConfidentialityLow
IntegrityHigh
AvailabilityNone
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N

Affected products

Tj-actions Branch-names≥ 7.0.1 < 7.0.7 · < 7.0.0

Remediation

Fixed in
Tj-actions Branch-names≥ 7.0.7

Frequently asked

Is CVE-2023-49291 being actively exploited?

CVE-2023-49291 is not in the CISA KEV catalog. Its EPSS exploit probability is 1.45%.

How severe is CVE-2023-49291?

CVE-2023-49291 has a CVSS 3.1 base score of 9.3, rated critical. EPSS estimates a 1.45% probability of exploitation.

Which products are affected by CVE-2023-49291?

Affected products include Tj-actions Branch-names.

How do I fix CVE-2023-49291?

Upgrade affected software to a fixed version, for example Tj-actions Branch-names 7.0.7 or later, then confirm no affected versions remain in your inventory.

How Secuno handles this

Secuno correlates vulnerabilities like CVE-2023-49291 against the real software inventory on every managed device, every day. Rather than a static severity, each match is scored in context: exploit availability, EPSS, the asset's exposure, and business criticality decide where it lands in the queue. If an affected version is present anywhere across your portfolio, it surfaces automatically with a prioritised remediation path.

Get Patch this first every Monday

Five vulnerabilities that matter this week, ranked on real exploitation. Plain language, one email, no spam.

You can unsubscribe with one click from every issue. We handle your details as described in our privacy policy.

Data from the NVD, CISA KEV catalog and FIRST EPSS. CVSS 3.1 base score shown where available.