CVE-2025-47271: OZI Project/publish OZI-Project/ozi-publish Code Injection Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-2487-9f55-2vg9
CWE-94 CWE-1116 CWE-95
Published
Advisory Summary

CVE-2025-47271 is a MODERATE ozi-project/ozi-publish code injection vulnerability vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting OZI Project/publish libraries in the GitHub Actions ecosystem. The issue involves ozi-project/ozi-publish code injection vulnerability. Remediation is available by upgrading affected packages to version 1.13.6.

CVE-2025-47271 at a Glance

CVE Identifier CVE-2025-47271
GHSA Identifier GHSA-2487-9f55-2vg9
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product OZI Project/publish
Package Ecosystem GitHub Actions
Published Date
Last Updated

How to Fix CVE-2025-47271

To remediate this vulnerability, upgrade all affected OZI Project/publish dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

OZI-Project/publish fixed: 1.13.6
Upgrade OZI-Project/publish to 1.13.6
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for OZI-Project/publish

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-47271, inspect your project dependencies for OZI Project/publish:

inspect dependencies for OZI-Project/publish

Analyze the terminal output to locate any version of OZI Project/publish in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.13.6), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In OZI Project/publish, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact Potentially untrusted data flows into PR creation logic. A malicious actor could construct a branch name that injects arbitrary code. ### Patches This is patched in 1.13.6 ### Workarounds Downgrade to <1.13.2 ### References * [Understanding the Risk of Script Injections](https://docs.github.com/en/actions/security-for-github-actions/security-guides/security-hardening-for-github-actions#understanding-the-risk-of-script-injections)

CVE-2025-47271 Affected OZI Project/publish Versions

1 component(s)
Fixed Versions:
1.13.6
Product / Package Ecosystem Affected Versions Fixed Version
OZI-Project/publish
GitHub Actions
≥ 1.13.2
< 1.13.6
1.13.6

References

Frequently Asked Questions

What is CVE-2025-47271?
CVE-2025-47271 is a security vulnerability in OZI Project/publish involving OZI-Project/ozi-publish Code Injection vulnerability under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which OZI Project/publish versions are affected?
Affected versions include releases prior to 1.13.6 across affected packages: OZI-Project/publish.
What version fixes CVE-2025-47271?
Upgrading to 1.13.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is OZI-Project/publish affected?
Yes, OZI-Project/publish is affected in releases prior to 1.13.6. Upgrade your dependency to 1.13.6 or later.
What CWE is associated with CVE-2025-47271?
CVE-2025-47271 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.).
How can I check GitHub Actions dependencies for CVE-2025-47271?
Run the dependency tree command: 'inspect dependencies for OZI-Project/publish'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-2487-9f55-2vg9",
  "modified" : "2025-05-12T19:58:07Z",
  "published" : "2025-05-12T19:58:07Z",
  "aliases" : [ "CVE-2025-47271" ],
  "summary" : "OZI-Project/ozi-publish Code Injection vulnerability",
  "details" : "### Impact\nPotentially untrusted data flows into PR creation logic. A malicious actor could construct a branch name that injects arbitrary code.\n\n### Patches\nThis is patched in 1.13.6\n\n### Workarounds\nDowngrade to <1.13.2\n\n### References\n\n* [Understanding the Risk of Script Injections](https://docs.github.com/en/actions/security-for-github-actions/security-guides/security-hardening-for-github-actions#understanding-the-risk-of-script-injections)",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "GitHub Actions",
      "name" : "OZI-Project/publish"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.13.2"
      }, {
        "fixed" : "1.13.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/OZI-Project/publish/security/advisories/GHSA-2487-9f55-2vg9"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-47271"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/OZI-Project/publish/commit/abd8524ec69800890529846b3ccfb09ce7c10b5c"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/OZI-Project/publish"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1116", "CWE-94", "CWE-95" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-05-12T19:58:07Z",
    "nvd_published_at" : "2025-05-12T11:15:51Z"
  }
}