GHSA-4F99-4Q7P-P3GH
Vulnerability from github – Published: 2025-12-04 21:31 – Updated: 2025-12-05 02:27
VLAI?
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.
Severity ?
{
"affected": [
{
"package": {
"ecosystem": "Go",
"name": "github.com/sirupsen/logrus"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.8.3"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"package": {
"ecosystem": "Go",
"name": "github.com/sirupsen/logrus"
},
"ranges": [
{
"events": [
{
"introduced": "1.9.0"
},
{
"fixed": "1.9.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.9.0"
]
},
{
"package": {
"ecosystem": "Go",
"name": "github.com/sirupsen/logrus"
},
"ranges": [
{
"events": [
{
"introduced": "1.9.2"
},
{
"fixed": "1.9.3"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.9.2"
]
}
],
"aliases": [
"CVE-2025-65637"
],
"database_specific": {
"cwe_ids": [
"CWE-400"
],
"github_reviewed": true,
"github_reviewed_at": "2025-12-05T02:27:47Z",
"nvd_published_at": "2025-12-04T19:16:05Z",
"severity": "HIGH"
},
"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 \u003c 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.",
"id": "GHSA-4f99-4q7p-p3gh",
"modified": "2025-12-05T02:27:47Z",
"published": "2025-12-04T21:31:04Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-65637"
},
{
"type": "WEB",
"url": "https://github.com/sirupsen/logrus/issues/1370"
},
{
"type": "WEB",
"url": "https://github.com/sirupsen/logrus/pull/1376"
},
{
"type": "WEB",
"url": "https://github.com/sirupsen/logrus/commit/6acd903758687c4a3db3c11701e6c414fcf1c1f7"
},
{
"type": "WEB",
"url": "https://github.com/mjuanxd/logrus-dos-poc"
},
{
"type": "WEB",
"url": "https://github.com/mjuanxd/logrus-dos-poc/blob/main/README.md"
},
{
"type": "PACKAGE",
"url": "https://github.com/sirupsen/logrus"
},
{
"type": "WEB",
"url": "https://github.com/sirupsen/logrus/releases/tag/v1.8.3"
},
{
"type": "WEB",
"url": "https://github.com/sirupsen/logrus/releases/tag/v1.9.1"
},
{
"type": "WEB",
"url": "https://github.com/sirupsen/logrus/releases/tag/v1.9.3"
},
{
"type": "WEB",
"url": "https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMSIRUPSENLOGRUS-5564391"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "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",
"type": "CVSS_V4"
}
],
"summary": "Logrus is vulnerable to DoS when using Entry.Writer()"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…