GHSA-4f99-4q7p-p3gh

Suggest an improvement
Source
https://github.com/advisories/GHSA-4f99-4q7p-p3gh
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/12/GHSA-4f99-4q7p-p3gh/GHSA-4f99-4q7p-p3gh.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-4f99-4q7p-p3gh
Aliases
  • CVE-2025-65637
Published
2025-12-04T21:31:04Z
Modified
2025-12-05T02:56:14.233567Z
Severity
  • 8.7 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
Logrus is vulnerable to DoS when using Entry.Writer()
Details

A denial-of-service vulnerability exists in github.com/sirupsen/logrus when using Entry.Writer() to log a single-line payload larger than 64KB without newline characters. Due to limitations in the internal bufio.Scanner, the read fails with "token too long" and the writer pipe is closed, leaving Writer() unusable and causing application unavailability (DoS). This affects versions < 1.8.3, 1.9.0, and 1.9.2. The issue is fixed in 1.8.3, 1.9.1, and 1.9.3+, where the input is chunked and the writer continues to function even if an error is logged.

Database specific
{
    "cwe_ids": [
        "CWE-400"
    ],
    "nvd_published_at": "2025-12-04T19:16:05Z",
    "severity": "HIGH",
    "github_reviewed_at": "2025-12-05T02:27:47Z",
    "github_reviewed": true
}
References

Affected packages

Go / github.com/sirupsen/logrus

Package

Name
github.com/sirupsen/logrus
View open source insights on deps.dev
Purl
pkg:golang/github.com/sirupsen/logrus

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.8.3

Go / github.com/sirupsen/logrus

Package

Name
github.com/sirupsen/logrus
View open source insights on deps.dev
Purl
pkg:golang/github.com/sirupsen/logrus

Affected ranges

Type
SEMVER
Events
Introduced
1.9.0
Fixed
1.9.1

Affected versions

1.*

1.9.0

Go / github.com/sirupsen/logrus

Package

Name
github.com/sirupsen/logrus
View open source insights on deps.dev
Purl
pkg:golang/github.com/sirupsen/logrus

Affected ranges

Type
SEMVER
Events
Introduced
1.9.2
Fixed
1.9.3

Affected versions

1.*

1.9.2