CVE-2026-142525
Description
A flaw was found in add-and-commit. A remote attacker who controls user-supplied input, such as commit messages or pull request titles, can exploit this flaw by supplying unescaped newline characters in action parameters. This allows the attacker to inject arbitrary workflow commands into execution logs, potentially bypassing log masking controls or forging job annotations.
Statement
A Moderate severity flaw was identified in the add-and-commit GitHub Action, where unescaped user-supplied inputs can inject workflow commands into execution logs. This impact is rated as Moderate because successful exploitation requires specific workflow configurations that directly pass untrusted event metadata to action inputs, resulting in altered log streams or disabled log masking without direct code execution capabilities. Red Hat products and enterprise build pipelines that do not incorporate this third-party GitHub Action are not affected.
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
Understanding the Weakness (CWE)
Integrity,Confidentiality,Availability,Non-Repudiation
Technical Impact: Modify Application Data; Hide Activities; Execute Unauthorized Code or Commands
Interpretation of the log files may be hindered or misdirected if an attacker can supply data to the application that is subsequently logged verbatim. In the most benign case, an attacker may be able to insert false entries into the log file by providing the application with input that includes appropriate characters. Forged or otherwise corrupted log files can be used to cover an attacker's tracks, possibly by skewing statistics, or even to implicate another party in the commission of a malicious act. If the log file is processed automatically, the attacker can render the file unusable by corrupting the format of the file or injecting unexpected characters. An attacker may inject code or other commands into the log file and take advantage of a vulnerability in the log processing utility.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.