Description
An issue was discovered in WeeChat before 2.7.1 (0.3.4 to 2.7 are affected). When a new IRC message 005 is received with longer nick prefixes, a buffer overflow and possibly a crash can happen when a new mode is set for a nick.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | weechat | 2.7.1-1 | — |
| Debian 13 | weechat | 2.7.1-1 | — |
| Debian 12 | weechat | 2.7.1-1 | — |
| Debian 9 | weechat | 1.6-1+deb9u3 | DLA-2770-1 |
| Debian 8 | weechat | 1.0.1-1+deb8u3 | DLA-2157-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | weechat | 2.8-1ubuntu0.1~esm1 | USN-5258-1 |
| Ubuntu Pro 18.04 LTS | weechat | 1.9.1-1ubuntu1+esm1 | USN-5258-1 |
| Ubuntu Pro 16.04 LTS | weechat | 1.4-2ubuntu0.1+esm1 | USN-5258-1 |
Advisories 3
- USN-5258-1 weechat vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- DLA-2770-1 weechat - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2157-1 weechat - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- https://weechat.org/doc/security/
- https://github.com/weechat/weechat/commit/40ccacb4330a64802b1f1e28ed9a6b6d3ca9197f
- [debian-lts-announce] 20200324 [SECURITY] [DLA 2157-1] weechat security update mailing-list
- GLSA-202003-51 vendor-advisory
- [debian-lts-announce] 20210930 [SECURITY] [DLA 2770-1] weechat security update mailing-list