CVE-2025-61731Hinoki check available

Arbitrary file write via pkg-config flag injection

Published Jan 28, 2026 · Updated Aug 26, 2026

Argument injection in Go command before 1.24.12 and 1.25.0 through 1.25.5 allows attackers to write partially controlled file content. The CgoPkgConfig path passes a source-controlled --log-file option to pkg-config because its arguments are not restricted to an explicit safe list. Exploitation requires a user or build service to compile attacker-supplied Go source with cgo and pkg-config available.

CVSS severity8.6
High
EPSS probability0.56%
Next 30 days · Sep 16, 2026
Known exploitationUnconfirmed
Based on sourced intelligence
Hinoki checkAvailable
Coverage for this vulnerability

See if you're affected

Explore vulnerability checks for your environment with Hinoki.

Book a demo

Summary

What happened

Argument injection in Go command before 1.24.12 and 1.25.0 through 1.25.5 allows attackers to write partially controlled file content. The CgoPkgConfig path passes a source-controlled --log-file option to pkg-config because its arguments are not restricted to an explicit safe list. Exploitation requires a user or build service to compile attacker-supplied Go source with cgo and pkg-config available.

The record

CVE
CVE-2025-61731
Published
Jan 28, 2026
Updated
Aug 26, 2026
Vendor
Go
Product
Go command
Classifications
CWE-88, T1204.002
Attack vector
local
Privileges
unauthenticated

Timeline

How it unfolded

  1. Jan 28, 2026CVE publishedPublication date reported by the CVE source.
  2. Aug 26, 2026Record updatedLatest update available in the CVE record.

Exploitability

Present is not the same as exploitable

Compare your product and version with the public record. A matching version still requires validation against your environment.

Is a vulnerable build present?

Compare these published version ranges with your installed build and any vendor patches.

  1. Affected versionversion=0 <1.24.12
  2. Affected versionversion=1.25.0 <1.25.6

What conditions does exploitation require?

Attack vectorlocal
Required privilegesunauthenticated

What is affected?

Go · Go commandversion=0 <1.24.12; version=1.25.0 <1.25.6
389 Directory Server · Red Hat Enterprise Linux 8.6 Update Services for SAP SolutionsAffected versions are unavailable in this record.
389 Directory Server · Red Hat Enterprise Linux 8.8 Update Services for SAP SolutionsAffected versions are unavailable in this record.
389 Directory Server · Red Hat OpenShift Container Platform 4.17Affected versions are unavailable in this record.
389 Directory Server · Red Hat OpenShift Container Platform 4.18Affected versions are unavailable in this record.
389 Directory Server · Red Hat Enterprise Linux 8.6 Telecommunications Update ServiceAffected versions are unavailable in this record.
389 Directory Server · Red Hat Enterprise Linux 10Affected versions are unavailable in this record.
389 Directory Server · Red Hat OpenShift Container Platform 4.15Affected versions are unavailable in this record.
389 Directory Server · Red Hat Enterprise Linux 9.2 Update Services for SAP SolutionsAffected versions are unavailable in this record.
389 Directory Server · Red Hat OpenShift VirtualizationAffected versions are unavailable in this record.
389 Directory Server · Red Hat OpenShift Container Platform 4.19Affected versions are unavailable in this record.
389 Directory Server · Red Hat OpenShift Service Mesh 3.1Affected versions are unavailable in this record.
389 Directory Server · Red Hat Hardened ImagesAffected versions are unavailable in this record.
389 Directory Server · Red Hat Enterprise Linux 9.4 Extended Update SupportAffected versions are unavailable in this record.
389 Directory Server · Red Hat OpenShift Container Platform 4.13Affected versions are unavailable in this record.
389 Directory Server · Red Hat OpenShift Service Mesh 2.6Affected versions are unavailable in this record.
389 Directory Server · Red Hat OpenShift Service Mesh 3.2Affected versions are unavailable in this record.
389 Directory Server · Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update SupportAffected versions are unavailable in this record.
389 Directory Server · Red Hat OpenShift Container Platform 4.12Affected versions are unavailable in this record.
389 Directory Server · Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-OnAffected versions are unavailable in this record.
389 Directory Server · Red Hat Enterprise Linux 8.2 Advanced Update SupportAffected versions are unavailable in this record.
389 Directory Server · Red Hat Enterprise Linux 9Affected versions are unavailable in this record.
389 Directory Server · Red Hat Enterprise Linux 9.0 Update Services for SAP SolutionsAffected versions are unavailable in this record.
389 Directory Server · Red Hat OpenShift Container Platform 4Affected versions are unavailable in this record.
389 Directory Server · Red Hat Enterprise Linux 8.8 Telecommunications Update ServiceAffected versions are unavailable in this record.
389 Directory Server · Red Hat Enterprise Linux 10.0 Extended Update SupportAffected versions are unavailable in this record.
389 Directory Server · Red Hat OpenShift Service Mesh 3Affected versions are unavailable in this record.
389 Directory Server · Red Hat Enterprise Linux 9.6 Extended Update SupportAffected versions are unavailable in this record.
389 Directory Server · Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update SupportAffected versions are unavailable in this record.
389 Directory Server · Red Hat Enterprise Linux 8Affected versions are unavailable in this record.
389 Directory Server · Red Hat OpenShift Container Platform 4.20Affected versions are unavailable in this record.

Published CVSS scores

7.8CISA-ADPCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
8.6Red HatCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

CVSS describes severity. EPSS estimates exploitation probability.

Attacks

What attackers are doing with it

Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.

Daily unique IPsNo honeypot observations are available for this CVE in the selected window.

No observations available

Sep 10, 2026Sep 16, 2026
Latest reporting daySep 16, 2026
Latest daily unique IPsUnavailable
Prior 30-day averageUnavailable
SourceShadowserver honeypots (KEV)
Vectorlocal
Privilegesunauthenticated
Known exploitationUnconfirmed
Public exploitUnconfirmed

Weakness, pattern, technique

CWE-88Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
T1204.002Malicious File

Public exploit references

No public exploit references are available in this record.

Labels summarize the accepted research assessment. They do not indicate a test against your environment.

Technologies

Your stack

See the directory against your own environment.

Your stack

Check the software in your environment

Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.

Book a demo