Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ RUSTSEC-2025-0126 — nftnl

⚪ Unknown ✅ No Known Exploit OSV
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Heap-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");

```

Mitigation

Upgrade to version 0.9.0 or later, which aborts instead.

Affected software

RUSTSEC-2025-0126 is recorded against 1 package.

  • nftnl

Timeline and source

Published on 18 October 2025 and last revised on 27 November 2025. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

crates.io (Package)
rustsec.org (Advisory)
github.com (Report)

Other advisories for this package

nftnl has other advisories on record. If you are patching this one, these are worth checking on the same host:

Details

Severity Unknown
CVSS Score N/A
CVSS Vector N/A
CWE N/A
Public Exploit ✅ No
Source OSV
Published 2025-10-18
Updated 2026-08-20
Modified 2025-11-27
Fix URL N/A

Affected Packages

Software From version Fixed in
nftnl — —

Similar Threats

Free Vulnerability Check

Is your site affected by RUSTSEC-2025-0126?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against RUSTSEC-2025-0126 and other known CVE records.

Scan My Site Free →

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 advisoriesRustsecRustsec 2025
✓