🛡️ GHSA-2fjw-whxm-9v4q — nftnl

🔴 CVSS 9.5 — Critical ✅ No Known Exploit CWE-122 OSV
9.5
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

libnftnl has Heap-based Buffer Overflow in nftnl::Batch::with_page_size (nftnl-rs)

A heap-buffer-overflow vulnerability exists in the Rust wrapper for libnftnl, triggered via the nftnl::Batch::with_page_size constructor. When a small or malformed page size is provided, the underlying C code allocates an insufficient buffer, leading to out-of-bounds writes during batch initialization.

The flaw was fixed in commit 94a286f by adding an overflow check:

```Rust

batch_page_size

.checked_add(crate::nft_nlmsg_maxsize())

.expect("batch_page_size is too large and would overflow");

```

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. Rated impact: confidentiality high, integrity high, availability high.

Weakness class

GHSA-2fjw-whxm-9v4q is classified as CWE-122: Heap-based Buffer Overflow. A write past the end of a heap allocation corrupts allocator metadata or neighbouring objects.

Affected software

GHSA-2fjw-whxm-9v4q is recorded against 1 package.

  • nftnl

Timeline and source

Published on 25 November 2025 and last revised on 1 December 2025. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

github.com (Web)
github.com (Web)
github.com (Package)
rustsec.org (Web)

Details

Severity CRITICAL
CVSS Score 9.5
CVSS Vector CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:L/SA:N
CWE CWE-122
Public Exploit ✅ No
Source OSV
Published 2025-11-25
Updated 2026-08-20
Modified 2025-12-01
Fix URL N/A

Affected Packages

Software From version Fixed in
nftnl

Similar Threats

Exploit Protection

Are you running nftnl?

GHSA-2fjw-whxm-9v4q carries CVSS 9.5 Critical rating. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.

Check My Site For GHSA-2fjw-whxm-9v4q →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesGitHub AdvisoryGitHub Advisory Undated