Katalog CVE

CVE-2025-46820

Wysokie
Opublikowano: Przetłumaczono: NVD NIST

Streszczenie

Wersje phpgt/Dom przed 4.1.8 ujawniają GITHUB_TOKEN w artefakcie uruchomienia workflow. Plik ci.yml wykorzystuje actions/upload-artifact@v4 do przesyłania artefaktu budowy, który zawiera plik .git/config z GITHUB_TOKEN.

Ocena ryzyka

Atakujący może wykorzystać ujawniony token do interakcji z API GitHub, co może prowadzić do wprowadzenia złośliwego kodu lub modyfikacji commitów w repozytorium. Choć token jest ważny tylko przez czas trwania uruchomienia workflow, ryzyko dla użytkowników repozytorium pozostaje.

Rekomendacja

Zaleca się aktualizację do wersji 4.1.8 lub nowszej, aby usunąć tę podatność i zabezpieczyć dostęp do GITHUB_TOKEN.

Powiązane podatności

Oryginalny opis (angielski, źródło NVD)

phpgt/Dom provides access to modern DOM APIs. Versions of phpgt/Dom prior to 4.1.8 expose the GITHUB_TOKEN in the Dom workflow run artifact. The ci.yml workflow file uses actions/upload-artifact@v4 to upload the build artifact. This artifact is a zip of the current directory, which includes the automatically generated .git/config file containing the run's GITHUB_TOKEN. Seeing as the artifact can be downloaded prior to the end of the workflow, there is a few seconds where an attacker can extract the token from the artifact and use it with the GitHub API to push malicious code or rewrite release commits in your repository. Any downstream user of the repository may be affected, but the token should only be valid for the duration of the workflow run, limiting the time during which exploitation could occur. Version 4.1.8 fixes the issue.

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS