You are viewing this page in an unauthorized frame window.
This is a potential security issue, you are being redirected to
https://nvd.nist.gov
An official website of the United States government
Official websites use .gov
A .gov website belongs to an official government organization in the United States.
Secure .gov websites use HTTPS
A lock () or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.
This CVE record has been updated after NVD enrichment efforts were completed. Enrichment data supplied by the NVD may require amendment due to these changes.
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.
Metrics
NVD enrichment efforts reference publicly available information to associate
vector strings. CVSS information contributed by other sources is also
displayed.
By selecting these links, you will be leaving NIST webspace.
We have provided these links to other web sites because they
may have information that would be of interest to you. No
inferences should be drawn on account of other sites being
referenced, or not, from this page. There may be other web
sites that are more appropriate for your purpose. NIST does
not necessarily endorse the views expressed, or concur with
the facts presented on these sites. Further, NIST does not
endorse any commercial products that may be mentioned on
these sites. Please address comments about this page to [email protected].
OR
*cpe:2.3:a:tj-actions:branch-names:*:*:*:*:*:*:*:* versions up to (excluding) 7.0.0
*cpe:2.3:a:tj-actions:branch-names:*:*:*:*:*:*:*:* versions from (including) 7.0.1 up to (excluding) 7.0.7
Changed
Reference Type
https://github.com/tj-actions/branch-names/commit/4923d1ca41f928c24f1c1b3af9daaadfb71e6337 No Types Assigned
https://securitylab.github.com/research/github-actions-untrusted-input No Types Assigned
https://securitylab.github.com/research/github-actions-untrusted-input Exploit, Third Party Advisory
New CVE Received from GitHub, Inc.12/04/2023 7:15:09 PM
Action
Type
Old Value
New Value
Added
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.
Added
CVSS V3.1
GitHub, Inc. AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N
Added
CWE
GitHub, Inc. CWE-20
Added
Reference
GitHub, Inc. https://github.com/tj-actions/branch-names/commit/4923d1ca41f928c24f1c1b3af9daaadfb71e6337 [No types assigned]
Added
Reference
GitHub, Inc. https://github.com/tj-actions/branch-names/commit/6c999acf206f5561e19f46301bb310e9e70d8815 [No types assigned]
Added
Reference
GitHub, Inc. https://github.com/tj-actions/branch-names/commit/726fe9ba5e9da4fcc716223b7994ffd0358af060 [No types assigned]
Added
Reference
GitHub, Inc. https://github.com/tj-actions/branch-names/security/advisories/GHSA-8v8w-v8xg-79rf [No types assigned]
Added
Reference
GitHub, Inc. https://securitylab.github.com/research/github-actions-untrusted-input [No types assigned]
Quick Info
CVE Dictionary Entry: CVE-2023-49291 NVD
Published Date: 12/04/2023 NVD
Last Modified: 11/21/2024
Source: GitHub, Inc.